Skip to content

Commit 2d94599

Browse files
committed
fix: updated to use correct type cast
1 parent 9db3431 commit 2d94599

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/createDomEvent.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,7 @@ function createEvent(eventParams: EventParams) {
148148
const { eventProperties, meta, eventType } = getEventProperties(eventParams)
149149

150150
// user defined eventInterface
151-
// @ts-expect-error
152-
const metaEventInterface: Event = window[meta.eventInterface]
151+
const metaEventInterface: Event = window[meta.eventInterface as keyof Window]
153152

154153
const SupportedEventInterface =
155154
typeof metaEventInterface === 'function' ? metaEventInterface : window.Event

0 commit comments

Comments
 (0)