AbortSignalLike interface

Umożliwia przerwanie żądania po wyzwoleniu zdarzenia "przerwania". Zgodność z wbudowanym elementem AbortSignal i typowymi polifillami w przeglądarce.

Szczegóły właściwości

aborted

aborted: boolean

Wartość właściwości

boolean

addEventListener

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

Wartość właściwości

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

dispatchEvent

dispatchEvent: (event: Event) => boolean

Wartość właściwości

(event: Event) => boolean

onabort

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

Wartość właściwości

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

removeEventListener

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

Wartość właściwości

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