Kaizen
Browse modulesPersistenceSchemas and constants

Variable: offsetPaginationSchema

const offsetPaginationSchema: ZodObject<{
  page: ZodDefault<ZodNumber>;
  pageSize: ZodDefault<ZodNumber>;
}, $strip>;

Defined in: shared/persistence/offset-pagination-schema.ts:16

Zod schema for pagination input validation. Accepts an optional page (1-indexed, defaults to 1) and pageSize (defaults to DEFAULT_PAGE_SIZE, capped at MAX_PAGE_SIZE).

Use with toPrismaParams / paginate from ./pagination.