Skip to content

Commit

Permalink
fix(useEventSource)!: return type should be UseEventSourceReturn (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
okxiaoliang4 committed Jul 12, 2022
1 parent 86df7a3 commit a5192c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/useEventSource/index.ts
Expand Up @@ -73,4 +73,4 @@ export function useEventSource(url: string, events: Array<string> = [], options:
}
}

export type UseEventListenerReturn = ReturnType<typeof useEventListener>
export type UseEventSourceReturn = ReturnType<typeof useEventSource>

0 comments on commit a5192c4

Please sign in to comment.