diff options
author | Andreu Botella <abb@randomunok.com> | 2021-12-10 15:12:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-10 15:12:38 +0100 |
commit | 0f0dd5b7ec2a7ac95e1b36c866f73b85e4fb4879 (patch) | |
tree | f06c37de813d82a82c556b977f7e5119e827362f /ext/web/lib.deno_web.d.ts | |
parent | 292682772691402bb3c1e4fee554d85746147621 (diff) |
feat(ext/web): implement `AbortSignal.prototype.throwIfAborted()` (#13044)
See whatwg/dom#1034.
Diffstat (limited to 'ext/web/lib.deno_web.d.ts')
-rw-r--r-- | ext/web/lib.deno_web.d.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/web/lib.deno_web.d.ts b/ext/web/lib.deno_web.d.ts index 3cdc2bea6..0f10af7f2 100644 --- a/ext/web/lib.deno_web.d.ts +++ b/ext/web/lib.deno_web.d.ts @@ -293,6 +293,10 @@ interface AbortSignal extends EventTarget { listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions, ): void; + + /** Throws this AbortSignal's abort reason, if its AbortController has + * signaled to abort; otherwise, does nothing. */ + throwIfAborted(): void; } declare var AbortSignal: { |