Implement util type PublicType<T> that removes the key starting with _ from given type T.
PublicType<T>
_
T
For example:
PublicType<{ _id: number, name: string }> // expected // { // name: string; // }
Code