Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@

[libs]
flow-typed/
packages/react-native/interface.js
packages/react-native/flow/

[options]
Expand Down
6 changes: 6 additions & 0 deletions packages/react-native/flow/global.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,9 @@ declare var global: {
// Undeclared properties are implicitly `any`.
[string | symbol]: any,
};

// Declared as a bare global so unqualified `__DEV__` references type-check as
// `boolean`. The suppression is a no-op in this checkout but avoids a duplicate
// declaration where `__DEV__` is also declared by another Flow libdef.
// $FlowFixMe[libdef-override]
declare var __DEV__: boolean;
21 changes: 0 additions & 21 deletions packages/react-native/interface.js

This file was deleted.

24 changes: 8 additions & 16 deletions packages/react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,38 +34,31 @@
"types": "./types/index.d.ts",
"default": "./index.js"
},
"./*": {
"./Libraries/*": {
"react-native-strict-api": null,
"types": "./*.d.ts",
"default": "./*.js"
"types": "./Libraries/*.d.ts",
"default": "./Libraries/*.js"
},
"./*.js": {
"./Libraries/*.js": {
"react-native-strict-api": null,
"default": "./*.js"
"default": "./Libraries/*.js"
},
"./Libraries/*.d.ts": {
"react-native-strict-api": null,
"default": "./Libraries/*.d.ts"
},
"./scripts/*": "./scripts/*",
"./src/*": {
"react-native-strict-api": null,
"types": null,
"default": "./src/*.js"
},
"./types/*.d.ts": {
"react-native-strict-api": null,
"default": "./types/*.d.ts"
},
"./gradle/*": null,
"./React/*": null,
"./ReactAndroid/*": null,
"./ReactApple/*": null,
"./ReactCommon/*": null,
"./sdks/*": null,
"./jest-preset": "./jest-preset.js",
"./rn-get-polyfills": "./rn-get-polyfills.js",
"./src/fb_internal/*": "./src/fb_internal/*",
"./third-party-podspecs/*": null,
"./types/*": null,
"./types_generated/*": null,
"./package.json": "./package.json"
},
"jest-junit": {
Expand All @@ -80,7 +73,6 @@
"gradle/libs.versions.toml",
"index.js",
"index.js.flow",
"interface.js",
"jest-preset.js",
"Libraries",
"LICENSE",
Expand Down
Loading