Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Require Flow types in all react-native source files #45786

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

huntie
Copy link
Member

@huntie huntie commented Jul 29, 2024

Summary:
Following D60377082, packages/react-native/Libraries/ is now 100% parsable by flow-api-translator and covered by flow-api-test. This diff increases test strictness to preserve this state going forward.

Changelog: [Internal]

Differential Revision: D60377123

@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 Jul 29, 2024
@facebook-github-bot
Copy link
Contributor

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

@react-native-bot
Copy link
Collaborator

Warnings
⚠️ 🔒 package.json - Changes were made to package.json. This will require a manual import by a Facebook employee.

Generated by 🚫 dangerJS against b3089a6

@facebook-github-bot
Copy link
Contributor

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

huntie added a commit to huntie/react-native that referenced this pull request Jul 29, 2024
Summary:
Pull Request resolved: facebook#45786

Following D60377082, `packages/react-native/Libraries/` is now 100% parsable by `flow-api-translator` and covered by `flow-api-test`. This diff increases test strictness to preserve this state going forward.

Changelog: [Internal]

Reviewed By: cortinico

Differential Revision: D60377123
@react-native-bot
Copy link
Collaborator

Warnings
⚠️ 🔒 package.json - Changes were made to package.json. This will require a manual import by a Facebook employee.

Generated by 🚫 dangerJS against 20e4377

@facebook-github-bot
Copy link
Contributor

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

huntie added a commit to huntie/react-native that referenced this pull request Jul 30, 2024
Summary:
Pull Request resolved: facebook#45786

Following D60377082, `packages/react-native/Libraries/` is now 100% parsable by `flow-api-translator` and covered by `flow-api-test`. This diff increases test strictness to preserve this state going forward.

Changelog: [Internal]

Reviewed By: cortinico

Differential Revision: D60377123
@react-native-bot
Copy link
Collaborator

Warnings
⚠️ 🔒 package.json - Changes were made to package.json. This will require a manual import by a Facebook employee.

Generated by 🚫 dangerJS against beeaa7a

@facebook-github-bot
Copy link
Contributor

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

huntie added a commit to huntie/react-native that referenced this pull request Aug 2, 2024
Summary:
Pull Request resolved: facebook#45786

Following D60377082, `packages/react-native/Libraries/` is now 100% parsable by `flow-api-translator` and covered by `flow-api-test`. This diff increases test strictness to preserve this state going forward.

Changelog: [Internal]

Reviewed By: cortinico

Differential Revision: D60377123
@react-native-bot
Copy link
Collaborator

Warnings
⚠️ 🔒 package.json - Changes were made to package.json. This will require a manual import by a Facebook employee.

Generated by 🚫 dangerJS against 1d7afd2

@facebook-github-bot
Copy link
Contributor

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

huntie added a commit to huntie/react-native that referenced this pull request Aug 8, 2024
Summary:
Pull Request resolved: facebook#45786

Following D60377082, `packages/react-native/Libraries/` is now 100% parsable by `flow-api-translator` and covered by `flow-api-test`. This diff increases test strictness to preserve this state going forward.

Changelog: [Internal]

Reviewed By: cortinico

Differential Revision: D60377123
huntie and others added 3 commits August 8, 2024 06:25
…book#45783)

Summary:
Pull Request resolved: facebook#45783

Improves type strictness in the `react-native` package.

- Break out `URLSearchParams` from `URL.js` into its own module, to isolate a `$FlowFixMe[unsupported-syntax]` suppression within that definition.
- Update `public-api-test` to require an adjacent `<module>.js.flow` type definition file whenever a `$FlowFixMe[unsupported-syntax]`is present.
- Add `URLSearchParams.js.flow` with a Flow parser compatible typedef (`@iterator` instead of `[Symbol.iterator]`).

The result of these changes is to add missing typedef test coverage for `Libraries/Blob/URL.js` (see updated test snapshots).

Changelog: [Internal]

Reviewed By: hoxyq

Differential Revision: D60376327
Summary:
Adds `flow` annotation, and/or adds minimal Flow types to remaining files under `packages/react-native/Libraries/`. As of this diff, 100% of this directory is now parsable by `flow-api-translator` and covered by `public-api-test`.

Changelog: [Internal]

Differential Revision: D60377082
Summary:
Pull Request resolved: facebook#45786

Following D60377082, `packages/react-native/Libraries/` is now 100% parsable by `flow-api-translator` and covered by `flow-api-test`. This diff increases test strictness to preserve this state going forward.

Changelog: [Internal]

Reviewed By: cortinico

Differential Revision: D60377123
@facebook-github-bot
Copy link
Contributor

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

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 p: Facebook Partner: Facebook Partner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants