cela fait partie de mon code :
const myObj: object = {}
const propname = 'propname'
myObj[propname] = 'string'
mais j'ai une erreur :
ERROR in path/to/file.ts(4,1)
TS7053: Element implicitly has an 'any' type because expression of type '"propname"' can't be used to index type '{}'.
Property 'propname' does not exist on type '{}'.
Qu'est-ce qui ne va pas ici et comment puis-je le réparer ?