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
cc @ahejlsberg
TypeScript Version: 2.7.0-dev.20180206
Search Terms:
Code
type Call<T extends () => any> = T extends () => infer R ? R : never; type Cast<T> = Call<CastMap<T>>; interface CastMap<T> { (this: ThisType<true>): true; (this: ThisType<false>): false; (this: ThisType<boolean>): boolean; (this: ThisType<void>): void; } type A = Cast<true>;
Expected behavior:
A is true.
A
true
Actual behavior:
A is void.
void
Playground Link:
Related Issues:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
cc @ahejlsberg
TypeScript Version: 2.7.0-dev.20180206
Search Terms:
Code
Expected behavior:
A
istrue
.Actual behavior:
A
isvoid
.Playground Link:
Related Issues:
The text was updated successfully, but these errors were encountered: