40. implement UnionToIntersection<T>

  - accepted / - tried

Union TypeからIntersection Typeを生成するUnionToIntersection<T>を実装してください。

type A = UnionToIntersection<{a: string} | {b: string} | {c: string}> 
// {a: string} & {b: string} & {c: string}

10分間以内で解いてみて

(12)