AbortSignalLike interface

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

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: (this: AbortSignalLike, ev: Event) => any | null

Property Value

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

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