gunshi / context / createCommandContext
Function: createCommandContext()
ts
function createCommandContext<A, V>(param): Promise<Readonly<CommandContext<A, V>>>;Create a command context
Type Parameters
| Type Parameter | Default type |
|---|---|
A extends Args | Args |
V extends object | ArgValues<A> |
Parameters
| Parameter | Type | Description |
|---|---|---|
param | CommandContextParams<A, V> | A CommandContextParams | parameters to create a command context |
Returns
Promise<Readonly<CommandContext<A, V>>>
A command context, which is readonly
