edge-mock
Version:
types for testing an developer edge applications
15 lines (14 loc) • 771 B
TypeScript
export declare class EdgeFormData implements FormData {
protected map: Map<string, FormDataEntryValue[]>;
append(name: string, value: string | Blob | File, fileName?: string): void;
delete(name: string): void;
get(name: string): FormDataEntryValue | null;
getAll(name: string): FormDataEntryValue[];
has(name: string): boolean;
set(name: string, value: string | Blob | File, fileName?: string): void;
forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void;
entries(): IterableIterator<[string, FormDataEntryValue]>;
keys(): IterableIterator<string>;
values(): IterableIterator<FormDataEntryValue>;
[Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>;
}