by Zheeeng @zheeeng
Implement the advanced util type GetRequired<T>
, which remains all the required fields
For example
type I = GetRequired<{ foo: number, bar?: string }> // expected to be { foo: number }
by Zheeeng @zheeeng
Implement the advanced util type GetRequired<T>
, which remains all the required fields
For example
type I = GetRequired<{ foo: number, bar?: string }> // expected to be { foo: number }