gunshi / default / CommandLoader
Type Alias: CommandLoader()<G>
ts
type CommandLoader<G> = () => Awaitable<
| Command<G>
| CommandRunner<G>>;
Command loader. A function that returns a command or command runner. This is used to lazily load commands.
Type Parameters
Type Parameter | Default type |
---|---|
G extends GunshiParams <any > | DefaultGunshiParams |
Returns
Awaitable
< | Command
<G
> | CommandRunner
<G
>>
A command or command runner