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}
- accepted / - tried
Union TypeからIntersection Typeを生成するUnionToIntersection<T>
を実装してください。
type A = UnionToIntersection<{a: string} | {b: string} | {c: string}> // {a: string} & {b: string} & {c: string}