Use declare const instead of declare var (#28599)

Summary:
Use `declare const` instead of `declare var`

DiffTrain build for commit https://github.com/facebook/react/commit/67081159377b438b48e3c2f2278af8e5f56b9f64.

Changelog: [Internal]

Reviewed By: rickhanlonii

Differential Revision: D55245665

Pulled By: kassens

fbshipit-source-id: 44cb1130a23f46bb5caf33e05c828d92e0344efc
This commit is contained in:
kassens (Meta Employee)
2024-03-25 09:14:33 -07:00
committed by Facebook GitHub Bot
parent ee3d5f510c
commit 1fe26a181d
@@ -7,7 +7,7 @@
* @noformat
* @flow strict
* @nolint
* @generated SignedSource<<fbf33f04ca9428c149262f17c8a4b6ab>>
* @generated SignedSource<<b35184ab7e1e173fd34278def089e277>>
*/
import type {ElementRef, ElementType, Element, AbstractComponent} from 'react';
@@ -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>>;