@astro-utils/forms
Version:
Server component for Astro (call server functions from client side with validation and state management)
5 lines (4 loc) • 379 B
TypeScript
import AboutFormName from '../form-utils/about-form-name.js';
export declare function validateRequire(about: AboutFormName, required: boolean): boolean;
export declare function validateStringPatters(about: AboutFormName, minlength: number, maxlength: number, pattern: RegExp): boolean;
export declare function validateFunc(about: AboutFormName, method: Function): Promise<void>;