implement index signature from typescript class code example
Example: index signature in typescript
let foo: any = {};
foo['Hello'] = 'World';
console.log(foo['Hello']); // World
let foo: any = {};
foo['Hello'] = 'World';
console.log(foo['Hello']); // World