AbortSignalLike interface

Allows the request to be aborted upon firing of the "abort" event. Compatible with the browser built-in AbortSignal and common polyfills.

Properties

aborted
addEventListener
dispatchEvent
onabort
removeEventListener

Property Details

aborted

aborted: boolean

Property Value

boolean

addEventListener

addEventListener: (type: "abort", listener: (this: AbortSignalLike, ev: Event) => any, options?: any) => void

Property Value

(type: "abort", listener: (this: AbortSignalLike, ev: Event) => any, options?: any) => void

dispatchEvent

dispatchEvent: (event: Event) => boolean

Property Value

(event: Event) => boolean

onabort

onabort: null | (this: AbortSignalLike, ev: Event) => any

Property Value

null | (this: AbortSignalLike, ev: Event) => any

removeEventListener

removeEventListener: (type: "abort", listener: (this: AbortSignalLike, ev: Event) => any, options?: any) => void

Property Value

(type: "abort", listener: (this: AbortSignalLike, ev: Event) => any, options?: any) => void