diff --git a/Libraries/Utilities/Platform.ios.js b/Libraries/Utilities/Platform.ios.js index 07fd365d496..4adf4201c52 100644 --- a/Libraries/Utilities/Platform.ios.js +++ b/Libraries/Utilities/Platform.ios.js @@ -10,10 +10,10 @@ import NativePlatformConstantsIOS from './NativePlatformConstantsIOS'; -export type PlatformSelectSpec = { - default?: D, - native?: N, - ios?: I, +export type PlatformSelectSpec = { + default?: T, + native?: T, + ios?: T, ... }; @@ -65,7 +65,7 @@ const Platform = { } return false; }, - select: (spec: PlatformSelectSpec): D | N | I => + select: (spec: PlatformSelectSpec): T => // $FlowFixMe[incompatible-return] 'ios' in spec ? spec.ios : 'native' in spec ? spec.native : spec.default, };