fix: typescript hates strings

This commit is contained in:
2026-03-31 11:53:59 +07:00 Unverified
parent 84958e1311
commit 06b21d0051
+3 -3
View File
@@ -1,8 +1,8 @@
import { feature } from "bun:bundle";
import { InspectColor, styleText } from "node:util";
import { inspect } from "bun";
import { styleText } from "node:util";
const colors = [
const colors: InspectColor[] = [
"red",
"green",
"yellow",
@@ -40,7 +40,7 @@ export function createLogger(label?: string) {
(typeof values[i] === "string"
? values[i]
: typeof values[i] !== "undefined"
? inspect(values[i])
? inspect(values[i], { colors: true })
: ""),
"",
)