MandatoryEventNames<E>: {
    [K in keyof E]: E[K] extends OptionalEvent<any, any>
        ? never
        : K
}[keyof E]

Type Parameters