mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
ff4b33672a
Summary: Changelog: [Internal] This diff add a flow libdefs for the `HermesInternalType` to type `HermesInternal` as the first accurately typed `global` property, and filled all the type holes. Reviewed By: yungsters Differential Revision: D29986749 fbshipit-source-id: a94be7919f989b5085f6b264e55145a85020fea9
24 lines
641 B
JavaScript
24 lines
641 B
JavaScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @flow strict
|
|
* @format
|
|
*/
|
|
|
|
/**
|
|
* `global` is a object containing all the global variables for React Native.
|
|
*
|
|
* NOTE: Consider cross-platform as well as JS environments compatibility
|
|
* when defining the types here. Consider both presence (`?`) as well as
|
|
* writeability (`+`) when defining types.
|
|
*/
|
|
declare var global: {
|
|
+HermesInternal: ?$HermesInternalType,
|
|
|
|
// Undeclared properties are implicitly `any`.
|
|
[string | symbol]: any,
|
|
};
|