Skip to content

Commit

Permalink
Add specificity to fix a type error with addEventListener
Browse files Browse the repository at this point in the history
  • Loading branch information
jhsware committed Jan 18, 2024
1 parent ca227a5 commit 5d3246c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/inferno/src/DOM/utils/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ if (process.env.NODE_ENV !== 'production') {
Object.freeze(EMPTY_OBJ);
}

export function normalizeEventName(name): string {
export function normalizeEventName(name): keyof DocumentEventMap {
return name.substring(2).toLowerCase();
}

Expand Down

0 comments on commit 5d3246c

Please sign in to comment.