Recently, I studied the TypeScript source code and came across a property printed as follows:
private _properties: {[name:string]: string};
I asked myself what this type refers to? What it is?
I thought it would be an object where the key and value should be string.
But I tried it on a TypeScript playground and saw something like
this._properties['name'] = 5;
. So what is the full explanation of this type?
source
share