scriptguard-library
Version:
A secure and customizable text input field library for React.
7 lines • 355 B
TypeScript
export declare function useSanitizedForm<T extends Record<string, string>>(initialState: T): {
values: T;
setSanitizedValue: (key: keyof T, value: string) => void;
sanitizeAll: () => T;
handleChange: (key: keyof T) => (e: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
};
//# sourceMappingURL=useSanitizedForm.d.ts.map