From 3decba086808c5411c2838d1210d272ada3ae0ba Mon Sep 17 00:00:00 2001 From: Ovidijus Parsiunas Date: Sat, 29 Jun 2024 21:43:29 +0100 Subject: [PATCH] fixing html class events type error when defining existing global events --- component/src/types/html.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/component/src/types/html.ts b/component/src/types/html.ts index 2b2e0f6ce..039b423bf 100644 --- a/component/src/types/html.ts +++ b/component/src/types/html.ts @@ -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) => void; } & {[eventName: string]: (event: CustomEvent) => void}; export interface HTMLClassUtility {