Skip to content

Support 'react-native/react-private-interface' in build-types - #58075

Closed
huntie wants to merge 1 commit into
react:mainfrom
huntie:cursor/fix-js-api-exports-resolution-db59
Closed

Support 'react-native/react-private-interface' in build-types#58075
huntie wants to merge 1 commit into
react:mainfrom
huntie:cursor/fix-js-api-exports-resolution-db59

Conversation

@huntie

@huntie huntie commented Aug 22, 2026

Copy link
Copy Markdown
Collaborator

Summary

Motivation

Minimum infra fix to enable subsequently landing #57940.

Referencing ReactNativeFeatureFlags on the existing react-native/react-private-interface boundary is blocked by a gap in the build-types pipeline and a type translation error, addressed here.

Changes

  • simpleResolve.js: Explicitly support react-native/react-private-interface as a special case, fixing resolution.
  • ReactNativeFeatureFlagsBase.js: Tweak the OverridesFor type here to fix TypeScript translation compatibility, where the unconstrained T type param is now narrowed.

Impact

No change to the API snapshot (the ReactNativeFeatureFlags import is ultimately tree-shaken!), and no effect on generated types until #57940 lands.

Changelog: [Internal]

Test Plan

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 22, 2026
@cursor
cursor Bot force-pushed the cursor/fix-js-api-exports-resolution-db59 branch from 9ee6f05 to d243be5 Compare August 22, 2026 19:07
@huntie huntie changed the title Respect package.json exports in js-api typegen pipeline Treat react-private-interface as runtime-only in js-api typegen Aug 22, 2026
@huntie huntie changed the title Treat react-private-interface as runtime-only in js-api typegen Skip ReactNativeFeatureFlags in react-private-interface typegen Aug 22, 2026
@cursor
cursor Bot force-pushed the cursor/fix-js-api-exports-resolution-db59 branch from d243be5 to 2b77af6 Compare August 22, 2026 19:52
@huntie
huntie force-pushed the cursor/fix-js-api-exports-resolution-db59 branch from 2b77af6 to 4f29a52 Compare August 24, 2026 15:46
@huntie huntie changed the title Skip ReactNativeFeatureFlags in react-private-interface typegen Support 'react-native/react-private-interface' in build-types Aug 24, 2026
@huntie
huntie marked this pull request as ready for review August 24, 2026 15:55
@facebook-github-tools facebook-github-tools Bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Aug 24, 2026
@meta-codesync

meta-codesync Bot commented Aug 26, 2026

Copy link
Copy Markdown

@cortinico has imported this pull request. If you are a Meta employee, you can view this in D117513265.

@meta-codesync meta-codesync Bot closed this in cec189b Aug 27, 2026
@meta-codesync meta-codesync Bot added the Merged This PR has been merged. label Aug 27, 2026
@meta-codesync

meta-codesync Bot commented Aug 27, 2026

Copy link
Copy Markdown

@cortinico merged this pull request in cec189b.

@huntie
huntie deleted the cursor/fix-js-api-exports-resolution-db59 branch August 27, 2026 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant