I've attempted to look at other similar questions, but most of them appear to be defining arrays instead of objects.
I'm mostly new to Typescript as a whole, and am still trying to wrangle some of the concepts, having both experience in C# and JavaScript.
I'm making an object that is a collection of one or more named functions in an object. Each function accepts an array of strings, or multiple strings, as the following definition:
define function PluginCommand(argv: array, ...args:string[]): number;
Now, how can I assign multiple of these PluginCommands to a (preferably) defined object where the key can be any valid string?
Record<string, PluginCommand>perhaps? Equivalently:{[key: string]: PluginCommand}.