Type Challenges Judge
Problems
Progress
Ranking
Get Required
Implement the advanced util type GetRequired<T>, which remains all the required fields
GetRequired<T>
For example
type I = GetRequired<{ foo: number, bar?: string }> // expected to be { foo: number }