Files
headroom/frontend/node_modules/sveltekit-superforms/dist/defaults.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

10 lines
1.4 KiB
TypeScript

import type { ValidationAdapter, ClientValidationAdapter } from './adapters/adapters.js';
import type { SuperValidateOptions, SuperValidated } from './superValidate.js';
type SuperSchemaData<T extends Record<string, unknown>> = Partial<T> | null | undefined;
type SuperSchemaOptions<T extends Record<string, unknown>> = Pick<SuperValidateOptions<T>, 'id' | 'defaults'>;
export declare function defaults<Out extends Record<string, unknown>, M = App.Superforms.Message extends never ? any : App.Superforms.Message, In extends Record<string, unknown> = Out>(adapter: ValidationAdapter<Out, In>, options?: SuperSchemaOptions<Out>): SuperValidated<Out, M, In>;
export declare function defaults<Out extends Record<string, unknown>, M = App.Superforms.Message extends never ? any : App.Superforms.Message, In extends Record<string, unknown> = Out>(defaults: SuperSchemaData<Out>, adapter: ValidationAdapter<Out, In>, options?: SuperSchemaOptions<Out>): SuperValidated<Out, M, In>;
export declare function defaults<Out extends Record<string, unknown>, M = App.Superforms.Message extends never ? any : App.Superforms.Message, In extends Record<string, unknown> = Out>(defaults: Out, adapter: ClientValidationAdapter<Out, In>, options?: SuperSchemaOptions<Out>): SuperValidated<Out, M, In>;
export declare function defaultValues<T extends Record<string, unknown>>(adapter: ValidationAdapter<T, Record<string, unknown>>): T;
export {};