import type { Contains } from "hry-types/src/Any/Contains"; import type { IfExtends } from "hry-types/src/Any/IfExtends"; import type { Detail, WMBaseEvent } from "../../../types/OfficialTypeAlias"; import type { ComponentDoc } from "../../DefineComponent/ReturnType/ComponentDoc"; import type { Bubbles, Capture, CustomEventsTags } from "../../RootComponent/CustomEvents/CustomEventsTag"; export type SubEventsConstraint = { [k in keys as Contains extends true ? (k | `${k & string}_catch`) : k]?: (e: IfExtends>>) => void; };