sveltekit-superforms
Version:
Making SvelteKit forms a pleasure to use!
5 lines (4 loc) • 420 B
TypeScript
import { type ValidationAdapter, type AdapterOptions, type ClientValidationAdapter } from './adapters.js';
import type { ObjectSchema } from 'joi';
export declare const joi: <T extends ObjectSchema>(schema: T, options?: AdapterOptions<{}> | undefined) => ValidationAdapter<Record<string, unknown>>;
export declare const joiClient: <T extends ObjectSchema>(schema: T) => ClientValidationAdapter<Record<string, unknown>>;