Skip to content

Commit

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

DiffTrain build for commit 6708115.
  • Loading branch information
kassens committed Mar 22, 2024
1 parent ae299be commit 5dd6a48
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8ef14cf24219addedca3607dabb3bef37fb2e013
67081159377b438b48e3c2f2278af8e5f56b9f64
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 5dd6a48

Please sign in to comment.