CursorCodec
type CursorCodec<T> = object;Defined in: cursor-codec.ts:8
An opaque-cursor codec: turns cursor data (a plain object) into a string token safe to hand to clients, and back. Fully synchronous variant.
Type Parameters
Section titled “Type Parameters”| Type Parameter | Default type |
|---|---|
T |
Record<string, unknown> |
Properties
Section titled “Properties”decode
Section titled “decode”decode: (token) => T;Defined in: cursor-codec.ts:10
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
token |
string |
Returns
Section titled “Returns”T
encode
Section titled “encode”encode: (data) => string;Defined in: cursor-codec.ts:9
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
data |
T |
Returns
Section titled “Returns”string