Skip to content

Commit

Permalink
fix: corrected return type for Command.exit (#715) (#742)
Browse files Browse the repository at this point in the history
Co-authored-by: jackie-linz <120340761+jackie-linz@users.noreply.github.com>
  • Loading branch information
mdonnalley and jackie-linz committed Jul 25, 2023
1 parent 16139fe commit dd753f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,8 @@ export abstract class Command {
return result as T
}

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

public warn(input: string | Error): string | Error {
Expand Down

0 comments on commit dd753f0

Please sign in to comment.