We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9db3431 commit 2d94599Copy full SHA for 2d94599
src/createDomEvent.ts
@@ -148,8 +148,7 @@ function createEvent(eventParams: EventParams) {
148
const { eventProperties, meta, eventType } = getEventProperties(eventParams)
149
150
// user defined eventInterface
151
- // @ts-expect-error
152
- const metaEventInterface: Event = window[meta.eventInterface]
+ const metaEventInterface: Event = window[meta.eventInterface as keyof Window]
153
154
const SupportedEventInterface =
155
typeof metaEventInterface === 'function' ? metaEventInterface : window.Event
0 commit comments