diff --git a/tests/baselines/reference/narrowingRestGenericCall.js b/tests/baselines/reference/narrowingRestGenericCall.js index e9d5185eb01..a180bcb364f 100644 --- a/tests/baselines/reference/narrowingRestGenericCall.js +++ b/tests/baselines/reference/narrowingRestGenericCall.js @@ -11,7 +11,6 @@ function call(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'. 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'. ts(2339) }); diff --git a/tests/baselines/reference/narrowingRestGenericCall.symbols b/tests/baselines/reference/narrowingRestGenericCall.symbols index 880a7797b6c..a128942700b 100644 --- a/tests/baselines/reference/narrowingRestGenericCall.symbols +++ b/tests/baselines/reference/narrowingRestGenericCall.symbols @@ -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'. ts(2339) }); diff --git a/tests/baselines/reference/narrowingRestGenericCall.types b/tests/baselines/reference/narrowingRestGenericCall.types index fdb88753102..a04e883ad9c 100644 --- a/tests/baselines/reference/narrowingRestGenericCall.types +++ b/tests/baselines/reference/narrowingRestGenericCall.types @@ -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'. ts(2339)}) : void +>call(obj, ({foo, ...rest}) => { console.log(rest.bar);}) : void >call : (obj: T, cb: (val: T) => void) => void >obj : Slugs ->({foo, ...rest}) => { console.log(rest.bar); // ~~~ Property 'bar' does not exist on type 'Omit'. 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'. ts(2339) });