devtypes
    Preparing search index...

    Type Alias PickByValue<T, V>

    PickByValue: Pick<T, KeysByValue<T, V>>

    Pick by value type

    Type Parameters

    • T
    • V
    type Obj = { a: number; b: string; c: number; d: boolean };
    type NumProps = PickByValue<Obj, number>;
    // { a: number; c: number }