PickPropstype

Pick<T, { [K in keyof T]: T[K] extends TT ? K : never }[keyof T]>
Type
Pick
K

Pick only the properties of an object that match a type.