Skip to content

Commit

Permalink
fix(esl-event-listener): improve compatibility of decorated event han…
Browse files Browse the repository at this point in the history
…dler type
  • Loading branch information
ala-n committed Dec 15, 2023
1 parent c4bbb0d commit de0c37e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/esl-event-listener/core/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export interface ESLListenerDefinition<EType extends keyof ESLListenerEventMap =
}

/** Describes callback handler */
export type ESLListenerHandler<EType extends Event = Event> = (event: EType) => void;
export type ESLListenerHandler<EType extends Event = Event> = ((event: EType) => void) | (() => void);

/** Condition (criteria) to find {@link ESLListenerDescriptor} */
export type ESLListenerCriteria =
Expand Down

0 comments on commit de0c37e

Please sign in to comment.