We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is this working as intended?
infer with extends
New feature in 4.7.0
Playground link with relevant code
type foo = "42" extends `${infer T extends number}` ? T : never
Type of foo is inferred as number.
foo
number
Type of foo is inferred as 42.
42
The text was updated successfully, but these errors were encountered:
It is working as intended until and unless #48094 is merged.
Sorry, something went wrong.
Ah, OK. So this is a duplicate of #47141. Sorry for that.
No branches or pull requests
Bug Report
Is this working as intended?
π Search Terms
infer with extends
π Version & Regression Information
New feature in 4.7.0
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
Type of
foo
is inferred asnumber
.π Expected behavior
Type of
foo
is inferred as42
.The text was updated successfully, but these errors were encountered: