svelidate
Version:
Simple and lightweight form validation for Svelte with no dependencies
6 lines (5 loc) • 520 B
TypeScript
import type { SvelidateConfiguration } from "../../../types/svelidate/config";
import type { UninitializedForm } from "../../../types/svelidate/core/input";
import type { SvelidateField, SvelidateForm } from "../../../types/svelidate/core/output";
export declare function updateFormState<F extends UninitializedForm>(newForm: SvelidateForm<F>): void;
export declare function updateFormField<F extends UninitializedForm>(formField: Required<SvelidateField>, form: SvelidateForm<F>, config: SvelidateConfiguration): void;