donobu
Version:
Create browser automations with an LLM agent and replay them as Playwright scripts.
25 lines • 836 B
TypeScript
import { z } from '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.
*/
export declare const createPaginatedResultSchema: <T extends z.ZodTypeAny>(itemSchema: T) => z.ZodObject<{
items: z.ZodArray<T>;
nextPageToken: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
export declare const PaginatedResultSchema: z.ZodObject<{
items: z.ZodArray<z.ZodUnknown>;
nextPageToken: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
/**
* Result of a paginated query.
*/
export interface PaginatedResult<T> {
/** Items matching the query. */
items: T[];
/** Token for fetching the next page (if available). */
nextPageToken?: string;
}
//# sourceMappingURL=PaginatedResult.d.ts.map