CustomEvent
interface CustomEvent <T = any> extends Event {
readonly detail: T;
initCustomEvent(
}type: string,
bubbles?: boolean,
cancelable?: boolean,
detail?: T,
): void;var CustomEvent: {
prototype: CustomEvent;
new <T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;
};