CustomEvent: {
    prototype: CustomEvent<any>;
    new <T>(type, eventInitDict?): CustomEvent<T>;
}

Type declaration