Interface PaginatedOption<T, L, K>

Type Parameters

Hierarchy

  • PaginatedOption

Properties

lastKey?: K

上一页的 key

limit?: LimitFn<"total" | L, T>

Returns

true: 继续下一页;false: 停止获取

onDone?: ((totalPage, key, data) => boolean | void)

Type declaration

    • (totalPage, key, data): boolean | void
    • 当结束时触发

      Parameters

      • totalPage: number
      • key: undefined | K
      • data: T[]

      Returns boolean | void

      false: 将停止获取下一页

onNextPage?: ((currentPage, key, data) => boolean | void)

Type declaration

    • (currentPage, key, data): boolean | void
    • 当获取下一页时触发

      Parameters

      • currentPage: number
      • key: undefined | K
      • data: T[]

      Returns boolean | void

      false: 将停止获取下一页

Generated using TypeDoc