From 8620143ff2e25b59c96b0d8ac6f9f6b435752fbe Mon Sep 17 00:00:00 2001 From: Stephen Cresswell <229672+cressie176@users.noreply.github.com> Date: Thu, 25 Jan 2024 22:14:05 +0000 Subject: [PATCH] Improved typescript definitions --- index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index 07d64b5..96830d3 100644 --- a/index.d.ts +++ b/index.d.ts @@ -7,8 +7,8 @@ export default class Filby { startNotifications(): Promise; stopNotifications(): Promise; subscribe(event: string, handler: (notification: T) => Promise); - unsubscribe(event: string, handler: (notification: T) => Promise); - unsubscribeAll(event?: string); + unsubscribe(event: string, handler?: (notification: T) => Promise); + unsubscribeAll(); stop(): Promise; withTransaction(callback: (client: PoolClient) => Promise): Promise; getProjections(): Promise;