devtypes - v1.1.0
    Preparing search index...

    Type Alias OmitByValue<T, V>

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

    Omit properties by their value type.

    Type Parameters

    • T

      The object type to filter

    • V

      The value type to exclude

    Creates a new type excluding properties whose values match the specified type. Useful for removing certain types from object types in type-level transformations.

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