Skip to content

Commit

Permalink
πŸ› fix(core): type
Browse files Browse the repository at this point in the history
  • Loading branch information
so1ve committed Dec 27, 2022
1 parent 231e935 commit fc00964
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/core/src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ export type CommandAlias<N extends string | SingleCommandType = string, O extend
};
export type CommandWithHandler<N extends string | SingleCommandType = string, O extends CommandOptions = CommandOptions> = Command<N, O> & {
handler?: HandlerInCommand<
// @ts-expect-error That's OK
Record<N, Command<N, O>>, N
Record<N, Command<N, O>> & Record<never, never>, N
>
};
type StripBrackets<Parameter extends string> = (
Expand Down

0 comments on commit fc00964

Please sign in to comment.