Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cf/src/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
}
Expand Down
1 change: 1 addition & 0 deletions cjs/src/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
}
Expand Down
1 change: 1 addition & 0 deletions deno/src/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
}
Expand Down
2 changes: 1 addition & 1 deletion deno/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ declare namespace postgres {
size(): Promise<[{ position: bigint, size: bigint }]>;
}

type EscapableArray = (string | number)[]
type EscapableArray = (string | number | Record<string, unknown>)[]

type Serializable = never
| null
Expand Down
1 change: 1 addition & 0 deletions src/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
}
Expand Down
2 changes: 1 addition & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ declare namespace postgres {
size(): Promise<[{ position: bigint, size: bigint }]>;
}

type EscapableArray = (string | number)[]
type EscapableArray = (string | number | Record<string, unknown>)[]

type Serializable = never
| null
Expand Down