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

Commit

Permalink
fix: typing for this.error()
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed May 12, 2018
1 parent c133e8f commit 1c7e03c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default abstract class Command {
exit(code = 0) { return Errors.exit(code) }
warn(input: string | Error) { Errors.warn(input) }
error(input: string | Error, options: {code?: string, exit: false}): void
error(input: string | Error, options: {code?: string, exit?: number}): never
error(input: string | Error, options?: {code?: string, exit?: number}): never
error(input: string | Error, options: {code?: string, exit?: number | false} = {}) {
return Errors.error(input, options as any)
}
Expand Down

0 comments on commit 1c7e03c

Please sign in to comment.