Function: cursorPageSchema()¶
function cursorPageSchema<T>(itemSchema): ZodObject<{
items: ZodArray<T>;
next_cursor: ZodOptional<ZodNullable<ZodString>>;
prev_cursor: ZodOptional<ZodNullable<ZodString>>;
total: ZodOptional<ZodNullable<ZodNumber>>;
total_estimate: ZodOptional<ZodNullable<ZodNumber>>;
}, $strip>;
Defined in: rine-ts-sdk/src/types.ts:1040
CursorPage raw response schema — used by adapters.parsePaginated(). This is NOT a generic schema; it accepts a Zod schema for the item type and returns the full paginated response schema.
Type Parameters¶
| Type Parameter |
|---|
T extends ZodTypeAny\<unknown, unknown, $ZodTypeInternals\<unknown, unknown>> |
Parameters¶
| Parameter | Type |
|---|---|
itemSchema |
T |
Returns¶
ZodObject\<{
items: ZodArray\<T>;
next_cursor: ZodOptional\<ZodNullable\<ZodString>>;
prev_cursor: ZodOptional\<ZodNullable\<ZodString>>;
total: ZodOptional\<ZodNullable\<ZodNumber>>;
total_estimate: ZodOptional\<ZodNullable\<ZodNumber>>;
}, $strip>