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 | Description |
|---|---|---|
G extends GunshiParamsConstraint | DefaultGunshiParams | A type extending GunshiParams to specify the shape of command context and command runner. |
Returns
Awaitable< | Command<G> | CommandRunner<G>>
A command or command runner
