Skip to content

Auto-generate TypeScript types for metro-cache#1576

Closed
robhogan wants to merge 1 commit into
mainfrom
export-D81125128
Closed

Auto-generate TypeScript types for metro-cache#1576
robhogan wants to merge 1 commit into
mainfrom
export-D81125128

Conversation

@robhogan

Copy link
Copy Markdown
Contributor

Summary:
Auto-generate TypeScript defs for the metro-cache package using flow-api-translator, and enforce that they remain in sync.

Why metro-cache?

  • It's relatively small, so easy to review these changes by eye while this is a new process.
  • Its types have no dependencies on any other package (Metro, Node or otherwise)
  • It's a dependency of metro-config, which is the most important to start auto-generating in terms of user impact - all RN users interact with metro-config's types.

Changelog: Internal

Reviewed By: vzaidman

Differential Revision: D81125128

@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 Sep 10, 2025
@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

facebook-github-bot pushed a commit that referenced this pull request Sep 10, 2025
Summary:

Auto-generate TypeScript defs for the `metro-cache` package using `flow-api-translator`, and enforce that they remain in sync.

## Why `metro-cache`?
 - It's relatively small, so easy to review these changes by eye while this is a new process.
 - Its types have no dependencies on any other package (Metro, Node or otherwise)
 - It's a dependency of `metro-config`, which is the most important to start auto-generating in terms of user impact - all RN users interact with `metro-config`'s types.

Changelog: Internal

Reviewed By: vzaidman

Differential Revision: D81125128
@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

robhogan added a commit that referenced this pull request Sep 10, 2025
Summary:

Auto-generate TypeScript defs for the `metro-cache` package using `flow-api-translator`, and enforce that they remain in sync.

## Why `metro-cache`?
 - It's relatively small, so easy to review these changes by eye while this is a new process.
 - Its types have no dependencies on any other package (Metro, Node or otherwise)
 - It's a dependency of `metro-config`, which is the most important to start auto-generating in terms of user impact - all RN users interact with `metro-config`'s types.

Changelog: Internal

Reviewed By: vzaidman

Differential Revision: D81125128
Summary:
Pull Request resolved: #1576

Auto-generate TypeScript defs for the `metro-cache` package using `flow-api-translator`, and enforce that they remain in sync.

## Why `metro-cache`?
 - It's relatively small, so easy to review these changes by eye while this is a new process.
 - Its types have no dependencies on any other package (Metro, Node or otherwise)
 - It's a dependency of `metro-config`, which is the most important to start auto-generating in terms of user impact - all RN users interact with `metro-config`'s types.

Changelog: Internal

Reviewed By: vzaidman

Differential Revision: D81125128
@facebook-github-bot

Copy link
Copy Markdown
Contributor

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

@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request has been merged in 95e6d90.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants