Appearance
题目
Remove the key starting with _ from given type T.
_
T
解答
type PublicType<T extends object> = { [P in keyof T as P extends `_${infer _}` ? never : P]: T[P]; };