questions/00059-hard-get-optional/README.zh-CN.md
实现高级工具类型 GetOptional<T>,该类型保留所有可选属性
例如
type I = GetOptional<{ foo: number, bar?: string }> // expected to be { bar?: string }
<a href="../../README.zh-CN.md" target="_blank"></a> <a href="https://tsch.js.org/59/answer/zh-CN" target="_blank"></a> <a href="https://tsch.js.org/59/solutions" target="_blank"></a> <hr><h3>相关挑战</h3><a href="https://github.com/type-challenges/type-challenges/blob/main/questions/00057-hard-get-required/README.zh-CN.md" target="_blank"></a> <!--info-footer-end-->