File size: 450 Bytes
c2b7eb3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import * as events from './web'

type EventConstructor = typeof events.Event
type CustomEventConstructor = typeof events.CustomEvent
type EventTargetConstructor = typeof events.EventTarget

declare global {
  type Event = events.Event
  type CustomEvent<T = any> = events.CustomEvent<T>
  type EventTarget = events.EventTarget

  const Event: EventConstructor
  const CustomEvent: CustomEventConstructor
  const EventTarget: EventTargetConstructor
}