Skip to content

Commit 6ceab7b

Browse files
committed
Accept new baselines
1 parent 9ac7667 commit 6ceab7b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/baselines/reference/mappedTypeErrors.errors.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ tests/cases/conformance/types/mapped/mappedTypeErrors.ts(51,24): error TS2344: T
7979
!!! error TS2344: Type '"x" | "y"' does not satisfy the constraint '"name" | "width" | "height" | "visible"'.
8080
!!! error TS2344: Type '"x"' is not assignable to type '"name" | "width" | "height" | "visible"'.
8181
type T15 = Pick<Shape, never>;
82-
type T16 = Pick<Shape, undefined>;
82+
type T16 = Pick<Shape, undefined>; // Error
8383
~~~~~~~~~
8484
!!! error TS2344: Type 'undefined' does not satisfy the constraint '"name" | "width" | "height" | "visible"'.
8585

tests/baselines/reference/mappedTypeErrors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ type T12 = Pick<Shape, "name" | "foo">; // Error
4242
type T13 = Pick<Shape, keyof Named>;
4343
type T14 = Pick<Shape, keyof Point>; // Error
4444
type T15 = Pick<Shape, never>;
45-
type T16 = Pick<Shape, undefined>;
45+
type T16 = Pick<Shape, undefined>; // Error
4646

4747
function f1<T>(x: T) {
4848
let y: Pick<Shape, T>; // Error

0 commit comments

Comments
 (0)