Skip to content

Commit 7feaad5

Browse files
author
Alex Lee
authored
Merge pull request #36 from MartinRosenberg/fix-ts-errors
Fix TS compile errors
2 parents 1705123 + d66db5e commit 7feaad5

File tree

3 files changed

+75
-27
lines changed

3 files changed

+75
-27
lines changed

package-lock.json

Lines changed: 70 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
},
5050
"dependencies": {
5151
"@sentry/node": "^5.15.5",
52-
"boxen": "^4.2.0",
52+
"boxen": "^5.0.1",
5353
"chalk": "^4.0.0",
5454
"clear": "^0.1.0",
5555
"commander": "^5.1.0",

src/template/ts/src/util.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import boxen, { Options as boxenOptions, BorderStyle } from "boxen";
1+
import boxen, { Options as boxenOptions } from "boxen";
22
import chalk from "chalk";
33
import clear from "clear";
44
import figlet from "figlet";
@@ -24,7 +24,7 @@ export const blankBoxenStyle: boxenOptions = {
2424
*/
2525
export const defaultBoxenStyle: boxenOptions = {
2626
borderColor: "magentaBright",
27-
borderStyle: BorderStyle.Round,
27+
borderStyle: "round",
2828
float: "center",
2929
padding: { top: 0, bottom: 0, right: 1, left: 1 },
3030
};
@@ -40,12 +40,12 @@ const figletPromise = (txt: string, options: any): Promise<string> =>
4040
figlet.text(
4141
txt,
4242
options,
43-
(error: Error | null, result: string | undefined) => {
43+
(error: Error | null, result?: string) => {
4444
if (error) {
4545
return reject(error);
4646
}
4747

48-
resolve(result);
48+
resolve(result ?? "");
4949
}
5050
)
5151
);

0 commit comments

Comments
 (0)