Skip to content

gunshi / definition / define

Function: define()

ts
function define<A>(definition): Command<A>;

Define a command with type inference

Type Parameters

Type ParameterDefault type
A extends ArgsArgs

Parameters

ParameterTypeDescription
definitionCommand<A>A command definition

Returns

Command<A>

A command definition with type inference

Released under the MIT License.