How to express an interface (IResponse), with one property has a string key (which is not known statically). Below, the key values can be anything like bo
values
bo
Old question, but here is how I solved the issue for myself.
export interface Foo { [key: string]: any; } { something: 0 } as Foo => valid { other: 'hello' } as Foo => valid