Checks if two types are exactly equal, same as Equals but with a more descriptive name.
Equals
type Result1 = Is<string, string>; // is true type Result2 = Is<number, string>; // is false type Result3 = Is<boolean | string, string | boolean>; // is true Copy
type Result1 = Is<string, string>; // is true type Result2 = Is<number, string>; // is false type Result3 = Is<boolean | string, string | boolean>; // is true
Checks if two types are exactly equal, same as
Equalsbut with a more descriptive name.