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 { 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 })
: ""), : ""),
"", "",
) )