gunshi / default / LazyCommand
Type Alias: LazyCommand<G>
ts
type LazyCommand<G> = {
(): Awaitable<
| Command<G>
| CommandRunner<G>>;
commandName?: string;
} & Omit<Command<G>, "run" | "name">;
Lazy command interface. Lazy command that's not loaded until it is executed.
Type Parameters
Type Parameter | Default type |
---|---|
G extends GunshiParams <any > | DefaultGunshiParams |