formDataToObject

Converts form data to a Javascript object according to a map from property name to type. Should usually not be used directly. Used internally by formDataToDataObjectRecord and formDataToProcedureParameters

export declare function formDataToObject<T = any>(form: HTMLFormElement | FormData, typeMap?: Record<string, string>): Partial<T>;

Last updated

Was this helpful?