Skip to content

Commit 4b8ec74

Browse files
committed
fix: foo
1 parent 1a07a37 commit 4b8ec74

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ export type CommandObjectInput = Omit<Command, 'options'> & {
3838
options?: OptionsInput;
3939
};
4040

41-
export type CommandInObjectInput = CommandObjectInput | Handler;
41+
export type CommandObjectInObjectInput = Omit<CommandObjectInput, 'name'> &
42+
Partial<Pick<CommandObjectInput, 'name'>>;
43+
44+
export type CommandInObjectInput = CommandObjectInObjectInput | Handler;
4245

4346
export type CommandsInput =
4447
| CommandObjectInput[]

0 commit comments

Comments
 (0)