Event: {
    prototype: {
        bubbles: boolean;
        cancelBubble: (() => void);
        cancelable: boolean;
        composed: boolean;
        currentTarget: null | EventTarget;
        defaultPrevented: boolean;
        eventPhase: 0 | 2;
        isTrusted: boolean;
        returnValue: boolean;
        srcElement: null | EventTarget;
        target: null | EventTarget;
        timeStamp: number;
        type: string;
        composedPath: any;
        preventDefault: any;
        stopImmediatePropagation: any;
        stopPropagation: any;
    };
    new (type: string, eventInitDict?: EventInit): {
        bubbles: boolean;
        cancelBubble: (() => void);
        cancelable: boolean;
        composed: boolean;
        currentTarget: null | EventTarget;
        defaultPrevented: boolean;
        eventPhase: 0 | 2;
        isTrusted: boolean;
        returnValue: boolean;
        srcElement: null | EventTarget;
        target: null | EventTarget;
        timeStamp: number;
        type: string;
        composedPath: any;
        preventDefault: any;
        stopImmediatePropagation: any;
        stopPropagation: any;
    };
}

Type declaration

    • new (type: string, eventInitDict?: EventInit): {
          bubbles: boolean;
          cancelBubble: (() => void);
          cancelable: boolean;
          composed: boolean;
          currentTarget: null | EventTarget;
          defaultPrevented: boolean;
          eventPhase: 0 | 2;
          isTrusted: boolean;
          returnValue: boolean;
          srcElement: null | EventTarget;
          target: null | EventTarget;
          timeStamp: number;
          type: string;
          composedPath: any;
          preventDefault: any;
          stopImmediatePropagation: any;
          stopPropagation: any;
      }
    • Parameters

      • type: string
      • Optional eventInitDict: EventInit

      Returns {
          bubbles: boolean;
          cancelBubble: (() => void);
          cancelable: boolean;
          composed: boolean;
          currentTarget: null | EventTarget;
          defaultPrevented: boolean;
          eventPhase: 0 | 2;
          isTrusted: boolean;
          returnValue: boolean;
          srcElement: null | EventTarget;
          target: null | EventTarget;
          timeStamp: number;
          type: string;
          composedPath: any;
          preventDefault: any;
          stopImmediatePropagation: any;
          stopPropagation: any;
      }

      • Readonly bubbles: boolean

        This is not used in Node.js and is provided purely for completeness.

      • cancelBubble: (() => void)
          • (): void
          • Alias for event.stopPropagation(). This is not used in Node.js and is provided purely for completeness.

            Returns void

      • Readonly cancelable: boolean

        True if the event was created with the cancelable option

      • Readonly composed: boolean

        This is not used in Node.js and is provided purely for completeness.

      • Readonly currentTarget: null | EventTarget

        Alias for event.target.

      • Readonly defaultPrevented: boolean

        Is true if cancelable is true and event.preventDefault() has been called.

      • Readonly eventPhase: 0 | 2

        This is not used in Node.js and is provided purely for completeness.

      • Readonly isTrusted: boolean

        The AbortSignal "abort" event is emitted with isTrusted set to true. The value is false in all other cases.

      • returnValue: boolean

        This is not used in Node.js and is provided purely for completeness.

      • Readonly srcElement: null | EventTarget

        Alias for event.target.

      • Readonly target: null | EventTarget

        The EventTarget dispatching the event

      • Readonly timeStamp: number

        The millisecond timestamp when the Event object was created.

      • Readonly type: string

        Returns the type of event, e.g. "click", "hashchange", or "submit".

      • composedPath:function
        • Returns an array containing the current EventTarget as the only entry or empty if the event is not being dispatched. This is not used in Node.js and is provided purely for completeness.

          Returns [EventTarget?]

      • preventDefault:function
        • Sets the defaultPrevented property to true if cancelable is true.

          Returns void

      • stopImmediatePropagation:function
        • Stops the invocation of event listeners after the current one completes.

          Returns void

      • stopPropagation:function
        • This is not used in Node.js and is provided purely for completeness.

          Returns void

  • prototype: {
        bubbles: boolean;
        cancelBubble: (() => void);
        cancelable: boolean;
        composed: boolean;
        currentTarget: null | EventTarget;
        defaultPrevented: boolean;
        eventPhase: 0 | 2;
        isTrusted: boolean;
        returnValue: boolean;
        srcElement: null | EventTarget;
        target: null | EventTarget;
        timeStamp: number;
        type: string;
        composedPath: any;
        preventDefault: any;
        stopImmediatePropagation: any;
        stopPropagation: any;
    }
    • Readonly bubbles: boolean

      This is not used in Node.js and is provided purely for completeness.

    • cancelBubble: (() => void)
        • (): void
        • Alias for event.stopPropagation(). This is not used in Node.js and is provided purely for completeness.

          Returns void

    • Readonly cancelable: boolean

      True if the event was created with the cancelable option

    • Readonly composed: boolean

      This is not used in Node.js and is provided purely for completeness.

    • Readonly currentTarget: null | EventTarget

      Alias for event.target.

    • Readonly defaultPrevented: boolean

      Is true if cancelable is true and event.preventDefault() has been called.

    • Readonly eventPhase: 0 | 2

      This is not used in Node.js and is provided purely for completeness.

    • Readonly isTrusted: boolean

      The AbortSignal "abort" event is emitted with isTrusted set to true. The value is false in all other cases.

    • returnValue: boolean

      This is not used in Node.js and is provided purely for completeness.

    • Readonly srcElement: null | EventTarget

      Alias for event.target.

    • Readonly target: null | EventTarget

      The EventTarget dispatching the event

    • Readonly timeStamp: number

      The millisecond timestamp when the Event object was created.

    • Readonly type: string

      Returns the type of event, e.g. "click", "hashchange", or "submit".

    • composedPath:function
      • Returns an array containing the current EventTarget as the only entry or empty if the event is not being dispatched. This is not used in Node.js and is provided purely for completeness.

        Returns [EventTarget?]

    • preventDefault:function
      • Sets the defaultPrevented property to true if cancelable is true.

        Returns void

    • stopImmediatePropagation:function
      • Stops the invocation of event listeners after the current one completes.

        Returns void

    • stopPropagation:function
      • This is not used in Node.js and is provided purely for completeness.

        Returns void

Generated using TypeDoc