GoUnionToIntersectiontypeHelper type to turn a union type into an intersection type.(U extends unknown ? (k: U) => void : never) extends (k: infer I) => void ? I : never