typescript create property on object code example
Example: typescript dynamic key value object
interface LooseObject {
[key: string]: any
}
var obj: LooseObject = {};
interface LooseObject {
[key: string]: any
}
var obj: LooseObject = {};