Platform.select to allow any PlatformOSType as key. (#20207)

This commit is contained in:
Tommy Nguyen
2017-10-02 14:26:48 -07:00
committed by Ryan Cavanaugh
parent 75d1bec99d
commit 73c50882bf
+1 -1
View File
@@ -5621,7 +5621,7 @@ interface PlatformStatic {
/**
* @see https://facebook.github.io/react-native/docs/platform-specific-code.html#content
*/
select<T>( specifics: { ios?: T, android?: T} ): T;
select<T>( specifics: { [platform in PlatformOSType]?: T; } ): T;
}
interface PlatformIOSStatic extends PlatformStatic {