Skip to content

Commit

Permalink
Platform.select to allow any PlatformOSType as key. (DefinitelyTyped#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Tommy Nguyen authored and RyanCavanaugh committed Oct 2, 2017
1 parent 75d1bec commit 73c5088
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/react-native/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 73c5088

Please sign in to comment.