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
I want to define an object type where I explicitly define types of known members and then have a different type for unknown members (type of the index signature):
I want to define an object type where I explicitly define types of known members and then have a different type for unknown members (type of the index signature):
With above code, TypeScript complains that "Property
foo
is incompatible with index signature".**Why type of property
foo
has to be compatible with index signature?This issue originally came up here: typescript-eslint/typescript-eslint#272 (comment)
The text was updated successfully, but these errors were encountered: