Interface for aborting fetch requests.

Hierarchy

  • AbortSignal

Properties

aborted: boolean
addEventListener: ((type: "abort", listener: ((this: AbortSignal, event: any) => any), options?: boolean | {
    capture?: boolean;
    once?: boolean;
    passive?: boolean;
}) => void)

Type declaration

    • (type: "abort", listener: ((this: AbortSignal, event: any) => any), options?: boolean | {
          capture?: boolean;
          once?: boolean;
          passive?: boolean;
      }): void
    • Parameters

      • type: "abort"
      • listener: ((this: AbortSignal, event: any) => any)
      • Optional options: boolean | {
            capture?: boolean;
            once?: boolean;
            passive?: boolean;
        }

      Returns void

dispatchEvent: ((event: any) => boolean)

Type declaration

    • (event: any): boolean
    • Parameters

      • event: any

      Returns boolean

onabort: null | ((this: AbortSignal, event: any) => void)
reason: any
removeEventListener: ((type: "abort", listener: ((this: AbortSignal, event: any) => any), options?: boolean | {
    capture?: boolean;
}) => void)

Type declaration

    • (type: "abort", listener: ((this: AbortSignal, event: any) => any), options?: boolean | {
          capture?: boolean;
      }): void
    • Parameters

      • type: "abort"
      • listener: ((this: AbortSignal, event: any) => any)
      • Optional options: boolean | {
            capture?: boolean;
        }

      Returns void

Methods

Generated using TypeDoc