@tech_query/formdata-submitter-polyfill
Version:
Support the submitter parameter to the FormData constructor in older browsers.
20 lines (16 loc) • 823 B
TypeScript
declare const FormData_base$1: {
new (form?: HTMLFormElement | undefined, submitter?: HTMLElement | null | undefined): globalThis.FormData;
prototype: globalThis.FormData;
};
declare class FormData$2 extends FormData_base$1 {
constructor(...args: [HTMLFormElement | undefined, HTMLElement | null | undefined]);
}
declare const FormData_base: {
new (form?: HTMLFormElement | undefined, submitter?: HTMLElement | null | undefined): globalThis.FormData;
prototype: globalThis.FormData;
};
declare class FormData$1 extends FormData_base {
constructor(...args: [HTMLFormElement | undefined, HTMLElement | null | undefined]);
}
declare function polyfillFormDataIfNecessary(NewFormData: typeof FormData): void;
export { FormData$2 as FormData, FormData$1 as FormDataLite, polyfillFormDataIfNecessary };