x/tsafe/UnionToIntersection.ts
123456789/* eslint-disable @typescript-eslint/no-explicit-any *//** @see <https://docs.tsafe.dev/> **/export type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends ( k: infer I,) => void ? I : never;