Flow-typed: Add AbortController and AbortSignal

Created on 15 Dec 2017  路  3Comments  路  Source: flow-typed/flow-typed

Documentation is visible here: https://developer.mozilla.org/en-US/docs/Web/API/AbortController/AbortController

I'd like to add it, but not too sure in which files

incomplete libdef

Most helpful comment

// translation of https://dom.spec.whatwg.org/#abortcontroller
declare interface AbortSignal extends EventTarget {
  +aborted: boolean;
  onabort: EventHandler;
}
declare class AbortController {
  +signal: AbortSignal;
  abort: () => void;
}

All 3 comments

Bump. Is there any update on this?

You can add it under the browser folder, which is for "libraries" that aren't in NPM.

// translation of https://dom.spec.whatwg.org/#abortcontroller
declare interface AbortSignal extends EventTarget {
  +aborted: boolean;
  onabort: EventHandler;
}
declare class AbortController {
  +signal: AbortSignal;
  abort: () => void;
}
Was this page helpful?
0 / 5 - 0 ratings

Related issues

oriSomething picture oriSomething  路  4Comments

DullReferenceException picture DullReferenceException  路  4Comments

callumlocke picture callumlocke  路  4Comments

Inzephirum picture Inzephirum  路  3Comments

gabelevi picture gabelevi  路  3Comments