Variable CustomEventConst

CustomEvent: (new <T>(type, eventInitDict?) => CustomEvent<T>) = globalThis.CustomEvent

Type declaration

    • new <T>(type, eventInitDict?): CustomEvent<T>
    • Type Parameters

      • T

      Parameters

      • type: string
      • Optional eventInitDict: CustomEventInit<T>

      Returns CustomEvent<T>

Deprecated

Use global CustomEvent.