Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/react-native/Libraries/Utilities/Platform.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ interface PlatformWindowsOSStatic extends PlatformStatic {

interface PlatformWebStatic extends PlatformStatic {
OS: 'web';
Version: string;
}

export type Platform =
Expand Down
2 changes: 1 addition & 1 deletion packages/react-native/Libraries/Utilities/PlatformTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ type MacOSPlatform = {
type WebPlatform = {
OS: 'web',
// $FlowFixMe[unsafe-getters-setters]
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these still needed?

get Version(): void,
get Version(): string,
// $FlowFixMe[unsafe-getters-setters]
get constants(): {
reactNativeVersion: {
Expand Down
4 changes: 2 additions & 2 deletions packages/react-native/ReactNativeApi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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"
Expand Down
Loading