Skip to content

Type Alias: CommandExamplesFetcher<G> ​

Command examples fetcher.

Signature ​

ts
export type CommandExamplesFetcher<G extends GunshiParamsConstraint = DefaultGunshiParams> = (ctx: Readonly<CommandContext<G>>) => Awaitable<string>

Type Parameters ​

NameDescription
G extends GunshiParamsConstraint = DefaultGunshiParamsA type extending GunshiParams to specify the shape of command context.

Parameters ​

NameTypeDescription
ctxReadonly<CommandContext<G>>A command context

Returns ​

Awaitable<string> — A fetched command examples.

Released under the MIT License.