From dd753f045cde58d89b209e007926d4131f925570 Mon Sep 17 00:00:00 2001 From: Mike Donnalley Date: Tue, 25 Jul 2023 13:45:04 -0600 Subject: [PATCH] fix: corrected return type for Command.exit (#715) (#742) Co-authored-by: jackie-linz <120340761+jackie-linz@users.noreply.github.com> --- src/command.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/command.ts b/src/command.ts index fc19634c6..fe442638a 100644 --- a/src/command.ts +++ b/src/command.ts @@ -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 {