Skip to content

gunshi / default / CommandResourceFetcher

Type Alias: CommandResourceFetcher()<A, V>

ts
type CommandResourceFetcher<A, V> = (ctx) => Promise<CommandResource<A>>;

Command resource fetcher.

Type Parameters

Type ParameterDefault type
A extends ArgsArgs
VArgValues<A>

Parameters

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

Returns

Promise<CommandResource<A>>

A fetched command resource.

Released under the MIT License.