fix: typescript hates strings
This commit is contained in:
+3
-3
@@ -1,8 +1,8 @@
|
|||||||
import { feature } from "bun:bundle";
|
import { feature } from "bun:bundle";
|
||||||
|
import { InspectColor, styleText } from "node:util";
|
||||||
import { inspect } from "bun";
|
import { inspect } from "bun";
|
||||||
import { styleText } from "node:util";
|
|
||||||
|
|
||||||
const colors = [
|
const colors: InspectColor[] = [
|
||||||
"red",
|
"red",
|
||||||
"green",
|
"green",
|
||||||
"yellow",
|
"yellow",
|
||||||
@@ -40,7 +40,7 @@ export function createLogger(label?: string) {
|
|||||||
(typeof values[i] === "string"
|
(typeof values[i] === "string"
|
||||||
? values[i]
|
? values[i]
|
||||||
: typeof values[i] !== "undefined"
|
: typeof values[i] !== "undefined"
|
||||||
? inspect(values[i])
|
? inspect(values[i], { colors: true })
|
||||||
: ""),
|
: ""),
|
||||||
"",
|
"",
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user