We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c8135f commit 8f329a3Copy full SHA for 8f329a3
2 files changed
src/types.js
@@ -225,6 +225,7 @@ export const inferType = function inferType(x) {
225
(x === true || x === false) ? 16 :
226
typeof x === 'bigint' ? 20 :
227
Array.isArray(x) ? inferType(x[0]) :
228
+ typeof x === 'object' && x !== null ? 3802 :
229
0
230
)
231
}
types/index.d.ts
@@ -518,7 +518,7 @@ declare namespace postgres {
518
size(): Promise<[{ position: bigint, size: bigint }]>;
519
520
521
- type EscapableArray = (string | number)[]
+ type EscapableArray = (string | number | object)[]
522
523
type Serializable = never
524
| null
0 commit comments