mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
Platform.select to allow any PlatformOSType as key. (#20207)
This commit is contained in:
committed by
Ryan Cavanaugh
parent
75d1bec99d
commit
73c50882bf
Vendored
+1
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user