is there a way for this conversion to be avoided? I see there's this interface
interface NumericDictionary<T> {
[index: number]: T;
}
but can't figure out how to use it
is there a way for this conversion to be avoided? I see there's this interface
interface NumericDictionary<T> {
[index: number]: T;
}
but can't figure out how to use it
you can do this by typing the result i.e.
res: Record<number, value> = _.keyBy(x, 'path')