typelab / assertions / IsNotExtends
type IsNotExtends<T1, T2> = _IsTrue<IfNotExtends<T1, T2, true, false>>;Type that checks if type T1 not extends type T2.
`IsExtends` in reverse.
| Type Parameter | Description |
|---|---|
|
|
The first type to compare. |
|
|
The second type to compare. |
true if T1 is not assignable to T2, false otherwise.
type NotExtends = IsNotExtends<string, ''>; // true
type Extends = IsNotExtends<'', string>; // false