@@ -645,27 +645,27 @@ type Or<A extends boolean, B extends boolean> = If<A, true, B>;
645645>A : Symbol(A, Decl(conditionalTypes1.ts, 163, 8))
646646>B : Symbol(B, Decl(conditionalTypes1.ts, 163, 26))
647647
648- type isString <T> = Extends<T, string>;
649- >isString : Symbol(isString , Decl(conditionalTypes1.ts, 163, 63))
648+ type IsString <T> = Extends<T, string>;
649+ >IsString : Symbol(IsString , Decl(conditionalTypes1.ts, 163, 63))
650650>T : Symbol(T, Decl(conditionalTypes1.ts, 165, 14))
651651>Extends : Symbol(Extends, Decl(conditionalTypes1.ts, 157, 1))
652652>T : Symbol(T, Decl(conditionalTypes1.ts, 165, 14))
653653
654- type Q1 = isString <number>; // false
654+ type Q1 = IsString <number>; // false
655655>Q1 : Symbol(Q1, Decl(conditionalTypes1.ts, 165, 38))
656- >isString : Symbol(isString , Decl(conditionalTypes1.ts, 163, 63))
656+ >IsString : Symbol(IsString , Decl(conditionalTypes1.ts, 163, 63))
657657
658- type Q2 = isString <"abc">; // true
658+ type Q2 = IsString <"abc">; // true
659659>Q2 : Symbol(Q2, Decl(conditionalTypes1.ts, 167, 27))
660- >isString : Symbol(isString , Decl(conditionalTypes1.ts, 163, 63))
660+ >IsString : Symbol(IsString , Decl(conditionalTypes1.ts, 163, 63))
661661
662- type Q3 = isString <any>; // boolean
662+ type Q3 = IsString <any>; // boolean
663663>Q3 : Symbol(Q3, Decl(conditionalTypes1.ts, 168, 26))
664- >isString : Symbol(isString , Decl(conditionalTypes1.ts, 163, 63))
664+ >IsString : Symbol(IsString , Decl(conditionalTypes1.ts, 163, 63))
665665
666- type Q4 = isString <never>; // boolean
666+ type Q4 = IsString <never>; // boolean
667667>Q4 : Symbol(Q4, Decl(conditionalTypes1.ts, 169, 24))
668- >isString : Symbol(isString , Decl(conditionalTypes1.ts, 163, 63))
668+ >IsString : Symbol(IsString , Decl(conditionalTypes1.ts, 163, 63))
669669
670670type N1 = Not<false>; // true
671671>N1 : Symbol(N1, Decl(conditionalTypes1.ts, 170, 26))
@@ -760,3 +760,20 @@ type T41 = number extends never ? true : false; // false
760760type T42 = never extends number ? true : false; // boolean
761761>T42 : Symbol(T42, Decl(conditionalTypes1.ts, 197, 47))
762762
763+ type IsNever<T> = T extends never ? true : false;
764+ >IsNever : Symbol(IsNever, Decl(conditionalTypes1.ts, 198, 47))
765+ >T : Symbol(T, Decl(conditionalTypes1.ts, 200, 13))
766+ >T : Symbol(T, Decl(conditionalTypes1.ts, 200, 13))
767+
768+ type T50 = IsNever<never>; // true
769+ >T50 : Symbol(T50, Decl(conditionalTypes1.ts, 200, 49))
770+ >IsNever : Symbol(IsNever, Decl(conditionalTypes1.ts, 198, 47))
771+
772+ type T51 = IsNever<number>; // false
773+ >T51 : Symbol(T51, Decl(conditionalTypes1.ts, 202, 26))
774+ >IsNever : Symbol(IsNever, Decl(conditionalTypes1.ts, 198, 47))
775+
776+ type T52 = IsNever<any>; // false
777+ >T52 : Symbol(T52, Decl(conditionalTypes1.ts, 203, 27))
778+ >IsNever : Symbol(IsNever, Decl(conditionalTypes1.ts, 198, 47))
779+
0 commit comments