Skip to content

Latest commit

 

History

History
12 lines (7 loc) · 1.83 KB

File metadata and controls

12 lines (7 loc) · 1.83 KB

Get Optional hard #utils #infer

by Zheeeng @zheeeng

Take the Challenge    简体中文 日本語

Implement the advanced util type GetOptional<T>, which remains all the optional fields

For example

type I = GetOptional<{ foo: number, bar?: string }> // expected to be { bar?: string }

Back Share your Solutions Check out Solutions

Related Challenges

57・Get Required