Back to Type Challenges

README.Ja

questions/00055-hard-union-to-intersection/README.ja.md

latest1.6 KB
Original Source
<!--info-header-start--><h1>Union to Intersection </h1><blockquote><p>by Zheeeng <a href="https://github.com/zheeeng" target="_blank">@zheeeng</a></p></blockquote><p><a href="https://tsch.js.org/55/play/ja" target="_blank"></a> &nbsp;&nbsp;&nbsp;<a href="./README.md" target="_blank"></a> <a href="./README.zh-CN.md" target="_blank"></a> </p><!--info-header-end-->

高度なユーティリティ型 UnionToIntersection<U> を実装してください。

例えば

ts
type I = UnionToIntersection<'foo' | 42 | true> // expected to be 'foo' & 42 & true
<!--info-footer-start-->

<a href="../../README.ja.md" target="_blank"></a> <a href="https://tsch.js.org/55/answer/ja" target="_blank"></a> <a href="https://tsch.js.org/55/solutions" target="_blank"></a> <!--info-footer-end-->