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

expand type aliases when comparing unions #6946

Conversation

sebkehr
Copy link

@sebkehr sebkehr commented Nov 19, 2021

Fixes #6440.

With the proposed changes type aliases are expanded when comparing union types.

This should allow for type aliases being passed as constrained type parameters.

@weirdan weirdan added the release:fix The PR will be included in 'Fixes' section of the release notes label Nov 19, 2021
@weirdan weirdan merged commit cd48940 into vimeo:master Nov 19, 2021
@weirdan
Copy link
Collaborator

weirdan commented Nov 19, 2021

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:fix The PR will be included in 'Fixes' section of the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Type alias imported via @psalm-import-type cannot be used for constrained template type
2 participants