edit interface index signature typescript 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