typelab / assertions / IsNotExtendsEitherWay
type IsNotExtendsEitherWay<T1, T2> = _IsTrue<IfNotExtendsEitherWay<T1, T2, true, false>>;Type that checks if type T1 not extends type T2 and type T2 not extends type T1.
| Type Parameter | Description |
|---|---|
|
|
The first type to compare. |
|
|
The second type to compare. |
true if both conditions are true, false otherwise.
type NotRelate = IsNotExtendsEitherWay<string, number>; // false
type Relate = IsNotExtendsEitherWay<string, ''>; // true