From 0756d018c9168f210dc84a7a3496863fb508cb2f Mon Sep 17 00:00:00 2001 From: Michael Angelo Rivera <55844504+michaelangeloio@users.noreply.github.com> Date: Tue, 5 Sep 2023 14:50:17 -0700 Subject: [PATCH] fix duplicate type (#18) --- src/writer.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/writer.ts b/src/writer.ts index 4b5d990..a82897f 100644 --- a/src/writer.ts +++ b/src/writer.ts @@ -8,13 +8,6 @@ export interface Message> { retry?: number } -export interface Message> { - data: T - comment?: string - event?: string - id?: string - retry?: number -} export type EventOptions> = { beforeFn?: CustomFn afterFn?: CustomFn @@ -28,7 +21,7 @@ export interface EventNotifier< : never error: T['error'] extends Message ? Message['data'] : never close: T['close'] extends Message ? Message['data'] : never - } = any, + } = any > { update: ( message: Message['data'],