Skip to main content
AbortSignal.addEventListener - Platform - Web documentation
method AbortSignal.addEventListener
Private
AbortSignal.addEventListener<K extends keyof AbortSignalEventMap>(
type: K,
listener: () => any,
options?: boolean | AddEventListenerOptions,
): void

Type Parameters

K extends keyof AbortSignalEventMap

Parameters

type: K
listener: () => any
optional
options: boolean | AddEventListenerOptions

Return Type

void
AbortSignal.addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void

Parameters

type: string
optional
options: boolean | AddEventListenerOptions

Return Type

void