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
{{ message }}
This repository was archived by the owner on Oct 12, 2022. It is now read-only.
In this example, length's type does not match the string index's type, and the type-checker gives an error:
interfaceNumberDictionary{[index: string]: number;length: number;// ok, length is a numbername: string;// error, the type of 'name' is not a subtype of the indexer}
I think this should be changed:
In this example, name's type does not match the number index's type, and the type-checker gives an error:
interfaceNumberDictionary{[index: string]: number;length: number;// ok, length is a numbername: string;// error, the type of 'name' is not a subtype of the indexer}