Back to Type Challenges

README.Zh CN

questions/00090-hard-optional-keys/README.zh-CN.md

latest2.1 KB
Original Source
<!--info-header-start--><h1>可选类型的键 </h1><blockquote><p>by yituan <a href="https://github.com/yi-tuan" target="_blank">@yi-tuan</a></p></blockquote><p><a href="https://tsch.js.org/90/play/zh-CN" target="_blank"></a> &nbsp;&nbsp;&nbsp;<a href="./README.md" target="_blank"></a> <a href="./README.ja.md" target="_blank"></a> </p><!--info-header-end-->

实现高级工具类型OptionalKeys<T>,该类型将 T 中所有可选属性的键合并为一个联合类型。

<!--info-footer-start-->

<a href="../../README.zh-CN.md" target="_blank"></a> <a href="https://tsch.js.org/90/answer/zh-CN" target="_blank"></a> <a href="https://tsch.js.org/90/solutions" target="_blank"></a> <hr><h3>相关挑战</h3><a href="https://github.com/type-challenges/type-challenges/blob/main/questions/00089-hard-required-keys/README.zh-CN.md" target="_blank"></a> <a href="https://github.com/type-challenges/type-challenges/blob/main/questions/00005-extreme-readonly-keys/README.zh-CN.md" target="_blank"></a> <!--info-footer-end-->