Skip to content

Commit 51ccfb1

Browse files
committed
Accept new baselines
1 parent 2a91e7a commit 51ccfb1

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

tests/baselines/reference/jsdocTemplateTag3.types

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function f(t, u, v, w, x) {
5252
}
5353

5454
f({ a: 12, b: 'hi', c: null }, undefined, { c: false, d: 12, b: undefined }, 101, 'nope');
55-
>f({ a: 12, b: 'hi', c: null }, undefined, { c: false, d: 12, b: undefined }, 101, 'nope') : string | number
55+
>f({ a: 12, b: 'hi', c: null }, undefined, { c: false, d: 12, b: undefined }, 101, 'nope') : 101 | "nope"
5656
>f : <T extends { a: number; b: string; }, U, V extends { c: boolean; }, W, X>(t: T, u: U, v: V, w: W, x: X) => W | X
5757
>{ a: 12, b: 'hi', c: null } : { a: number; b: string; c: null; }
5858
>a : number

tests/baselines/reference/spreadOfParamsFromGeneratorMakesRequiredParams.errors.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error TS2318: Cannot find global type 'IterableIterator'.
2-
tests/cases/compiler/spreadOfParamsFromGeneratorMakesRequiredParams.ts(6,1): error TS2345: Argument of type '[]' is not assignable to parameter of type 'never'.
2+
tests/cases/compiler/spreadOfParamsFromGeneratorMakesRequiredParams.ts(6,1): error TS2554: Expected 2 arguments, but got 1.
33

44

55
!!! error TS2318: Cannot find global type 'IterableIterator'.
@@ -11,4 +11,5 @@ tests/cases/compiler/spreadOfParamsFromGeneratorMakesRequiredParams.ts(6,1): err
1111

1212
call(function* (a: 'a') { }); // error, 2nd argument required
1313
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
14-
!!! error TS2345: Argument of type '[]' is not assignable to parameter of type 'never'.
14+
!!! error TS2554: Expected 2 arguments, but got 1.
15+
!!! related TS6210 tests/cases/compiler/spreadOfParamsFromGeneratorMakesRequiredParams.ts:3:5: An argument for 'args' was not provided.

0 commit comments

Comments
 (0)