devtypes
    Preparing search index...

    Type Alias OmitByValue<T, V>

    OmitByValue: Omit<T, KeysByValue<T, V>>

    Omit keys whose value matches V

    Type Parameters

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