Skip to content

Commit a67ca2b

Browse files
huntiefacebook-github-bot
authored andcommitted
Delete interface.js (Flow), relocate __DEV__ global (#57275)
Summary: `interface.js` was a legacy, Flow-only entry point whose sole content was a bare `declare var __DEV__: boolean;` global, registered as a Flow `[libs]` file. Relocate into `flow/globals.js`, allowing us to drop this from the package `"files"` (and `"exports"`) list. Changelog: [Internal] Differential Revision: D109018822
1 parent e1b0c77 commit a67ca2b

4 files changed

Lines changed: 3 additions & 23 deletions

File tree

.flowconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939

4040
[libs]
4141
flow-typed/
42-
packages/react-native/interface.js
4342
packages/react-native/flow/
4443

4544
[options]

packages/react-native/flow/global.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,6 @@ declare var global: {
8686
// Undeclared properties are implicitly `any`.
8787
[string | symbol]: any,
8888
};
89+
90+
// __DEV__ is additionally declared as a bare global
91+
declare var __DEV__: boolean;

packages/react-native/interface.js

Lines changed: 0 additions & 21 deletions
This file was deleted.

packages/react-native/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@
8080
"gradle/libs.versions.toml",
8181
"index.js",
8282
"index.js.flow",
83-
"interface.js",
8483
"jest-preset.js",
8584
"Libraries",
8685
"LICENSE",

0 commit comments

Comments
 (0)