Files
headroom/frontend/node_modules/sveltekit-superforms/dist/adapters/zod.d.ts
Santhosh Janardhanan de2d83092e feat: Reinitialize frontend with SvelteKit and TypeScript
- Delete old Vite+Svelte frontend
- Initialize new SvelteKit project with TypeScript
- Configure Tailwind CSS v4 + DaisyUI
- Implement JWT authentication with auto-refresh
- Create login page with form validation (Zod)
- Add protected route guards
- Update Docker configuration for single-stage build
- Add E2E tests with Playwright (6/11 passing)
- Fix Svelte 5 reactivity with $state() runes

Known issues:
- 5 E2E tests failing (timing/async issues)
- Token refresh implementation needs debugging
- Validation error display timing
2026-02-17 16:19:59 -05:00

16 lines
1.1 KiB
TypeScript

import { type ZodErrorMap, type ZodType, type ZodTypeDef } from 'zod/v3';
import type { JSONSchema7 } from 'json-schema';
import { type AdapterOptions, type ValidationAdapter, type Infer, type InferIn, type ClientValidationAdapter } from './adapters.js';
import { zodToJsonSchema as zodToJson, type Options } from 'zod-v3-to-json-schema';
export declare const zodToJSONSchema: (...params: Parameters<typeof zodToJson>) => JSONSchema7;
export type ZodObjectType = ZodType<Record<string, unknown>, ZodTypeDef, Record<string, unknown> | undefined>;
export type ZodObjectTypes = ZodObjectType;
export type ZodValidation<T extends ZodObjectTypes = ZodObjectTypes> = T;
export declare const zod: <T extends ZodValidation>(schema: T, options?: (AdapterOptions<Infer<T, "zod">> & {
errorMap?: ZodErrorMap;
config?: Partial<Options>;
}) | undefined) => ValidationAdapter<Infer<T, "zod">, InferIn<T, "zod">>;
export declare const zodClient: <T extends ZodValidation>(schema: T, options?: {
errorMap?: ZodErrorMap;
} | undefined) => ClientValidationAdapter<Infer<T, "zod">, InferIn<T, "zod">>;