Skip to content

Commit

Permalink
Use declare const instead of declare var (#28599)
Browse files Browse the repository at this point in the history
Summary:
Use `declare const` instead of `declare var`

DiffTrain build for commit facebook/react@6708115.

Changelog: [Internal]

Reviewed By: rickhanlonii

Differential Revision: D55245665

Pulled By: kassens

fbshipit-source-id: 44cb1130a23f46bb5caf33e05c828d92e0344efc
  • Loading branch information
kassens authored and facebook-github-bot committed Mar 25, 2024
1 parent ee3d5f5 commit 1fe26a1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noformat
* @flow strict
* @nolint
* @generated SignedSource<<fbf33f04ca9428c149262f17c8a4b6ab>>
* @generated SignedSource<<b35184ab7e1e173fd34278def089e277>>
*/

import type {ElementRef, ElementType, Element, AbstractComponent} from 'react';
Expand Down Expand Up @@ -127,7 +127,7 @@ export type NativeMethods = $ReadOnly<{|
|}>;

// This validates that INativeMethods and NativeMethods stay in sync using Flow!
declare var ensureNativeMethodsAreSynced: NativeMethods;
declare const ensureNativeMethodsAreSynced: NativeMethods;
(ensureNativeMethodsAreSynced: INativeMethods);

export type HostComponent<T> = AbstractComponent<T, $ReadOnly<NativeMethods>>;
Expand Down

0 comments on commit 1fe26a1

Please sign in to comment.