-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathevent.d.ts
More file actions
34 lines (29 loc) · 989 Bytes
/
event.d.ts
File metadata and controls
34 lines (29 loc) · 989 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
export var Event: EventConstructor
/**
* The **`Event()`** constructor creates a new Event object.
*
* [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Event/Event)
*/
export interface EventConstructor {
new <T extends EventTarget = EventTarget, U extends EventTarget = T>(type: string, eventInitDict?: EventInit): Event<T, U>
prototype: globalThis.Event
readonly NONE: 0
readonly CAPTURING_PHASE: 1
readonly AT_TARGET: 2
readonly BUBBLING_PHASE: 3
}
/**
* The **`Event`** interface represents an event which takes place on an EventTarget.
*
* [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Event)
*/
export interface Event<T extends EventTarget = EventTarget, U extends EventTarget = T> extends globalThis.Event {
readonly currentTarget: T | null
readonly target: U | null
}
/** The object that specifies characteristics about the event. */
export interface EventInit {
bubbles?: boolean
cancelable?: boolean
composed?: boolean
}