@theredhead — Frontend Library - v1.0.0
    Preparing search index...

    Class JsonPlaceholderPhotosDatasource

    Lazy page-cached datasource for JSONPlaceholder resources.

    Storybook/demo utility only. Not intended for production application data access. Uses _page (1-based) and _limit; total rows are read from x-total-count header.

    Hierarchy (View Summary)

    Index

    Constructors

    • Parameters

      • pageSize: number = INITIAL_PAGE_SIZE
      • fetchFn: {
            (input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
            (input: string | Request | URL, init?: RequestInit): Promise<Response>;
        } = defaultFetch
          • (input: RequestInfo | URL, init?: RequestInit): Promise<Response>
          • Parameters

            • input: RequestInfo | URL
            • Optionalinit: RequestInit

            Returns Promise<Response>

          • (input: string | Request | URL, init?: RequestInit): Promise<Response>
          • Parameters

            • input: string | Request | URL
            • Optionalinit: RequestInit

            Returns Promise<Response>

      Returns JsonPlaceholderPhotosDatasource

    Methods

    • Returns the total number of items, synchronously or asynchronously.

      Returns number | Promise<number>