@react-native/typescript-config 0.87.0-rc.0 → 0.87.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -11
- package/package.json +2 -3
- package/tsconfig.strict.json +0 -8
package/README.md
CHANGED
|
@@ -9,25 +9,18 @@ This package provides the default `tsconfig.json` used by newly built React Nati
|
|
|
9
9
|
|
|
10
10
|
This template is customized for specific versions of React Native, and should be updated in sync with the rest of your app.
|
|
11
11
|
|
|
12
|
-
## Strict TypeScript API
|
|
12
|
+
## Opting out of the Strict TypeScript API (default in 0.87)
|
|
13
13
|
|
|
14
|
-
To opt
|
|
14
|
+
To opt out of the new [Strict TypeScript API](https://reactnative.dev/docs/strict-typescript-api) you can extend from `@react-native/typescript-config/strict`
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
{
|
|
18
|
-
"extends": "@react-native/typescript-config/strict",
|
|
19
|
-
// ...
|
|
20
|
-
}
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
or alternatively add the `customConditions` yourself:
|
|
16
|
+
If your app still needs access to deep `'react-native/Libraries/*'` imports (deprecated in 0.80), you can opt out via `customConditions` in your `tsconfig.json`:
|
|
24
17
|
|
|
25
18
|
```jsonc
|
|
26
19
|
{
|
|
27
20
|
"extends": "@react-native/typescript-config",
|
|
28
21
|
"compilerOptions": {
|
|
29
22
|
// ...
|
|
30
|
-
"customConditions": ["react-native
|
|
23
|
+
"customConditions": ["react-native", "react-native-legacy-deep-imports"]
|
|
31
24
|
}
|
|
32
25
|
}
|
|
33
26
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native/typescript-config",
|
|
3
|
-
"version": "0.87.0-rc.
|
|
3
|
+
"version": "0.87.0-rc.1",
|
|
4
4
|
"description": "Default TypeScript configuration for React Native apps",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
],
|
|
17
17
|
"bugs": "https://github.com/react/react-native/issues",
|
|
18
18
|
"exports": {
|
|
19
|
-
".": "./tsconfig.json"
|
|
20
|
-
"./strict": "./tsconfig.strict.json"
|
|
19
|
+
".": "./tsconfig.json"
|
|
21
20
|
}
|
|
22
21
|
}
|