gunshi / default / CommandResourceFetcher
Type Alias: CommandResourceFetcher()<A, V>
ts
type CommandResourceFetcher<A, V> = (ctx) => Promise<CommandResource<A>>;Command resource fetcher.
Type Parameters
| Type Parameter | Default type |
|---|---|
A extends Args | Args |
V | ArgValues<A> |
Parameters
| Parameter | Type | Description |
|---|---|---|
ctx | Readonly<CommandContext<A, V>> | A command context |
Returns
Promise<CommandResource<A>>
A fetched command resource.
