Skip to content

Latest commit

 

History

History
55 lines (39 loc) · 756 Bytes

File metadata and controls

55 lines (39 loc) · 756 Bytes

typelab / assertions / IsNotExtendsMutually

type IsNotExtendsMutually<T1, T2> = _IsTrue<IfNotExtendsMutually<T1, T2, true, false>>;

Type that checks if type T1 not extends type T2 or type T2 not extends type T1.

Type Parameters

Type Parameter Description

T1

The first type to compare.

T2

The second type to compare.

Returns

true if either conditions are true, false otherwise.

Example

type NotMutual = IsNotExtendsMutually<string, ''>; // true
type Mutual = IsNotExtendsMutually<string, string>; // false