-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomposed-event.d.ts
More file actions
29 lines (24 loc) · 1.04 KB
/
composed-event.d.ts
File metadata and controls
29 lines (24 loc) · 1.04 KB
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
import type { Event, EventConstructor } from "./event.d.ts"
export var ComposedEvent: ComposedEventConstructor
/**
* The **`ComposedEvent()`** constructor creates a new Event object that propagates across the shadow DOM boundary.
*
* [GitHub Reference](https://github.com/jsxtools/typed-event-utils#composedeventctu)
*/
export interface ComposedEventConstructor extends EventConstructor {
new <C extends Node = Node, T extends Node = C, U extends Node = T>(type: string, eventInitDict?: ComposedEventInit): ComposedEvent<C, T, U>
prototype: ComposedEvent
}
/**
* The **`ComposedEvent`** interface represents a composed event which takes place on an EventTarget.
*
* [GitHub Reference](https://github.com/jsxtools/typed-event-utils#composedeventctu)
*/
export interface ComposedEvent<C extends Node = Node, T extends Node = C, U extends Node = T> extends Event<T, U> {
readonly composedTarget: C | null
}
/** The object that specifies characteristics about the event. */
export interface ComposedEventInit {
bubbles?: boolean
cancelable?: boolean
}