Skip to content

Commit 584a6fa

Browse files
committed
add abort event
1 parent cd16309 commit 584a6fa

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

baselines/dom.generated.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1592,7 +1592,7 @@ declare var AbortController: {
15921592
};
15931593

15941594
interface AbortSignalEventMap {
1595-
"abort": UIEvent;
1595+
"abort": ProgressEvent;
15961596
}
15971597

15981598
interface AbortSignal extends EventTarget {
@@ -1601,7 +1601,7 @@ interface AbortSignal extends EventTarget {
16011601
* otherwise.
16021602
*/
16031603
readonly aborted: boolean;
1604-
onabort: ((this: AbortSignal, ev: UIEvent) => any) | null;
1604+
onabort: ((this: AbortSignal, ev: ProgressEvent) => any) | null;
16051605
addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
16061606
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
16071607
removeEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;

baselines/webworker.generated.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ declare var AbortController: {
297297
};
298298

299299
interface AbortSignalEventMap {
300-
"abort": UIEvent;
300+
"abort": ProgressEvent;
301301
}
302302

303303
interface AbortSignal extends EventTarget {
@@ -306,7 +306,7 @@ interface AbortSignal extends EventTarget {
306306
* otherwise.
307307
*/
308308
readonly aborted: boolean;
309-
onabort: ((this: AbortSignal, ev: UIEvent) => any) | null;
309+
onabort: ((this: AbortSignal, ev: ProgressEvent) => any) | null;
310310
addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
311311
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
312312
removeEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;

inputfiles/addedTypes.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,16 @@
183183
},
184184
"interfaces": {
185185
"interface": {
186+
"AbortSignal": {
187+
"events": {
188+
"event": [
189+
{
190+
"name": "abort",
191+
"type": "ProgressEvent"
192+
}
193+
]
194+
}
195+
},
186196
"ApplicationCache": {
187197
"events": {
188198
"event": [

0 commit comments

Comments
 (0)