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;