diff --git a/packages/react-native/types/modules/globals.d.ts b/packages/react-native/types/modules/globals.d.ts index 1bd4d2ccbe9a0d..9e8ca4a54f2a01 100644 --- a/packages/react-native/types/modules/globals.d.ts +++ b/packages/react-native/types/modules/globals.d.ts @@ -80,6 +80,20 @@ declare var Blob: { new (blobParts?: Array, options?: BlobOptions): Blob; }; +interface File extends Blob { + name: string; + lastModified: number; +} + +declare var File: { + prototype: File; + new ( + fileParts?: Array, + name?: string, + options?: BlobOptions, + ): File; +}; + type FormDataValue = | string | {name?: string | undefined; type?: string | undefined; uri: string};