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.
1 parent 97463e9 commit 455939cCopy full SHA for 455939c
packages/client/lib/client/pub-sub.ts
@@ -26,7 +26,7 @@ const COMMANDS = {
26
27
export type PubSubListener<
28
RETURN_BUFFERS extends boolean = false
29
-> = <T extends RETURN_BUFFERS extends true ? Buffer : string>(message: T, channel: T) => unknown;
+> = <T = RETURN_BUFFERS extends true ? Buffer : string>(message: T, channel: T) => unknown;
30
31
export interface ChannelListeners {
32
unsubscribing: boolean;
0 commit comments