From 8638a19db17dc5d67a492ccf9b910a9a79ea11fd Mon Sep 17 00:00:00 2001 From: Alex Hunt Date: Mon, 29 Jun 2026 06:15:51 -0700 Subject: [PATCH] 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 --- packages/react-native/package.json | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/react-native/package.json b/packages/react-native/package.json index 67e54cd008e..888245bcd3e 100644 --- a/packages/react-native/package.json +++ b/packages/react-native/package.json @@ -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/*",