Skip to content

Commit

Permalink
fix: compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Oct 17, 2023
1 parent c62fb01 commit 15d6556
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,9 @@ export abstract class Command {
return Errors.error(input, options as any)
}

public exit(code = 0): never {
public exit(code: number): never
public exit(code: 0): void
public exit(code = 0): void | never {
Errors.exit(code)
}

Expand Down

0 comments on commit 15d6556

Please sign in to comment.