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
TypeScript Version: 2.9.0-dev
Code
type Wat<T extends string> = { [x: T]: string }; // Error: An index signature cannot be a union type ?!?
Expected behavior:
Meaningful error message.
Actual behavior:
Error message complains about a union type, but there is no union type.
Related Issues:
The error message is caused by #20726. There is no verification that the type is actually a union type.
The text was updated successfully, but these errors were encountered:
@kujon wanna take a crack at this one as well?
Sorry, something went wrong.
weswigham
No branches or pull requests
TypeScript Version: 2.9.0-dev
Code
Expected behavior:
Meaningful error message.
Actual behavior:
Error message complains about a union type, but there is no union type.
Related Issues:
The error message is caused by #20726. There is no verification that the type is actually a union type.
The text was updated successfully, but these errors were encountered: