UNPKG

sveltekit-superforms-5

Version:

<p align="center"> <img src="https://github.com/ciscoheat/sveltekit-superforms/raw/main/logo.svg" width="150px" align="center" alt="Superforms logo" /> <h1 align="center">Superforms 💥</h1> <p align="center">Making SvelteKit forms a pleasure to use!

5 lines (4 loc) • 420 B
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>>;