mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
update baselines
This commit is contained in:
@@ -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)
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user