Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Commit

Permalink
fix: return type of exit
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed May 6, 2018
1 parent eef7598 commit 74d02c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {config} from './config'
import {CLIError} from './errors/cli'
import {ExitError} from './errors/exit'

export function exit(code = 0) {
export function exit(code = 0): never {
throw new ExitError(code)
}

Expand Down

0 comments on commit 74d02c2

Please sign in to comment.