Skip to content

Commit 13c4538

Browse files
Update Baselines and/or Applied Lint Fixes
1 parent 7b85698 commit 13c4538

File tree

47 files changed

+118
-2392
lines changed

Some content is hidden

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

47 files changed

+118
-2392
lines changed

tests/baselines/reference/asyncArrowFunction_allowJs.types

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const c = async () => {
2626
/** @type {function(function(): string): void} */
2727
const f = (p) => {}
2828
>f : (arg0: () => string) => void
29-
>(p) => {} : (p: () => string) => void
29+
>(p) => {} : (arg0: () => string) => void
3030
>p : () => string
3131

3232
// Error (good)

tests/baselines/reference/callbackTag1.types

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ var x = 1
1010
/** @type {Sid} smallId */
1111
var sid = s => s + "!";
1212
>sid : Sid
13-
>s => s + "!" : (s: string) => string
13+
>s => s + "!" : (s: string) => any
1414
>s : string
1515
>s + "!" : string
1616
>s : string
@@ -20,7 +20,7 @@ var sid = s => s + "!";
2020
/** @type {NoReturn} */
2121
var noreturn = obj => void obj.title
2222
>noreturn : NoReturn
23-
>obj => void obj.title : (obj: { e: number; m: number; title: string; }) => any
23+
>obj => void obj.title : (s: { e: number; m: number; title: string; }) => any
2424
>obj : { e: number; m: number; title: string; }
2525
>void obj.title : undefined
2626
>obj.title : string

tests/baselines/reference/callbackTag2.types

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var x = 1
1111
/** @type {Id<string>} I actually wanted to write `const "120"` */
1212
var one_twenty = s => "120";
1313
>one_twenty : Id<string>
14-
>s => "120" : (s: string) => string
14+
>s => "120" : (t: string) => any
1515
>s : string
1616
>"120" : "120"
1717

@@ -34,7 +34,7 @@ class SharedClass {
3434
/** @type {SharedId<number>} */
3535
var outside = n => n + 1;
3636
>outside : SharedId<number>
37-
>n => n + 1 : (n: number) => number
37+
>n => n + 1 : (ego: number) => any
3838
>n : number
3939
>n + 1 : number
4040
>n : number
@@ -43,7 +43,7 @@ var outside = n => n + 1;
4343
/** @type {Final<{ fantasy }, { heroes }>} */
4444
var noreturn = (barts, tidus, noctis) => "cecil"
4545
>noreturn : Final<{ fantasy: any; }, { heroes: any; }>
46-
>(barts, tidus, noctis) => "cecil" : (barts: { fantasy: any; }, tidus: { heroes: any; }, noctis: { heroes: any; } & { fantasy: any; }) => "cecil" | "zidane"
46+
>(barts, tidus, noctis) => "cecil" : (barts: { fantasy: any; }, tidus: { heroes: any; }, noctis: { heroes: any; } & { fantasy: any; }) => any
4747
>barts : { fantasy: any; }
4848
>tidus : { heroes: any; }
4949
>noctis : { heroes: any; } & { fantasy: any; }

tests/baselines/reference/callbackTag3.symbols

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

tests/baselines/reference/callbackTag3.types

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

tests/baselines/reference/callbackTagNamespace.types

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var x = 1;
1111

1212
/** @type {NS.Nested.Inner} */
1313
function f(space, peace) {
14-
>f : (space: any, peace: any) => string | number
14+
>f : (space: any, peace: any) => any
1515
>space : any
1616
>peace : any
1717

tests/baselines/reference/callbackTagVariadicType.js

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

tests/baselines/reference/callbackTagVariadicType.symbols

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

tests/baselines/reference/callbackTagVariadicType.types

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

tests/baselines/reference/checkJsdocTypeTag1.types

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ y(1);
6161
/** @type {function (number)} */
6262
const x1 = (a) => a + 1;
6363
>x1 : (arg0: number) => any
64-
>(a) => a + 1 : (a: number) => any
64+
>(a) => a + 1 : (arg0: number) => any
6565
>a : number
6666
>a + 1 : number
6767
>a : number
@@ -75,7 +75,7 @@ x1(0);
7575
/** @type {function (number): number} */
7676
const x2 = (a) => a + 1;
7777
>x2 : (arg0: number) => number
78-
>(a) => a + 1 : (a: number) => number
78+
>(a) => a + 1 : (arg0: number) => number
7979
>a : number
8080
>a + 1 : number
8181
>a : number

0 commit comments

Comments
 (0)