Skip to content

Commit f3cfc1d

Browse files
abdulrahman1sTheMaestro1s
and
TheMaestro1s
authored
types: Add undefined field for transforms (porsager#363)
* docs: fixes some examples * Convert cjs to es import * types: Add undefined field Co-authored-by: TheMaestro1s <unknown@example.com>
1 parent e35a8e5 commit f3cfc1d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

types/index.d.ts

+6
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ interface BaseOptions<T extends PostgresTypeList> {
7878
debug: boolean | ((connection: number, query: string, parameters: any[], paramTypes: any[]) => void);
7979
/** Transform hooks */
8080
transform: {
81+
/** Transforms outcoming undefined values */
82+
undefined?: any
83+
8184
/** Transforms incoming and outgoing column names */
8285
column?: ((column: string) => string) | {
8386
/** SQL to JS */
@@ -329,6 +332,9 @@ declare namespace postgres {
329332
}
330333

331334
interface Transform {
335+
/** Transforms outcoming undefined values */
336+
undefined: any
337+
332338
/** Transforms incoming column names */
333339
column: {
334340
from: ((column: string) => string) | undefined;

0 commit comments

Comments
 (0)