Back to Type Challenges

README.Zh CN

questions/07544-medium-construct-tuple/README.zh-CN.md

latest1.4 KB
Original Source
<!--info-header-start--><h1>Construct Tuple </h1><blockquote><p>by Lo <a href="https://github.com/LoTwT" target="_blank">@LoTwT</a></p></blockquote><p><a href="https://tsch.js.org/7544/play/zh-CN" target="_blank"></a> &nbsp;&nbsp;&nbsp;<a href="./README.md" target="_blank"></a> </p><!--info-header-end-->

构造一个给定长度的元组。

例如

ts
type result = ConstructTuple<2> // 期望得到 [unknown, unknown]
<!--info-footer-start-->

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