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
declareconstx: {'': string;'a': string;'a-b': string;}x['']// error TS7017: Element implicitly has an 'any' type because type '{ '': string; 'a': string; 'a-b': string; }' has no index signature.x['a']// finex['a-b']// fine
Expected behavior:
no error
Actual behavior:
error TS7017: Element implicitly has an 'any' type because type '{ '': string; 'a': string; 'a-b': string; }' has no index signature.
The text was updated successfully, but these errors were encountered:
TypeScript Version: 2.3.0-dev.20170415
Code
Expected behavior:
no error
Actual behavior:
error TS7017: Element implicitly has an 'any' type because type '{ '': string; 'a': string; 'a-b': string; }' has no index signature.
The text was updated successfully, but these errors were encountered: