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) => undefined | boolean)

Type declaration

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

      Parameters

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

      Returns undefined | boolean

      false: 将停止获取下一页

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

Type declaration

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

      Parameters

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

      Returns undefined | boolean

      false: 将停止获取下一页

Generated using TypeDoc