Skip to content

Skip ReactNativeFeatureFlags in react-private-interface typegen - #58075

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

Skip ReactNativeFeatureFlags in react-private-interface typegen#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
Contributor

Important

🚧 WIP and not ready for review yet — unsanitised Cursor draft

Summary

Minimum fix for #57940: when react-private-interface exposes ReactNativeFeatureFlags, do not translate src/private/featureflags/* into types_generated.

  • Skip react-native/react-private-interface in simpleResolve
  • Block src/private/featureflags/* deps from react-private-interface.js.flow
  • Strip the feature-flags re-export from the generated .d.ts (resolution alone leaves a dangling export)

Other src/private/* re-exports (CustomEvent, etc.) are unchanged.

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
Minimum fix for react#57940: when
react-private-interface gains a ReactNativeFeatureFlags export,
do not translate src/private/featureflags/* into types_generated.

- Skip react-native/react-private-interface in simpleResolve
- Block feature-flags deps from react-private-interface.js.flow
- Strip the feature-flags re-export from the generated .d.ts

Co-authored-by: Alex Hunt <huntie@users.noreply.github.com>
@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
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants