Skip to content

gunshi / definition / define

Function: define()

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

Define a command with type inference

Type Parameters

Type ParameterDefault type
Options extends ArgOptionsArgOptions

Parameters

ParameterTypeDescription
definitionCommand<Options>A command definition

Returns

Command<Options>

A command definition with type inference

Released under the MIT License.