Skip to content

gunshi / context / createCommandContext

Function: createCommandContext()

ts
function createCommandContext<A, V>(param): Promise<Readonly<CommandContext<A, V>>>;

Create a command context

Type Parameters

Type ParameterDefault type
A extends ArgsArgs
V extends objectArgValues<A>

Parameters

ParameterTypeDescription
paramCommandContextParams<A, V>A CommandContextParams | parameters to create a command context

Returns

Promise<Readonly<CommandContext<A, V>>>

A command context, which is readonly

Released under the MIT License.