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

feat(es/parser): Support 'extends' clause to 'infer' type #4326

Merged
merged 2 commits into from
Apr 13, 2022
Merged

feat(es/parser): Support 'extends' clause to 'infer' type #4326

merged 2 commits into from
Apr 13, 2022

Conversation

g-plane
Copy link
Contributor

@g-plane g-plane commented Apr 13, 2022

Description:

Support the new TypeScript syntax below:

type X3<T> = T extends [infer U extends number] ? MustBeNumber<U> : never;

Reference: microsoft/TypeScript#48112

@kdy1 kdy1 added this to the v1.2.166 milestone Apr 13, 2022
Copy link
Member

@kdy1 kdy1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!


swc-bump:

  • swc_ecma_parser

@kdy1 kdy1 enabled auto-merge (squash) April 13, 2022 18:52
@kdy1 kdy1 merged commit 1c3d1af into swc-project:main Apr 13, 2022
@g-plane g-plane deleted the infer-with-extends branch April 14, 2022 00:19
@swc-project swc-project locked as resolved and limited conversation to collaborators Oct 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants