UNPKG

@astro-utils/forms

Version:

Server component for Astro (call server functions from client side with validation and state management)

11 lines (10 loc) 418 B
import type { BindForm } from '../bind-form.js'; import AboutFormName from '../about-form-name.js'; export declare abstract class IHTMLFormPlugin { protected form: BindForm<any>; storage: Map<string, any>; constructor(form: BindForm<any>); abstract createOneValidation(key: string, value: any): void; abstract addNewValue(about: AboutFormName, ...any: any[]): void; createValidation(): void; }