Skip to content

Commit 45813bb

Browse files
committed
update baseline
1 parent 3f66a41 commit 45813bb

File tree

52 files changed

+234
-448
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+234
-448
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/compiler/jsdocParamTagInvalid.types

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
=== /a.js ===
44
/** @param {string} colour */
55
function f(color) {}
6-
>f : (color: string) => void
7-
>color : string
6+
>f : (color: any) => void
7+
>color : any
88

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ function x(y) { }
1212
/** @param {function (Array)} func Invoked
1313
*/
1414
function y(func) { return; }
15-
>y : (func: function) => void
16-
>func : function
15+
>y : (func: any) => void
16+
>func : any
1717

1818
/**
1919
* @return {(Array.<> | null)} list of devices

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.errors.txt

Lines changed: 0 additions & 14 deletions
This file was deleted.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export class Clazz {
88
* @param {function(this:Object, ...*):*} functionDeclaration
99
*/
1010
method(functionDeclaration) {}
11-
>method : (functionDeclaration: function) => void
12-
>functionDeclaration : function
11+
>method : (functionDeclaration: any) => void
12+
>functionDeclaration : any
1313
}
1414

0 commit comments

Comments
 (0)