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
classFoo{constructor(){/** @type {Record<string, number>} */this.bar={};// has type {[x: string]: any}/** @type {Record<string, number>} */this.baz=({});// has type {Record<string, number>}}}
Expected behavior: bar and baz both have the declared type. Actual behavior:
Only baz has the declared type.
Related Issues: possibly 26743
The text was updated successfully, but these errors were encountered:
TypeScript Version: 3.1.0-dev.20180906
Search Terms: js class property type
Code
Expected behavior:
bar
andbaz
both have the declared type.Actual behavior:
Only
baz
has the declared type.Related Issues: possibly 26743
The text was updated successfully, but these errors were encountered: