gunshi / default / LazyCommand
Type Alias: LazyCommand<G, D>
ts
type LazyCommand<G, D> = () => Awaitable<
| Command<G>
| CommandRunner<G>> & D extends object ? object : object & Omit<D, "name" | "run"> & Partial<Omit<Command<G>, keyof D | "run" | "name">>;Lazy command interface.
Lazy command that's not loaded until it is executed.
Type Parameters
| Type Parameter | Default type | Description |
|---|---|---|
G extends GunshiParamsConstraint | DefaultGunshiParams | The Gunshi parameters constraint |
D extends Partial<Command<G>> | object | The partial command definition provided to lazy function |
