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

Commit eef7598

Browse files
committed
fix: return type of error function
1 parent 460ddfa commit eef7598

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@
1818
"@types/fs-extra": "^5.0.2",
1919
"@types/indent-string": "^3.0.0",
2020
"@types/mocha": "^5.2.0",
21-
"@types/node": "^10.0.2",
21+
"@types/node": "^10.0.4",
2222
"@types/strip-ansi": "^3.0.0",
2323
"@types/wrap-ansi": "^3.0.0",
2424
"chai": "^4.1.2",
2525
"chalk": "^2.4.1",
2626
"concurrently": "^3.5.1",
2727
"fancy-test": "^1.0.6",
2828
"mocha": "^5.1.1",
29-
"ts-node": "^6.0.2",
30-
"tslint": "^5.9.1",
29+
"ts-node": "^6.0.3",
30+
"tslint": "^5.10.0",
3131
"typescript": "^2.8.3"
3232
},
3333
"engines": {

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export function exit(code = 0) {
1414
throw new ExitError(code)
1515
}
1616

17-
export function error(err: string | Error, options: {code?: string, exit?: number} = {}) {
17+
export function error(err: string | Error, options: {code?: string, exit?: number} = {}): never {
1818
throw new CLIError(err, options)
1919
}
2020

yarn.lock

+9-9
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@
3434
version "9.4.5"
3535
resolved "https://registry.yarnpkg.com/@types/node/-/node-9.4.5.tgz#d2a90c634208173d1b1a0a6ba9f1df3de62edcf5"
3636

37-
"@types/node@^10.0.2":
38-
version "10.0.2"
39-
resolved "https://registry.yarnpkg.com/@types/node/-/node-10.0.2.tgz#180046ebbc37de8b64777765c2486ebecb59448e"
37+
"@types/node@^10.0.4":
38+
version "10.0.4"
39+
resolved "https://registry.yarnpkg.com/@types/node/-/node-10.0.4.tgz#130598ee56e9a1210a53f557d64935571f05390d"
4040

4141
"@types/strip-ansi@^3.0.0":
4242
version "3.0.0"
@@ -540,9 +540,9 @@ tree-kill@^1.1.0:
540540
version "1.2.0"
541541
resolved "https://registry.yarnpkg.com/tree-kill/-/tree-kill-1.2.0.tgz#5846786237b4239014f05db156b643212d4c6f36"
542542

543-
ts-node@^6.0.2:
544-
version "6.0.2"
545-
resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-6.0.2.tgz#e132d530e53173bc6a8c21ea65f64d8b47bc573e"
543+
ts-node@^6.0.3:
544+
version "6.0.3"
545+
resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-6.0.3.tgz#28bf74bcad134fad17f7469dad04638ece03f0f4"
546546
dependencies:
547547
arrify "^1.0.0"
548548
chalk "^2.3.0"
@@ -586,9 +586,9 @@ tslint-xo@^0.7.0:
586586
tslint-eslint-rules "^5.1.0"
587587
tslint-microsoft-contrib "^5.0.2"
588588

589-
tslint@^5.9.1:
590-
version "5.9.1"
591-
resolved "https://registry.yarnpkg.com/tslint/-/tslint-5.9.1.tgz#1255f87a3ff57eb0b0e1f0e610a8b4748046c9ae"
589+
tslint@^5.10.0:
590+
version "5.10.0"
591+
resolved "https://registry.yarnpkg.com/tslint/-/tslint-5.10.0.tgz#11e26bccb88afa02dd0d9956cae3d4540b5f54c3"
592592
dependencies:
593593
babel-code-frame "^6.22.0"
594594
builtin-modules "^1.1.1"

0 commit comments

Comments
 (0)