Skip to content

Commit 8638a19

Browse files
huntiemeta-codesync[bot]
authored andcommitted
Remove unused types/*.d.ts export subpath (#57362)
Summary: Pull Request resolved: #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 #57276. Changelog: [Internal] Reviewed By: javache Differential Revision: D110044754 fbshipit-source-id: 0ddea81417e765503de01c8c43800f4114c81eb3
1 parent ce72288 commit 8638a19

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

packages/react-native/package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,6 @@
5252
"types": null,
5353
"default": "./src/*.js"
5454
},
55-
"./types/*.d.ts": {
56-
"react-native-strict-api": null,
57-
"default": "./types/*.d.ts"
58-
},
5955
"./jest-preset": "./jest-preset.js",
6056
"./rn-get-polyfills": "./rn-get-polyfills.js",
6157
"./src/fb_internal/*": "./src/fb_internal/*",

0 commit comments

Comments
 (0)