Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 460 Bytes

File metadata and controls

23 lines (14 loc) · 460 Bytes

Home > types-kit > StrictExclude

StrictExclude type

Strict version of Exclude.

Signature:

export type StrictExclude<T, U extends T> = Exclude<T, U>

Example

type Foo = 'a' | 'b' | 'c'
// Expect: 'b' | 'c'
type Bar = StrictExclude<Foo, 'a'>