Omit properties by their value type.
The object type to filter
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 } Copy
type Obj = { a: number; b: string; c: number; d: boolean };type NonNumProps = OmitByValue< Obj, number >; // { b: string; d: boolean }
Omit properties by their value type.