You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As it should include the global types in the command generict type.
We are also incorrectly declarring the command modules in yargs as we pass it as a command array and it propably should not be, eg: .command([ userFlowCommand ]).
We are also incorrectly using the Command builder
constuserFlowBuilder: CommandBuilder={ queue, store };
This should be using the proper (argv) => argv.options(...options) with its correct typing.
We are also incorrectly using the type declarations of the command arguments. We should use the yargs typing that inferres it insead of creating out own interface!
TODOS
Fix command module typing to include generics of options
Fix command declaration to not be array of commands
Use typed functional command builders
Use InferredOptionTypes instead of our own interface
The text was updated successfully, but these errors were encountered:
Description
Main currently looks like this:
This means that all the commands have a default set of options.
However, the command typing is incorrect:
As it should include the global types in the command generict type.
We are also incorrectly declarring the command modules in yargs as we pass it as a command array and it propably should not be, eg:
.command([ userFlowCommand ])
.We are also incorrectly using the Command builder
This should be using the proper
(argv) => argv.options(...options)
with its correct typing.We are also incorrectly using the type declarations of the command arguments. We should use the yargs typing that inferres it insead of creating out own interface!
TODOS
The text was updated successfully, but these errors were encountered: