UNPKG

sveltekit-superforms

Version:

Making SvelteKit forms a pleasure to use!

5 lines (4 loc) 551 B
import type { StandardSchemaV1 } from '@standard-schema/spec'; import { type ClientValidationAdapter, type Infer, type InferIn, type RequiredDefaultsOptions, type ValidationAdapter } from './adapters.js'; export declare const standard: <T extends StandardSchemaV1>(schema: T, options: RequiredDefaultsOptions<Infer<T, "standard">>) => ValidationAdapter<Infer<T, "standard">, InferIn<T, "standard">>; export declare const standardClient: <T extends StandardSchemaV1>(schema: T) => ClientValidationAdapter<Infer<T, "standard">, InferIn<T, "standard">>;