We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a07a37 commit 4b8ec74Copy full SHA for 4b8ec74
src/index.ts
@@ -38,7 +38,10 @@ export type CommandObjectInput = Omit<Command, 'options'> & {
38
options?: OptionsInput;
39
};
40
41
-export type CommandInObjectInput = CommandObjectInput | Handler;
+export type CommandObjectInObjectInput = Omit<CommandObjectInput, 'name'> &
42
+ Partial<Pick<CommandObjectInput, 'name'>>;
43
+
44
+export type CommandInObjectInput = CommandObjectInObjectInput | Handler;
45
46
export type CommandsInput =
47
| CommandObjectInput[]
0 commit comments