From 43d465124ea76e96c715e008aaef8e9bb98b3f09 Mon Sep 17 00:00:00 2001 From: George Cht <2hardforutoo@hotmail.gr> Date: Thu, 24 Oct 2024 10:22:21 +0300 Subject: [PATCH] feat(core): updated element type to also accept `typeof globalThis` --- src/core.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.ts b/src/core.ts index c95f8f7..bde2843 100644 --- a/src/core.ts +++ b/src/core.ts @@ -55,7 +55,7 @@ export interface EventControllerOptions { * Supports adding, emitting, and removing the event listener, as well as middleware for event processing. */ export class EventController { - private element: HTMLElement | Window + private element: HTMLElement | Window | typeof globalThis private pipeline: Pipeline> private condition?: (payload: EventPayload) => boolean