From 5404fbd6bcd145e604bc309b2e1a7cb49ceaed25 Mon Sep 17 00:00:00 2001 From: "louis.tian" Date: Thu, 25 Jan 2024 09:25:10 +1100 Subject: [PATCH] update type definition --- types/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/index.d.ts b/types/index.d.ts index 78d559ef..4e7b5653 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -690,7 +690,7 @@ declare namespace postgres { listen(channel: string, onnotify: (value: string) => void, onlisten?: (() => void) | undefined): ListenRequest; notify(channel: string, payload: string): PendingRequest; - subscribe(event: string, cb: (row: Row | null, info: ReplicationEvent) => void, onsubscribe?: (() => void) | undefined): Promise; + subscribe(event: string, cb: (row: Row | null, info: ReplicationEvent) => void, onsubscribe?: (() => void), onerror?: (() => any)): Promise; largeObject(oid?: number | undefined, /** @default 0x00020000 | 0x00040000 */ mode?: number | undefined): Promise;