Category "index-signature"

Using JSDoc to set an index signature on an ES6 Class

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

TypeScript index signature with promises

What is the correct index signature for the following class? class MyClass { [index: string]: Promise<void> | Promise<MyType>; // not working p