UNPKG

sveltekit-superforms

Version:

Making SvelteKit forms a pleasure to use!

5 lines (4 loc) 445 B
import { type ValidationAdapter, type AdapterOptions, type ClientValidationAdapter, type Infer } from './adapters.js'; import type { ObjectSchema } from 'joi'; export declare const joi: <T extends ObjectSchema>(schema: T, options?: AdapterOptions<Infer<T, "joi">> | undefined) => ValidationAdapter<Record<string, unknown>>; export declare const joiClient: <T extends ObjectSchema>(schema: T) => ClientValidationAdapter<Record<string, unknown>>;