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 {