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

Function cursorKey

packages/effect/src/ui/Query.ts:4334–4340  ·  view source on GitHub ↗
(list: ListDef, cursor: unknown)

Source from the content-addressed store, hash-verified

4332
4333/** A cursor's identity within one walk: its encoding as JSON. */
4334const cursorKey = (list: ListDef, cursor: unknown): string | undefined => {
4335 try {
4336 return JSON.stringify(list.encodeCursor(cursor))
4337 } catch {
4338 return undefined
4339 }
4340}
4341
4342const settledEffect = (result: Settled): Effect.Effect<any, any> =>
4343 result._tag === "Success"

Callers 1

stepFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected