Get a set of properties from T whose type are not assignable to P.
T
P
type T = { foo: string, bar: bigint | boolean, baz: number,}OmitByType<T,true>; // Result: TOmitByType<T,number>; // Result: { foo: string, bar: bigint | boolean } Copy
type T = { foo: string, bar: bigint | boolean, baz: number,}OmitByType<T,true>; // Result: TOmitByType<T,number>; // Result: { foo: string, bar: bigint | boolean }
Get a set of properties from
T
whose type are not assignable toP
.