xdash / PickByValueType
Type alias: PickByValueType<T, V>
PickByValueType<
T
,V
>:{ [K in keyof T as T[K] extends V ? K : never]: T[K] }
Type parameters
• T
• V extends T
[keyof T
]
xdash / PickByValueType
PickByValueType<
T
,V
>:{ [K in keyof T as T[K] extends V ? K : never]: T[K] }
• T
• V extends T
[keyof T
]