Type definitions
findlay-hannam opened this issue · comments
Findlay Hannam commented
It would be nice if there were typescript definitions for this module. I'm currently using a custom definition in my project:
type FormData = Record<string, boolean | string | string[] | File | File[]>
declare module 'get-form-data'; {
function getFormData(form: React.EventTarget): FormData;
export default getFormData;
}