MCPcopy Create free account
hub / github.com/Effect-TS/effect / pageFields

Function pageFields

packages/effect/src/ui/Query.ts:4305–4312  ·  view source on GitHub ↗
(
  page: PageRef | undefined
)

Source from the content-addressed store, hash-verified

4303
4304/** The `page` and `cursor` of a list's `FetchEvent`. */
4305const pageFields = (
4306 page: PageRef | undefined
4307): { readonly page?: number; readonly cursor?: Schema.Json } =>
4308 page === undefined
4309 ? {}
4310 : page.cursor === undefined
4311 ? { page: page.page }
4312 : { page: page.page, cursor: page.cursor }
4313
4314/** @internal */
4315export const sameMore = (

Callers 2

emitFetchFunction · 0.85
eventFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected