Skip to content

Commit 1105931

Browse files
huntiefacebook-github-bot
authored andcommitted
Enable Strict TS API by default
Summary: See [**RFC0894: Removing deep imports from react-native**](react-native-community/discussions-and-proposals#894) TODO: Description to come. Differential Revision: D110458670
1 parent 3259ca1 commit 1105931

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

packages/react-native/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,20 @@
2727
"react-native": "cli.js"
2828
},
2929
"main": "./index.js",
30-
"types": "types",
3130
"exports": {
3231
".": {
33-
"react-native-strict-api": "./types_generated/index.d.ts",
34-
"types": "./types/index.d.ts",
32+
"react-native-legacy-deep-imports": "./types/index.d.ts",
33+
"types": "./types_generated/index.d.ts",
3534
"default": "./index.js"
3635
},
3736
"./Libraries/*": {
38-
"react-native-strict-api": null,
39-
"types": "./Libraries/*.d.ts",
37+
"react-native-legacy-deep-imports": "./Libraries/*.d.ts",
38+
"types": null,
4039
"default": "./Libraries/*.js"
4140
},
4241
"./Libraries/*.js": {
43-
"react-native-strict-api": null,
42+
"react-native-legacy-deep-imports": "./Libraries/*.js",
43+
"types": null,
4444
"default": "./Libraries/*.js"
4545
},
4646
"./scripts/*": "./scripts/*",

packages/virtualized-lists/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
},
2222
"exports": {
2323
".": {
24-
"react-native-strict-api": "./types_generated/index.d.ts",
25-
"types": "./index.d.ts",
24+
"react-native-legacy-deep-imports": "./index.d.ts",
25+
"types": "./types_generated/index.d.ts",
2626
"default": "./index.js"
2727
},
2828
"./*": {

0 commit comments

Comments
 (0)