diff --git a/cf/src/types.js b/cf/src/types.js index aa2ead29..fcfb6b9e 100644 --- a/cf/src/types.js +++ b/cf/src/types.js @@ -226,6 +226,7 @@ export const inferType = function inferType(x) { (x === true || x === false) ? 16 : typeof x === 'bigint' ? 20 : Array.isArray(x) ? inferType(x[0]) : + typeof x === 'object' && x !== null ? 3802 : 0 ) } diff --git a/cjs/src/types.js b/cjs/src/types.js index 0578284c..43c555d1 100644 --- a/cjs/src/types.js +++ b/cjs/src/types.js @@ -225,6 +225,7 @@ const inferType = module.exports.inferType = function inferType(x) { (x === true || x === false) ? 16 : typeof x === 'bigint' ? 20 : Array.isArray(x) ? inferType(x[0]) : + typeof x === 'object' && x !== null ? 3802 : 0 ) } diff --git a/deno/src/types.js b/deno/src/types.js index ea0da6a2..e0706cb6 100644 --- a/deno/src/types.js +++ b/deno/src/types.js @@ -226,6 +226,7 @@ export const inferType = function inferType(x) { (x === true || x === false) ? 16 : typeof x === 'bigint' ? 20 : Array.isArray(x) ? inferType(x[0]) : + typeof x === 'object' && x !== null ? 3802 : 0 ) } diff --git a/deno/types/index.d.ts b/deno/types/index.d.ts index c141cfd9..efdf9c86 100644 --- a/deno/types/index.d.ts +++ b/deno/types/index.d.ts @@ -520,7 +520,7 @@ declare namespace postgres { size(): Promise<[{ position: bigint, size: bigint }]>; } - type EscapableArray = (string | number)[] + type EscapableArray = (string | number | Record)[] type Serializable = never | null diff --git a/src/types.js b/src/types.js index 7c7c2b93..aed82610 100644 --- a/src/types.js +++ b/src/types.js @@ -225,6 +225,7 @@ export const inferType = function inferType(x) { (x === true || x === false) ? 16 : typeof x === 'bigint' ? 20 : Array.isArray(x) ? inferType(x[0]) : + typeof x === 'object' && x !== null ? 3802 : 0 ) } diff --git a/types/index.d.ts b/types/index.d.ts index 4b796799..4a0b15f4 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -518,7 +518,7 @@ declare namespace postgres { size(): Promise<[{ position: bigint, size: bigint }]>; } - type EscapableArray = (string | number)[] + type EscapableArray = (string | number | Record)[] type Serializable = never | null