Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 1.54 KB

File metadata and controls

17 lines (12 loc) · 1.54 KB

PickByType medium #object

by jiangshan @jiangshanmeta

Take the Challenge

From T, pick a set of properties whose type are assignable to U.

For Example

type OnlyBoolean = PickByType<{
  name: string
  count: number
  isReadonly: boolean
  isEnable: boolean
}, boolean> // { isReadonly: boolean; isEnable: boolean; }

Back Share your Solutions Check out Solutions

Related Challenges

2852・OmitByType