mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Remove unused types/*.d.ts export subpath (#57362)
Summary: Pull Request resolved: https://github.com/react/react-native/pull/57362 The `"./types/*.d.ts"` entry was an overly defensive addition during our non-breaking `"exports"` field addition back in 0.80. In reality, this subpath has no real consumers: the legacy types entry point (`.`) resolves its own declaration files through relative references, and the supported deep-import surface is `react-native/Libraries/*`, not `react-native/types/*`. Type resolution of the main entry point and of `react-native/Libraries/*` deep imports is unaffected, and there is no runtime impact (these are declaration files). Follows the exports-map cleanup in https://github.com/react/react-native/pull/57276. Changelog: [Internal] Reviewed By: javache Differential Revision: D110044754 fbshipit-source-id: 0ddea81417e765503de01c8c43800f4114c81eb3
This commit is contained in:
1 parent
ce72288bfc
commit
8638a19db1
1 file changed
-4
@@ -52,10 +52,6 @@
|
||||
"types": null,
|
||||
"default": "./src/*.js"
|
||||
},
|
||||
"./types/*.d.ts": {
|
||||
"react-native-strict-api": null,
|
||||
"default": "./types/*.d.ts"
|
||||
},
|
||||
"./jest-preset": "./jest-preset.js",
|
||||
"./rn-get-polyfills": "./rn-get-polyfills.js",
|
||||
"./src/fb_internal/*": "./src/fb_internal/*",
|
||||
|
||||
Reference in new issue
Block a user