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.7
Code
type StringOrNumberKeys: { [key: string | number]: number };
Expected behavior: Should work
Actual behavior:
Error: an index signature parameter must be 'string' or 'number'
The text was updated successfully, but these errors were encountered:
duplicate of #1705
Sorry, something went wrong.
also note, that using string indexer will achieve what you want.
type StringOrNumberKeys: { [key: string]: number };
No branches or pull requests
TypeScript Version:
1.8.7
Code
Expected behavior:
Should work
Actual behavior:
The text was updated successfully, but these errors were encountered: