Skip to content

Commit

Permalink
TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
BBB committed Nov 1, 2023
1 parent c44f46a commit b088928
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/http-client/src/HttpAbortSignal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,26 +41,30 @@ export class HttpAbortSignal implements Readonly<AbortSignal> {
return true;
}

// @ts-ignore TODO
set onabort(
listener: (
this: AbortSignal,
listener: EventListenerOrEventListenerObject,
) => any,
) {
// @ts-ignore TODO
this.addEventListener("abort", listener);
}
addEventListener(
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions | undefined,
): void {
// @ts-ignore TODO
this.#eventEmitter.addListener(type, listener, options);
}
removeEventListener(
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | EventListenerOptions | undefined,
): void {
// @ts-ignore TODO
this.#eventEmitter.removeListener(type, listener);
}
}

0 comments on commit b088928

Please sign in to comment.