Skip to content

Commit

Permalink
Update events option type
Browse files Browse the repository at this point in the history
  • Loading branch information
Pessimistress committed Dec 8, 2024
1 parent 8bff72b commit 42e7fd6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,7 @@ export type MjolnirEvent =
| MjolnirWheelEvent
| MjolnirKeyEvent;

export type MjolnirEventHandler<EventT extends MjolnirEvent = MjolnirEvent> = (
event: EventT
) => void;
export type MjolnirEventHandler<EventT extends MjolnirEvent = any> = (event: EventT) => void;

export type MjolnirEventHandlers = {
[type: string]: MjolnirEventHandler;
Expand Down

0 comments on commit 42e7fd6

Please sign in to comment.