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.1.1
Code
interface Dictionary { [key: string]: any; } const plugins: Dictionary = {} plugins.test = {} const plugins2: { [key: string]: any; } = {} plugins2.test = {}
Expected behavior: no error
Actual behavior:
Property 'test' does not exist on type 'Dictionary'. any
See the playground example
IMHO, dot style assignment should infer the property name as string
string
I think it's related to #6041
The text was updated successfully, but these errors were encountered:
Duplicate of #12596
Sorry, something went wrong.
this has been fixed in v2.2
No branches or pull requests
TypeScript Version: 2.1.1
Code
Expected behavior:
no error
Actual behavior:
See the playground example
IMHO, dot style assignment should infer the property name as
string
I think it's related to #6041
The text was updated successfully, but these errors were encountered: