Home > types-kit > StrictExclude
Strict version of Exclude.
Signature:
export type StrictExclude<T, U extends T> = Exclude<T, U>type Foo = 'a' | 'b' | 'c'
// Expect: 'b' | 'c'
type Bar = StrictExclude<Foo, 'a'>Home > types-kit > StrictExclude
Strict version of Exclude.
Signature:
export type StrictExclude<T, U extends T> = Exclude<T, U>type Foo = 'a' | 'b' | 'c'
// Expect: 'b' | 'c'
type Bar = StrictExclude<Foo, 'a'>