this is part of my code:
const myObj: object = {} const propname = \'propname\' myObj[propname] = \'string\' <
const myObj: object = {} const propname = \'propname\' myObj[propname] = \'string\'
Why just simple replace 'object' with 'any':
const myObj: any = {} const propname = 'propname' myObj[propname] = 'string'
Another short alternative.