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