Skip to content

Commit 821115f

Browse files
committed
update baseline
1 parent 542f87e commit 821115f

12 files changed

+21
-57
lines changed

testdata/baselines/reference/submodule/compiler/declarationEmitClassSetAccessorParamNameInJs2.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,7 @@ export declare class Foo {
2020
*
2121
* @param {{ prop: string }} baz Baz.
2222
*/
23-
set bar({}: {});
23+
set bar({}: {
24+
prop: string;
25+
});
2426
}

testdata/baselines/reference/submodule/compiler/declarationEmitClassSetAccessorParamNameInJs2.js.diff

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,4 @@
88
+export declare class Foo {
99
/**
1010
* Bar.
11-
*
12-
* @param {{ prop: string }} baz Baz.
13-
*/
14-
- set bar({}: {
15-
- prop: string;
16-
- });
17-
+ set bar({}: {});
18-
}
11+
*

testdata/baselines/reference/submodule/compiler/declarationEmitClassSetAccessorParamNameInJs3.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ export declare class Foo {
2121
* @param {{ prop: string | undefined }} baz Baz.
2222
*/
2323
set bar({ prop }: {
24-
prop?: string;
24+
prop: string | undefined;
2525
});
2626
}

testdata/baselines/reference/submodule/compiler/declarationEmitClassSetAccessorParamNameInJs3.js.diff

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,4 @@
88
+export declare class Foo {
99
/**
1010
* Bar.
11-
*
12-
* @param {{ prop: string | undefined }} baz Baz.
13-
*/
14-
set bar({ prop }: {
15-
- prop: string | undefined;
16-
+ prop?: string;
17-
});
18-
}
11+
*

testdata/baselines/reference/submodule/conformance/jsDeclarationsMissingTypeParameters.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ declare function x(y?: Array | undefined): void;
5050
// @ts-ignore
5151
/** @param {function (Array)} func Invoked
5252
*/
53-
declare function y(func: any): void;
53+
declare function y(func: function): void;
5454
/**
5555
* @return {(Array.<> | null)} list of devices
5656
*/

testdata/baselines/reference/submodule/conformance/jsDeclarationsMissingTypeParameters.js.diff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
/** @param {function (Array)} func Invoked
1111
*/
1212
-declare function y(func: (arg0: any[]) => any): void;
13-
+declare function y(func: any): void;
13+
+declare function y(func: function): void;
1414
/**
1515
* @return {(Array.<> | null)} list of devices
1616
*/

testdata/baselines/reference/submodule/conformance/jsDeclarationsNestedParams.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ declare class X {
6161
* @returns {Promise.<*>} resolves when the event has been sent.
6262
*/
6363
cancel({ reason, code }: {
64-
code: any;
65-
reason: any;
64+
reason: string | null;
65+
code: string | null;
6666
}): Promise<any>;
6767
}
6868
declare class Y {
@@ -76,7 +76,10 @@ declare class Y {
7676
* @returns {Promise.<*>} resolves when the event has been sent.
7777
*/
7878
cancel({ reason, suberr }: {
79-
reason: any;
80-
suberr: any;
79+
reason: string | null;
80+
suberr: {
81+
reason: string | null;
82+
code: string | null;
83+
};
8184
}): Promise<any>;
8285
}

testdata/baselines/reference/submodule/conformance/jsDeclarationsNestedParams.js.diff

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -37,28 +37,3 @@
3737
+ async cancel({ reason, suberr }) { }
3838
}
3939

40-
41-
@@= skipped -16, +14 lines =@@
42-
* @returns {Promise.<*>} resolves when the event has been sent.
43-
*/
44-
cancel({ reason, code }: {
45-
- reason: string | null;
46-
- code: string | null;
47-
+ code: any;
48-
+ reason: any;
49-
}): Promise<any>;
50-
}
51-
declare class Y {
52-
@@= skipped -15, +15 lines =@@
53-
* @returns {Promise.<*>} resolves when the event has been sent.
54-
*/
55-
cancel({ reason, suberr }: {
56-
- reason: string | null;
57-
- suberr: {
58-
- reason: string | null;
59-
- code: string | null;
60-
- };
61-
+ reason: any;
62-
+ suberr: any;
63-
}): Promise<any>;
64-
}

testdata/baselines/reference/submodule/conformance/jsDeclarationsRestArgsWithThisTypeInJSDocFunction.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ export declare class Clazz {
2727
/**
2828
* @param {function(this:Object, ...*):*} functionDeclaration
2929
*/
30-
method(functionDeclaration: any): void;
30+
method(functionDeclaration: function): void;
3131
}

testdata/baselines/reference/submodule/conformance/jsDeclarationsRestArgsWithThisTypeInJSDocFunction.js.diff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010
* @param {function(this:Object, ...*):*} functionDeclaration
1111
*/
1212
- method(functionDeclaration: (this: any, ...args: any[]) => any): void;
13-
+ method(functionDeclaration: any): void;
13+
+ method(functionDeclaration: function): void;
1414
}

testdata/baselines/reference/submodule/conformance/templateInsideCallback.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ function flatMap(array, iterable = identity) {
117117
export type Call = () ;
118118
export type Nested = {
119119
oh: {
120-
property: number;
121-
property: string;
120+
no: number;
121+
noooooo: string;
122122
};
123123
};

testdata/baselines/reference/submodule/conformance/templateInsideCallback.js.diff

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,8 @@
5757
+export type Call = () ;
5858
+export type Nested = {
5959
oh: {
60-
- no: number;
61-
- noooooo: string;
62-
+ property: number;
63-
+ property: string;
60+
no: number;
61+
noooooo: string;
6462
};
6563
};
6664
-type Oops = any;

0 commit comments

Comments
 (0)