update baselines

This commit is contained in:
Gabriela Araujo Britto
2022-02-15 11:47:58 -08:00
parent 4a7de63c83
commit b618cf9371
3 changed files with 2 additions and 6 deletions
@@ -11,7 +11,6 @@ function call<T extends object>(obj: T, cb: (val: T) => void) {
declare let obj: Slugs;
call(obj, ({foo, ...rest}) => {
console.log(rest.bar);
// ~~~ Property 'bar' does not exist on type 'Omit<T, "foo">'. ts(2339)
});
//// [narrowingRestGenericCall.js]
@@ -32,5 +31,4 @@ function call(obj, cb) {
call(obj, function (_a) {
var foo = _a.foo, rest = __rest(_a, ["foo"]);
console.log(rest.bar);
// ~~~ Property 'bar' does not exist on type 'Omit<T, "foo">'. ts(2339)
});
@@ -41,5 +41,4 @@ call(obj, ({foo, ...rest}) => {
>rest : Symbol(rest, Decl(narrowingRestGenericCall.ts, 10, 16))
>bar : Symbol(Slugs.bar, Decl(narrowingRestGenericCall.ts, 1, 14))
// ~~~ Property 'bar' does not exist on type 'Omit<T, "foo">'. ts(2339)
});
@@ -23,10 +23,10 @@ declare let obj: Slugs;
>obj : Slugs
call(obj, ({foo, ...rest}) => {
>call(obj, ({foo, ...rest}) => { console.log(rest.bar); // ~~~ Property 'bar' does not exist on type 'Omit<T, "foo">'. ts(2339)}) : void
>call(obj, ({foo, ...rest}) => { console.log(rest.bar);}) : void
>call : <T extends object>(obj: T, cb: (val: T) => void) => void
>obj : Slugs
>({foo, ...rest}) => { console.log(rest.bar); // ~~~ Property 'bar' does not exist on type 'Omit<T, "foo">'. ts(2339)} : ({ foo, ...rest }: Slugs) => void
>({foo, ...rest}) => { console.log(rest.bar);} : ({ foo, ...rest }: Slugs) => void
>foo : string
>rest : { bar: string; }
@@ -39,5 +39,4 @@ call(obj, ({foo, ...rest}) => {
>rest : { bar: string; }
>bar : string
// ~~~ Property 'bar' does not exist on type 'Omit<T, "foo">'. ts(2339)
});