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
The root problem here is that we don't contextually type class property initializers with the type the property "should" have from an implements or extends clause. Without a contextual type on the object literal, the property is inferred to not have an index signature.
Logged #3667 as this has been a long-standing pain point.
Playground
Both
properties
are same object, but tsc occurs error in a case without type annotation. Why?Thanks.
The text was updated successfully, but these errors were encountered: