gunshi / default / CommandResource
Type Alias: CommandResource<G>
ts
type CommandResource<G> = object & { [Arg in GenerateNamespacedKey<KeyOfArgs<RemovedIndex<G["args"]>>, typeof ARG_PREFIX>]: string } & object;
Command resource.
Type declaration
description
ts
description: string;
Command description.
examples
ts
examples: string | CommandExamplesFetcher<G>;
Examples usage.
Type Parameters
Type Parameter | Default type |
---|---|
G extends GunshiParams <any > | DefaultGunshiParams |