Skip to content

Commit 21e7af7

Browse files
authored
Merge pull request #623 from FrogTheFrog/master
Change AbortSignal's event type to Event
2 parents af6833f + 8702774 commit 21e7af7

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

baselines/dom.generated.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1634,7 +1634,7 @@ declare var AbortController: {
16341634
};
16351635

16361636
interface AbortSignalEventMap {
1637-
"abort": ProgressEvent;
1637+
"abort": Event;
16381638
}
16391639

16401640
interface AbortSignal extends EventTarget {
@@ -1643,7 +1643,7 @@ interface AbortSignal extends EventTarget {
16431643
* otherwise.
16441644
*/
16451645
readonly aborted: boolean;
1646-
onabort: ((this: AbortSignal, ev: ProgressEvent) => any) | null;
1646+
onabort: ((this: AbortSignal, ev: Event) => any) | null;
16471647
addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
16481648
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
16491649
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
@@ -480,7 +480,7 @@ declare var AbortController: {
480480
};
481481

482482
interface AbortSignalEventMap {
483-
"abort": ProgressEvent;
483+
"abort": Event;
484484
}
485485

486486
interface AbortSignal extends EventTarget {
@@ -489,7 +489,7 @@ interface AbortSignal extends EventTarget {
489489
* otherwise.
490490
*/
491491
readonly aborted: boolean;
492-
onabort: ((this: AbortSignal, ev: ProgressEvent) => any) | null;
492+
onabort: ((this: AbortSignal, ev: Event) => any) | null;
493493
addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
494494
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
495495
removeEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;

inputfiles/addedTypes.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@
198198
"event": [
199199
{
200200
"name": "abort",
201-
"type": "ProgressEvent"
201+
"type": "Event"
202202
}
203203
]
204204
}

0 commit comments

Comments
 (0)