IGPAPI
    Preparing search index...

    Interface ScreenFeedSource<Input, Cursor, Data, FE, FR>

    Where a feed screen's pages come from — fields of the feed screen's own declaration, flat beside its id, kind and input: the feed's own declaration — its request, its cursor (how an answer continues the cursor) and its defaults, as defineFeed takes them: each of the three moves in on its own, never a whole FeedConfig (its items is refused), the cursor of the first page from the screen's input (start), and the schema of one page's answer (response) — what a page shows, checked like any screen's data; it holds what cursor reads.

    interface ScreenFeedSource<Input, Cursor, Data, FE, FR> {
        cursor: (page: Data) => { hasMore: boolean; input: Partial<Cursor> };
        defaults?: () => Partial<Cursor>;
        items?: undefined;
        request: (cursor: Cursor) => Effect<Data, FE, FR>;
        response: ScreenCodec<Data>;
        start: (input: Input) => Cursor;
    }

    Type Parameters

    • Input
    • Cursor
    • Data
    • FE
    • FR
    Index

    Properties

    cursor: (page: Data) => { hasMore: boolean; input: Partial<Cursor> }
    defaults?: () => Partial<Cursor>
    items?: undefined

    Where a page's entries are is said once, by the screen's page.at: a A FeedConfig's items has no place here, neither spread in with the config nor written — and a feed screen has no item lists besides page.

    request: (cursor: Cursor) => Effect<Data, FE, FR>
    response: ScreenCodec<Data>
    start: (input: Input) => Cursor