In Typescript, you'd just do this: class Test { [key: string]: whatever } Which allows you to access computed property names like so... class Test { getPro
What is the correct index signature for the following class? class MyClass { [index: string]: Promise<void> | Promise<MyType>; // not working p