svelidate
Version:
Simple and lightweight form validation for Svelte with no dependencies
13 lines (12 loc) • 1.86 kB
TypeScript
export declare type HtmlPseudoInputType = "select-multiple" | "select-one" | "textarea";
export declare type HtmlFileInputType = "file";
export declare type HtmlCheckboxInputType = "checkbox";
export declare type HtmlNumberInputType = "number" | "range";
export declare type HtmlColorInputType = "color";
export declare type HtmlRadioInputType = "radio";
export declare type HtmlDateTimeInputType = "datetime-local" | "date" | "month" | "week" | "time";
export declare type HtmlStringInputType = "text" | "tel" | "email" | "url" | "password" | "search";
export declare type HtmlInputType = HtmlDateTimeInputType | HtmlNumberInputType | HtmlStringInputType | HtmlFileInputType | HtmlCheckboxInputType | HtmlColorInputType | HtmlRadioInputType | "hidden" | "reset" | "submit";
export declare type HtmlInputmodeAttribute = "none" | "text" | "decimal" | "numeric" | "tel" | "search" | "email" | "url";
export declare type HtmlAutocompleteAttribute = "off" | "on" | "name" | "honorific-prefix" | "given-name" | "additional-name" | "family-name" | "honorific-suffix" | "nickname" | "email" | "username" | "new-password" | "current-password" | "one-time-code" | "organization-title" | "organization" | "street-address" | "address-line1" | "address-line2" | "address-line3" | "address-level4" | "address-level3" | "address-level2" | "address-level1" | "country" | "country-name" | "postal-code" | "cc-name" | "cc-given-name" | "cc-additional-name" | "cc-family-name" | "cc-number" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-csc" | "cc-type" | "transaction-currency" | "transaction-amount" | "language" | "bday" | "bday-day" | "bday-month" | "bday-year" | "sex" | "tel" | "tel-country-code" | "tel-national" | "tel-area-code" | "tel-local" | "tel-extension" | "impp" | "url" | "photo";
export declare type SvelidateInputType = HtmlInputType | HtmlPseudoInputType;