Skip to content

Consolidate location for Flow libdefs#51539

Closed
huntie wants to merge 1 commit into
facebook:mainfrom
huntie:export-D75060846
Closed

Consolidate location for Flow libdefs#51539
huntie wants to merge 1 commit into
facebook:mainfrom
huntie:export-D75060846

Conversation

@huntie
Copy link
Copy Markdown
Member

@huntie huntie commented May 22, 2025

Summary:
Follow up to D70322032. Relocates some of our newly added Flow library definitions into the package level flow/ directory, to help disambiguate their use.

Types directories after changes

packages/react-native/

  • flow/ — Longstanding location for Flow package/global library definitions. Not imported by source code.
  • src/types/ — Contains public typedefs useful to 3P consumers (TypeScript) (today, just globals.d.ts as one module). Not imported by source code.
  • src/private/types/ — Source type modules in Flow, that are imported by other files in src/private/.

Changelog: [Internal]

Reviewed By: christophpurrer

Differential Revision: D75060846

Summary:
Follow up to D70322032. Relocates some of our newly added Flow library definitions into the package level `flow/` directory, to help disambiguate their use.

**Types directories after changes**

`packages/react-native/`

- `flow/` — Longstanding location for Flow package/global library definitions. Not imported by source code.
- `src/types/` — Contains public typedefs useful to 3P consumers (TypeScript) (today, just `globals.d.ts` as one module). Not imported by source code.
- `src/private/types/` — Source type modules **in Flow**, that **are imported** by other files in `src/private/`.

Changelog: [Internal]

Reviewed By: christophpurrer

Differential Revision: D75060846
@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner labels May 22, 2025
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D75060846

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in 44e36e6.

@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @huntie in 44e36e6

When will my fix make it into a release? | How to file a pick request?

@huntie huntie deleted the export-D75060846 branch August 21, 2025 14:30
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. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants