From 73c50882bf78d2a6654228ae2fac6cb59fee2d56 Mon Sep 17 00:00:00 2001 From: Tommy Nguyen Date: Mon, 2 Oct 2017 23:26:48 +0200 Subject: [PATCH] Platform.select to allow any PlatformOSType as key. (#20207) --- types/react-native/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react-native/index.d.ts b/types/react-native/index.d.ts index 423ba6e4fc..16abbe3f6b 100644 --- a/types/react-native/index.d.ts +++ b/types/react-native/index.d.ts @@ -5621,7 +5621,7 @@ interface PlatformStatic { /** * @see https://facebook.github.io/react-native/docs/platform-specific-code.html#content */ - select( specifics: { ios?: T, android?: T} ): T; + select( specifics: { [platform in PlatformOSType]?: T; } ): T; } interface PlatformIOSStatic extends PlatformStatic {