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 text was updated successfully, but these errors were encountered:
Conaclos
changed the title
No index signature when a type has a symbol property
No index signature when a generic type has a symbol property
Mar 5, 2018
Search Terms: "symbol", "no index signature", "symbol enumerable"
Tested TypeScript versions:
2.7.2
and2.8.0-dev.20180302
Code
Expected behavior:
No error when
noImplicitAny
is enabled.Actual behavior:
The following error is reported:
Note that this error only occurs when noImplicitAny is turned on.
Playground Link: play with it. Don't forget to enable noImplicitAny.
Related Issues:
The following issue could be related to:
Workaround:
Write an interface whithout the symbol properties (here
Partial
), and use this interface for traversing (using type assertions).The text was updated successfully, but these errors were encountered: