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

Type declaration