We've been using lodash in an old TypeScript project. Now we're migrating to ES6 modules so replacing lodash with lodash-es. In lodash there is a Dictionary type declared here:
https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/common/common.d.ts#L247-L249
interface Dictionary<T> {
[index: string]: T;
}
We used it to declare some fields like this:
labTransGrouped: Dictionary<Array<ILabtransItem>>;
There is no obvious replacement in lodash-es. I assume I should use something like TypeScript Map instead. But what is the right way to use it in type declaration in my case? I could not find any mention of that in lodash changelog or migration guides, so must be something simple.