Workers Types Diff

2021-11-03

Below is the change introduced in this compatibility date:

===================================================================
--- oldest
+++ 2021-11-03
@@ -830,26 +830,26 @@
   constructor();
   append(name: string, value: string): void;
   append(name: string, value: Blob, filename?: string): void;
   delete(name: string): void;
-  get(name: string): string | null;
-  getAll(name: string): string[];
+  get(name: string): (File | string) | null;
+  getAll(name: string): (File | string)[];
   has(name: string): boolean;
   set(name: string, value: string): void;
   set(name: string, value: Blob, filename?: string): void;
-  entries(): IterableIterator<[key: string, value: string]>;
+  entries(): IterableIterator<[key: string, value: File | string]>;
   keys(): IterableIterator<string>;
   values(): IterableIterator<File | string>;
   forEach<This = unknown>(
     callback: (
       this: This,
-      value: string,
+      value: File | string,
       key: string,
       parent: FormData
     ) => void,
     thisArg?: This
   ): void;
-  [Symbol.iterator](): IterableIterator<[key: string, value: string]>;
+  [Symbol.iterator](): IterableIterator<[key: string, value: File | string]>;
 }
 declare interface ContentOptions {
   html?: boolean;
 }