Skip to content

gunshi / default / CommandExamplesFetcher

Type Alias: CommandExamplesFetcher()<A, V>

ts
type CommandExamplesFetcher<A, V> = (ctx) => Promise<string>;

Command examples fetcher.

Type Parameters

Type ParameterDefault type
A extends ArgsArgs
VArgValues<A>

Parameters

ParameterTypeDescription
ctxReadonly<CommandContext<A, V>>A command context

Returns

Promise<string>

A fetched command examples.

Released under the MIT License.