We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
onlisten
listen()
1 parent 1e6d312 commit 6b749b2Copy full SHA for 6b749b2
types/index.d.ts
@@ -608,7 +608,7 @@ declare namespace postgres {
608
unsafe<T extends any[] = (Row & Iterable<Row>)[]>(query: string, parameters?: SerializableParameter[], queryOptions?: UnsafeQueryOptions): PendingQuery<AsRowList<T>>;
609
end(options?: { timeout?: number }): Promise<void>;
610
611
- listen(channel: string, cb: (value: string) => void): ListenRequest;
+ listen(channel: string, onnotify: (value: string) => void, onlisten?: () => void): ListenRequest;
612
notify(channel: string, payload: string): PendingRequest;
613
614
subscribe(event: string, cb: (row: Row | null, info: ReplicationEvent) => void): Promise<SubscriptionHandle>;
0 commit comments