Skip to content

Commit

Permalink
fixing html class events type error when defining existing global events
Browse files Browse the repository at this point in the history
  • Loading branch information
OvidijusParsiunas committed Jun 29, 2024
1 parent 673350c commit 3decba0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion component/src/types/html.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {StatefulStyles} from './styles';

export type EventToFunction = {
[K in keyof GlobalEventHandlersEventMap]?: (event: GlobalEventHandlersEventMap[K]) => void;
[K in keyof GlobalEventHandlersEventMap]?: (event: Partial<GlobalEventHandlersEventMap[K]>) => void;
} & {[eventName: string]: (event: CustomEvent) => void};

export interface HTMLClassUtility {
Expand Down

0 comments on commit 3decba0

Please sign in to comment.