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
TypeScript Version: 2.1.4 - Windows version tsc.cmd Description: Index signature bug.
varfoo: {bar?: 0;[key: string]: any}={};foo.newProp='';// Error: Property 'newProp' does not exist on type of foofoo['newProp']=''// NO error!!! Same code!
How is it possible? 😕
Expected behavior: NO error. Actual behavior: Error exists.
The text was updated successfully, but these errors were encountered:
TypeScript Version: 2.1.4 - Windows version
tsc.cmd
Description: Index signature bug.
How is it possible? 😕
Expected behavior: NO error.
Actual behavior: Error exists.
The text was updated successfully, but these errors were encountered: