UNPKG

donobu

Version:

Create browser automations with an LLM agent and replay them as Playwright scripts.

17 lines 727 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PaginatedResultSchema = exports.createPaginatedResultSchema = void 0; const v4_1 = require("zod/v4"); /** * Create a schema to validate a paginated result. * * @param itemSchema - The Zod schema for the items in the result. * @returns The Zod schema for the paginated result. */ const createPaginatedResultSchema = (itemSchema) => v4_1.z.object({ items: v4_1.z.array(itemSchema), nextPageToken: v4_1.z.string().optional(), }); exports.createPaginatedResultSchema = createPaginatedResultSchema; exports.PaginatedResultSchema = (0, exports.createPaginatedResultSchema)(v4_1.z.unknown()); //# sourceMappingURL=PaginatedResult.js.map