You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.
TypeScript Version: 2.4.0
Code
Expected behavior:
Index signatures should have narrower types. Return type should be
{ [x: 'FOO']: number}
Actual behavior:
return type is:
{ [x: string]: number}
Use case
When making forms in React components I often use a method that returns an
onChange
method to be used on inputonChange
properties:TypeScript fails to understand
filedName
is type'foo' | 'bar'
The text was updated successfully, but these errors were encountered: