When working with TypeScript, I have the ability to document a dictionary or map that includes specific entries, but still retains the functionality of a dictionary/map (you can add or remove entries). An example of defining such a structure in TypeScript is shown below:
type Foo = {
bar: number;
moo: number;
[key: string]: number;
};
I am wondering if there is an equivalent feature in JSDoc for this type of scenario?