diff --git a/packages/react-native/Libraries/Utilities/Platform.d.ts b/packages/react-native/Libraries/Utilities/Platform.d.ts index 7f7dc61c1047..b7252bd27c63 100644 --- a/packages/react-native/Libraries/Utilities/Platform.d.ts +++ b/packages/react-native/Libraries/Utilities/Platform.d.ts @@ -94,6 +94,7 @@ interface PlatformWindowsOSStatic extends PlatformStatic { interface PlatformWebStatic extends PlatformStatic { OS: 'web'; + Version: string; } export type Platform = diff --git a/packages/react-native/Libraries/Utilities/PlatformTypes.js b/packages/react-native/Libraries/Utilities/PlatformTypes.js index 3794b8b5e5e1..40755e5ad5a3 100644 --- a/packages/react-native/Libraries/Utilities/PlatformTypes.js +++ b/packages/react-native/Libraries/Utilities/PlatformTypes.js @@ -162,7 +162,7 @@ type MacOSPlatform = { type WebPlatform = { OS: 'web', // $FlowFixMe[unsafe-getters-setters] - get Version(): void, + get Version(): string, // $FlowFixMe[unsafe-getters-setters] get constants(): { reactNativeVersion: { diff --git a/packages/react-native/ReactNativeApi.d.ts b/packages/react-native/ReactNativeApi.d.ts index d21b62c9d145..5331b47e74fe 100644 --- a/packages/react-native/ReactNativeApi.d.ts +++ b/packages/react-native/ReactNativeApi.d.ts @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @generated SignedSource<<1f77cd57f1bd57ae59c61a1cc6a58d81>> + * @generated SignedSource<<9e1f5e0432c20ddc070ec9dced982591>> * * This file was generated by scripts/js-api/build-types/index.js. */ @@ -5860,7 +5860,7 @@ declare type WebPlatform = { get isDisableAnimations(): boolean get isTesting(): boolean get isTV(): boolean - get Version(): void + get Version(): string } declare type WindowsPlatform = { OS: "windows"