igpapi — Instagram private API Simulator for Node.js (API reference) 4.14.0
    Preparing search index...

    Type Alias ItemsHostFit<Item, State>

    ItemsHostFit: (
        Item extends unknown
            ? [ItemHostOf<Item>] extends [undefined]
                ? never
                : [State] extends [ItemHostOf<Item>]
                    ? never
                    : Item extends { id: infer Id } ? Id : never
            : never
    ) extends infer Misfit
        ? [Misfit] extends [never]
            ? unknown
            : { "these items read a host state the screen does not have": Misfit }
        : unknown

    Whether the host screen's state State fits every item's host schema: an item that reads its host decodes the host's state with its own schema, so a host whose state lacks what the item reads is a type error here, at the platform's screenSet, naming the items.

    Type Parameters

    • Item
    • State