Hierarchy

Implemented by

Methods

  • Creates an event emitter instance to listen for the actions

    Returns

    Call the function to remove the event

    Parameters

    • eventName: "abort" | "error" | "load" | "loadend" | "loadstart" | "progress" | "readystatechange" | "timeout"
    • callback: EventListenerCallback

      Gets as any arguments as it needs

    Returns (() => void)

      • (): void
      • Creates an event emitter instance to listen for the actions

        Returns

        Call the function to remove the event

        Returns void

  • Creates an event emitter instance to listen for the actions

    Returns

    Call the function to remove the event

    Parameters

    • eventName: "abort" | "error" | "load" | "loadend" | "loadstart" | "progress" | "readystatechange" | "timeout"
    • callback: EventListenerCallback

      Gets as any arguments as it needs

    Returns (() => void)

      • (): void
      • Creates an event emitter instance to listen for the actions

        Returns

        Call the function to remove the event

        Returns void

  • Removes the specified event and invokes the callback after it is removed

    Parameters

    • eventName: "abort" | "error" | "load" | "loadend" | "loadstart" | "progress" | "readystatechange" | "timeout"
    • Optional callback: EventListenerCallback

    Returns void

  • Triggers the event manually.

    Parameters

    • event: "abort" | "error" | "load" | "loadend" | "loadstart" | "progress" | "readystatechange" | "timeout"
    • Rest ...args: any[]

      Arguments that needs to be passed down

    Returns void

  • Adds the listener function to the beginning of the listeners array for the event named eventName. No checks are made to see if the listener has already been added. Multiple calls passing the same combination of eventName and listener will result in the listener being added, and called, multiple times.

    Parameters

    • eventName: "abort" | "error" | "load" | "loadend" | "loadstart" | "progress" | "readystatechange" | "timeout"
    • callback: EventListenerCallback

    Returns void

  • Adds a one-time listener function for the event named eventName to the beginning of the listeners array. The next time eventName is triggered, this listener is removed, and then invoked.

    Parameters

    • eventName: "abort" | "error" | "load" | "loadend" | "loadstart" | "progress" | "readystatechange" | "timeout"
    • callback: EventListenerCallback

    Returns void

  • Parameters

    • eventName: string
    • handler: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns void

  • Parameters

    • eventName: string
    • toDetach: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns void

Properties

onabort: ((...args: any[]) => void)

Type declaration

onerror: ((...args: any[]) => void)

Type declaration

onload: ((...args: any[]) => void)

Type declaration

onloadend: ((...args: any[]) => void)

Type declaration

onloadstart: ((...args: any[]) => void)

Type declaration

onprogress: ((...args: any[]) => void)

Type declaration

onreadystatechange: ((...args: any[]) => void)

Type declaration

ontimeout: ((...args: any[]) => void)

Type declaration

readyState: number
response: null | string | object
responseText: string
responseURL?: string
status: number
statusText: string
timeout: number

Generated using TypeDoc