We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b699202 commit d1fb92eCopy full SHA for d1fb92e
2 files changed
src/index.ts
@@ -1,6 +1,12 @@
1
-import { inspect } from "util";
2
-
3
-export type Value = string | number | boolean | object | null | undefined;
+const customInspect = Symbol.for("nodejs.util.inspect.custom");
+
+export type Value =
4
+ | string
5
+ | number
6
+ | boolean
7
+ | Record<string, unknown>
8
+ | null
9
+ | undefined;
10
export type RawValue = Value | Sql;
11
12
/**
@@ -77,7 +83,7 @@ export class Sql {
77
83
return this.strings.join("?");
78
84
}
79
85
80
- [inspect.custom]() {
86
+ [customInspect]() {
81
87
return {
82
88
text: this.text,
89
sql: this.sql,
tsconfig.build.json
@@ -1,7 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
- "types": ["node"]
+ "types": []
},
"exclude": ["src/**/*.spec.ts"]
0 commit comments