From c06fa19fdc843beedca332198de946928d24e18e Mon Sep 17 00:00:00 2001 From: Andrew Goodale Date: Mon, 28 Sep 2020 10:00:37 -0400 Subject: [PATCH] [react-native] Fix return type of `createObjectURL` (#47957) --- types/react-native/globals.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react-native/globals.d.ts b/types/react-native/globals.d.ts index 0328dad3a6..9a594c4cf0 100644 --- a/types/react-native/globals.d.ts +++ b/types/react-native/globals.d.ts @@ -259,7 +259,7 @@ declare type XMLHttpRequestResponseType = '' | 'arraybuffer' | 'blob' | 'documen * built into React Native (as of 0.63) does not implement all the properties. */ declare class URL { - static createObjectURL(blob: Blob): URL; + static createObjectURL(blob: Blob): string; static revokeObjectURL(url: string): void; constructor(url: string, base?: string);