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:
1.8.2
Code
type FooBar = "foo" | "bar"; var map:{[foobBar:FooBar]: boolean};
Expected behavior:
I should be able to define a index type with a string literal type as key.
Actual behavior:
The typescript compiler complains with
Error:(3, 11) TS1023: An index signature parameter type must be 'string' or 'number'.
The text was updated successfully, but these errors were encountered:
looks like a duplicate of #6246
Sorry, something went wrong.
actually #5683 is a better one to reference.
No branches or pull requests
TypeScript Version:
1.8.2
Code
Expected behavior:
I should be able to define a index type with a string literal type as key.
Actual behavior:
The typescript compiler complains with
The text was updated successfully, but these errors were encountered: