cnf
2025-05-15 5f0b94e9c252e507b4c09badf923796151be0d03
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
/// <reference types="node" />
 
// See https://github.com/nodejs/undici/issues/1740
 
export type DOMException = typeof globalThis extends { DOMException: infer T }
 ? T
 : any
 
export interface EventInit {
  bubbles?: boolean
  cancelable?: boolean
  composed?: boolean
}
 
export interface EventListenerOptions {
  capture?: boolean
}
 
export interface AddEventListenerOptions extends EventListenerOptions {
  once?: boolean
  passive?: boolean
  signal?: AbortSignal
}
 
export type EventListenerOrEventListenerObject = EventListener | EventListenerObject
 
export interface EventListenerObject {
  handleEvent (object: Event): void
}
 
export interface EventListener {
  (evt: Event): void
}