Skip to content

Fix final few problematic React.ElementRef in react-native#47473

Closed
SamChou19815 wants to merge 1 commit into
facebook:mainfrom
SamChou19815:export-D65562571
Closed

Fix final few problematic React.ElementRef in react-native#47473
SamChou19815 wants to merge 1 commit into
facebook:mainfrom
SamChou19815:export-D65562571

Conversation

@SamChou19815
Copy link
Copy Markdown
Contributor

Summary:
For example,

declare function C<T>(ref: React.RefSetter<Set<T>>): React.Node;

type T = React.ElementRef<typeof C>

Previously Flow will evaluate T to Set<mixed>, by automatically replacing generic types with their upper bounds. But in the future it might be replaced with empty.

This diff cleans up instances like this in react-native codebase.

Changelog: [Internal]

Differential Revision: D65562571

Summary:
For example,

```
declare function C<T>(ref: React.RefSetter<Set<T>>): React.Node;

type T = React.ElementRef<typeof C>
```

Previously Flow will evaluate `T` to `Set<mixed>`, by automatically replacing generic types with their upper bounds. But in the future it might be replaced with `empty`.

This diff cleans up instances like this in react-native codebase.

Changelog: [Internal]

Differential Revision: D65562571
@facebook-github-bot facebook-github-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 Nov 6, 2024
@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in 0ca2ba0.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Nov 7, 2024
@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @SamChou19815 in 0ca2ba0

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

@SamChou19815 SamChou19815 deleted the export-D65562571 branch November 7, 2024 02:32
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