摘要: Implement the advanced util type GetOptional<T>, which remains all the optional fields For example type I = GetOptional<{ foo: number, bar?: string }> 阅读全文
posted @ 2022-11-10 22:03 Zhentiw 阅读(19) 评论(0) 推荐(0) 编辑
摘要: Implement the advanced util type GetRequired<T>, which remains all the required fields For example type I = GetRequired<{ foo: number, bar?: string }> 阅读全文
posted @ 2022-11-10 21:57 Zhentiw 阅读(29) 评论(0) 推荐(0) 编辑