UNPKG

@steveesamson/microform

Version:

`microform` is a tiny library for managing forms in `svelte/sveltekit`.

15 lines (14 loc) 633 B
import type { Params } from "./internal.svelte.js"; import type { FormValues } from "./types.js"; type TEvent = { target: HTMLElement; }; export declare const getEditableContent: (e: TEvent, isHtml: boolean) => { text: string; value: string; }; export declare const makeName: (str: string) => string; export declare const isValidFileSize: (node: HTMLInputElement | undefined, maxFileSizeInMB: number) => string; export declare const resetObject: (target: FormValues, data?: Params | undefined) => void; export declare const debounce: (func: (...args: any[]) => any, delay?: number) => (...par: any[]) => void; export {};