UNPKG

517 BTypeScriptView Raw
1import AbortSignal from './abortsignal';
2/**
3 * The AbortController.
4 * @see https://dom.spec.whatwg.org/#abortcontroller
5 */
6export default class AbortController {
7 /**
8 * Initialize this controller.
9 */
10 constructor();
11 /**
12 * Returns the `AbortSignal` object associated with this object.
13 */
14 get signal(): AbortSignal;
15 /**
16 * Abort and signal to any observers that the associated activity is to be aborted.
17 */
18 abort(): void;
19}
20export { AbortController, AbortSignal };