I am seeing this error with TypeScript:
The code itself just looks like this:
let fn = function (transformPaths: Array<string>, cb: Function) {
async.mapLimit(transformPaths, 5, function (t: string, $cb: Function) {
// ....
}, cb);
};
The error message is:
TS2345: Argument of type 'string[]' is not assignable to parameter of type 'Dictionary<{}>'. Index signature is missing in type 'string[]'.
How can I correct this? As you can see from the screenshot, the typings from the async library do not like a plain array of strings being passed as the first argument to async.mapLimit, but why?
I am 99% certain I need to add an index signature to the array of strings, but how do I do that?
Here is something that "compiles" but I don't know if it's correct (this doesn't seem to be helping anyone):
export interface ISumanTransformPaths extends Array<string> {
[index:string]: Object
}
now when I use (transformPaths: ISumanTransformPaths), then it compiles, but I am not sure if this correct.

{ key1: "value1", key2: "value2" })asynclibrary, but usuallyDictionarymeans key/value. Can you share a link to the definition file for it?