Skip to content

Commit

Permalink
fix duplicate type (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelangeloio authored Sep 5, 2023
1 parent 98835e8 commit 0756d01
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/writer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,6 @@ export interface Message<T = string | Record<string, unknown>> {
retry?: number
}

export interface Message<T = string | Record<string, unknown>> {
data: T
comment?: string
event?: string
id?: string
retry?: number
}
export type EventOptions<T = string | Record<string, unknown>> = {
beforeFn?: CustomFn<T>
afterFn?: CustomFn<T>
Expand All @@ -28,7 +21,7 @@ export interface EventNotifier<
: never
error: T['error'] extends Message ? Message<T['error']>['data'] : never
close: T['close'] extends Message ? Message<T['close']>['data'] : never
} = any,
} = any
> {
update: (
message: Message<T['update']>['data'],
Expand Down

0 comments on commit 0756d01

Please sign in to comment.