FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

feat(es/parser): Support 'extends' clause to 'infer' type by g-plane · Pull Request #4326 · swc-project/swc · GitHub

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

Merged
Donny/강동윤 (kdy1) merged 2 commits into
swc-project:mainfrom
g-plane:infer-with-extends
Apr 13, 2022
Merged

Donny/강동윤 (kdy1) merged 2 commits into
swc-project:mainfrom
g-plane:infer-with-extends

Conversation

Copy link
Copy Markdown
Contributor

Description:

Support the new TypeScript syntax below:

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

Reference: microsoft/TypeScript#48112

Donny/강동윤 (kdy1) added this to the v1.2.166 milestone Apr 13, 2022

Donny/강동윤 (kdy1) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Thank you!


swc-bump:

  • swc_ecma_parser

Donny/강동윤 (kdy1) enabled auto-merge (squash) April 13, 2022 18:52
Donny/강동윤 (kdy1) merged commit 1c3d1af into swc-project:main Apr 13, 2022
Pig Fang (g-plane) deleted the infer-with-extends branch April 14, 2022 00:19
swc (swc-project) locked as resolved and limited conversation to collaborators Oct 24, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL