@astro-utils/forms
Version:
Server component for Astro (call server functions from client side with validation and state management)
14 lines (13 loc) • 988 B
TypeScript
import type { AstroGlobal } from 'astro';
import AboutFormName from './about-form-name.js';
export declare function parseCheckbox(about: AboutFormName, originalValue?: string): void;
export declare function parseNumber(about: AboutFormName, type: 'number' | 'int' | 'range', min?: number, max?: number): void;
type DateTypes = 'date' | 'datetime-local' | 'month' | 'week' | 'time';
export declare function parseDate(about: AboutFormName, type: DateTypes, min?: string | Date, max?: string | Date): void;
export declare function parseJSON(about: AboutFormName): void;
export declare function parseEmail(about: AboutFormName): void;
export declare function parseURL(about: AboutFormName): void;
export declare function parseColor(about: AboutFormName): void;
export declare function parseFiles(about: AboutFormName, astro: AstroGlobal, multiple: boolean, readonly: boolean): Promise<void>;
export declare function parseEmptyFiles(about: AboutFormName, astro: AstroGlobal): void;
export {};