Interface TCursorPaginator<FilterData, RowData, Payload>

Represents a type for cursor pagination.

FilterData - The type of filter data.

RowData - The type of row data.

Payload - The type of payload.

Type Parameters

  • FilterData extends {} = any
  • RowData extends IRowData = any
  • Payload = any
  • Parameters

    • filterData: FilterData

      The filter data to be applied to the dataset.

    • lastId: RowId

      The last id from which to start retrieving records.

    • payload: Payload

      The payload containing additional parameters for filtering.

    Returns RowData[] | Promise<RowData[]>

    • A promise resolving to an array of filtered row data or an array of filtered row data.