Skip to content

Commit 561ab1d

Browse files
committed
update deno file
1 parent 9867ff0 commit 561ab1d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

deno/types/index.d.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ interface BaseOptions<T extends PostgresTypeList> {
8080
debug: boolean | ((connection: number, query: string, parameters: any[], paramTypes: any[]) => void);
8181
/** Transform hooks */
8282
transform: {
83+
/** Transforms outcoming undefined values */
84+
undefined?: any
85+
8386
/** Transforms incoming and outgoing column names */
8487
column?: ((column: string) => string) | {
8588
/** SQL to JS */
@@ -331,6 +334,9 @@ declare namespace postgres {
331334
}
332335

333336
interface Transform {
337+
/** Transforms outcoming undefined values */
338+
undefined: any
339+
334340
/** Transforms incoming column names */
335341
column: {
336342
from: ((column: string) => string) | undefined;
@@ -613,7 +619,7 @@ declare namespace postgres {
613619
listen(channel: string, onnotify: (value: string) => void, onlisten?: () => void): ListenRequest;
614620
notify(channel: string, payload: string): PendingRequest;
615621

616-
subscribe(event: string, cb: (row: Row | null, info: ReplicationEvent) => void): Promise<SubscriptionHandle>;
622+
subscribe(event: string, cb: (row: Row | null, info: ReplicationEvent) => void, onsubscribe?: () => void): Promise<SubscriptionHandle>;
617623

618624
largeObject(oid?: number, /** @default 0x00020000 | 0x00040000 */ mode?: number): Promise<LargeObject>;
619625

0 commit comments

Comments
 (0)