Skip to content

Commit b618cf9

Browse files
committed
update baselines
1 parent 4a7de63 commit b618cf9

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

tests/baselines/reference/narrowingRestGenericCall.js

-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ function call<T extends object>(obj: T, cb: (val: T) => void) {
1111
declare let obj: Slugs;
1212
call(obj, ({foo, ...rest}) => {
1313
console.log(rest.bar);
14-
// ~~~ Property 'bar' does not exist on type 'Omit<T, "foo">'. ts(2339)
1514
});
1615

1716
//// [narrowingRestGenericCall.js]
@@ -32,5 +31,4 @@ function call(obj, cb) {
3231
call(obj, function (_a) {
3332
var foo = _a.foo, rest = __rest(_a, ["foo"]);
3433
console.log(rest.bar);
35-
// ~~~ Property 'bar' does not exist on type 'Omit<T, "foo">'. ts(2339)
3634
});

tests/baselines/reference/narrowingRestGenericCall.symbols

-1
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,4 @@ call(obj, ({foo, ...rest}) => {
4141
>rest : Symbol(rest, Decl(narrowingRestGenericCall.ts, 10, 16))
4242
>bar : Symbol(Slugs.bar, Decl(narrowingRestGenericCall.ts, 1, 14))
4343

44-
// ~~~ Property 'bar' does not exist on type 'Omit<T, "foo">'. ts(2339)
4544
});

tests/baselines/reference/narrowingRestGenericCall.types

+2-3
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ declare let obj: Slugs;
2323
>obj : Slugs
2424

2525
call(obj, ({foo, ...rest}) => {
26-
>call(obj, ({foo, ...rest}) => { console.log(rest.bar); // ~~~ Property 'bar' does not exist on type 'Omit<T, "foo">'. ts(2339)}) : void
26+
>call(obj, ({foo, ...rest}) => { console.log(rest.bar);}) : void
2727
>call : <T extends object>(obj: T, cb: (val: T) => void) => void
2828
>obj : Slugs
29-
>({foo, ...rest}) => { console.log(rest.bar); // ~~~ Property 'bar' does not exist on type 'Omit<T, "foo">'. ts(2339)} : ({ foo, ...rest }: Slugs) => void
29+
>({foo, ...rest}) => { console.log(rest.bar);} : ({ foo, ...rest }: Slugs) => void
3030
>foo : string
3131
>rest : { bar: string; }
3232

@@ -39,5 +39,4 @@ call(obj, ({foo, ...rest}) => {
3939
>rest : { bar: string; }
4040
>bar : string
4141

42-
// ~~~ Property 'bar' does not exist on type 'Omit<T, "foo">'. ts(2339)
4342
});

0 commit comments

Comments
 (0)