mirror of
https://github.com/facebook/react.git
synced 2026-02-25 13:13:03 +00:00
After an easy couple version with #34252, this version is less flexible (and safer) on inferring exported types mainly. We require to annotate some exported types to differentiate between `boolean` and literal `true` types, etc.
30 lines
1.2 KiB
JavaScript
30 lines
1.2 KiB
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.
|
|
*
|
|
* @flow
|
|
*/
|
|
|
|
/************************************************************************
|
|
* This file is forked between different DevTools implementations.
|
|
* It should never be imported directly!
|
|
* It should always be imported from "react-devtools-feature-flags".
|
|
************************************************************************/
|
|
|
|
export const enableLogger: boolean = true;
|
|
export const enableStyleXFeatures: boolean = true;
|
|
export const isInternalFacebookBuild: boolean = true;
|
|
|
|
/************************************************************************
|
|
* Do not edit the code below.
|
|
* It ensures this fork exports the same types as the default flags file.
|
|
************************************************************************/
|
|
|
|
import typeof * as FeatureFlagsType from './DevToolsFeatureFlags.default';
|
|
import typeof * as ExportsType from './DevToolsFeatureFlags.core-fb';
|
|
|
|
// Flow magic to verify the exports of this file match the original version.
|
|
((((null: any): ExportsType): FeatureFlagsType): ExportsType);
|