Skip to content

Commit 2218b6e

Browse files
committed
Fix type
1 parent 30c5d79 commit 2218b6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ const args = minimist(argv.slice(2), {
147147
});
148148

149149
const [magenta, red, green] = (["magenta", "red", "green"] as const)
150-
.map(color => args["no-color"] ? String : (text: string) => styleText(color, text));
150+
.map(color => args["no-color"] ? String : (text: string | number) => styleText(color, String(text)));
151151

152152
type PackageArg = Set<RegExp> | boolean;
153153

0 commit comments

Comments
 (0)