fix: typescript hates strings
This commit is contained in:
+3
-3
@@ -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 })
|
||||
: ""),
|
||||
"",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user