40. implement UnionToIntersection<T>
分享给更多人
-通过 / -执行
请实现UnionToIntersection<T>
用以从Union得到Intersection。
type A = UnionToIntersection<{a: string} | {b: string} | {c: string}> // {a: string} & {b: string} & {c: string}
-通过 / -执行
请实现UnionToIntersection<T>
用以从Union得到Intersection。
type A = UnionToIntersection<{a: string} | {b: string} | {c: string}> // {a: string} & {b: string} & {c: string}