Skip to content

Commit

Permalink
feat: change param order of EventHandler.make
Browse files Browse the repository at this point in the history
  • Loading branch information
TylorS committed Feb 29, 2024
1 parent 1b02026 commit 5d29269
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/quiet-bulldogs-stare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@typed/template": patch
---

change param order of EventHandler.make
2 changes: 1 addition & 1 deletion packages/template/src/EventHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export type EventOf<T> = T extends EventHandler<infer Ev, infer _E, infer _R> ?
/**
* @since 1.0.0
*/
export function make<R, E, Ev extends Event>(
export function make<Ev extends Event, E = never, R = never>(
handler: (event: Ev) => Effect<unknown, E, R>,
options?: AddEventListenerOptions
): EventHandler<Ev, E, R> {
Expand Down

0 comments on commit 5d29269

Please sign in to comment.