assign dynamic properties to same object class typescript code example
Example: typescript dynamic key value object
interface LooseObject {
[key: string]: any
}
var obj: LooseObject = {};
interface LooseObject {
[key: string]: any
}
var obj: LooseObject = {};