Skip to content

gunshi / default / LazyCommand

Type Alias: LazyCommand<A>

ts
type LazyCommand<A> = {
(): Awaitable<
  | Command<A>
  | CommandRunner<A>>;
  commandName?: string;
} & Omit<Command<A>, "run" | "name">;

Lazy command interface. Lazy command that's not loaded until it is executed.

Type Parameters

Type ParameterDefault type
A extends ArgsArgs

Released under the MIT License.