Could you please update the typescript definitions so that the commandLineArgs function can accept a Readonly array of options? The function definition could then look something like this:
declare function commandLineArgs(
optionDefinitions: ReadonlyArray<commandLineArgs.OptionDefinition>,
options?: commandLineArgs.ParseOptions
): commandLineArgs.CommandLineOptions;
could you post a PR on DefinitelyTyped please? I don't use Typescript, I learned the basics a year or two ago but have forgotten everything already. If you post a PR, I will check and approve it if all is good.
Could you please update the typescript definitions so that the
commandLineArgs
function can accept a Readonly array of options? The function definition could then look something like this: