Files
react-native/packages/react-native/interface.js
T
Sam Zhou 26ca802e84 Remove __REACT_DEVTOOLS_GLOBAL_HOOK__ from react-native libdef (#50223)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/50223

This is an implementation detail of React and better not make it leak everywhere. It's not used quite often even in react-native codebase, so it's better to just suppress the error on each call site. Currently it's typed as any, so there is not much type safety lost anyways.

Changelog: [Internal]

Reviewed By: alexmckenley

Differential Revision: D71687426

fbshipit-source-id: 7373bcd9bedcfcb95a10fa02e6a04399ccab91f0
2025-03-24 12:31:58 -07:00

22 lines
695 B
JavaScript

/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
* @flow strict
*/
'use strict';
// NOTE: Hmm... I don't think declaring variables within this module actually
// accomplishes anything besides documenting that these globals are expected to
// exist. So I think the correct "fix" to this lint warning is to delete this
// entire file. But in lieu of doing that... no harm for now in keeping this
// file around, even if it is only for documentation purposes. ¯\_(ツ)_/¯
/* eslint-disable no-unused-vars */
declare var __DEV__: boolean;