Skip to content

gunshi / default / CommandExamplesFetcher

Type Alias: CommandExamplesFetcher()<G>

ts
type CommandExamplesFetcher<G> = (ctx) => Awaitable<string>;

Command examples fetcher.

Type Parameters

Type ParameterDefault typeDescription
G extends GunshiParamsConstraintDefaultGunshiParamsA type extending GunshiParams to specify the shape of command context.

Parameters

ParameterTypeDescription
ctxReadonly<CommandContext<G>>A command context

Returns

Awaitable<string>

A fetched command examples.

Released under the MIT License.