Optional type for data specific to this command.
The string keys representing option names.
The possible option types (e.g., 'string', 'number').
The OptionsConfig
type that represents all options for the command.
The config for constructing the Command.
A constructed Command
object with strong types.
Factory function to create a Command object with strong typing. This is used to define a command with its associated metadata, options, and handler logic.
The function is generic and can be used to define a command with custom types, but it's recommended to allow TypeScript to infer the types based on the options passed to the function.