Skip to content

Commit ebe193c

Browse files
author
Gabriela Britto
committed
Minor refactor in paramTagNestedWithoutTopLevelObject.ts
1 parent e2524e3 commit ebe193c

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

tests/baselines/reference/paramTagNestedWithoutTopLevelObject.errors.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ tests/cases/conformance/jsdoc/paramTagNestedWithoutTopLevelObject.js(2,20): erro
88
!!! error TS8032: Qualified name 'xyz.p' is not allowed without a leading '@param {object} xyz'.
99
*/
1010
function g(xyz) {
11-
xyz.x;
11+
return xyz.p;
1212
}

tests/baselines/reference/paramTagNestedWithoutTopLevelObject.symbols

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ function g(xyz) {
66
>g : Symbol(g, Decl(paramTagNestedWithoutTopLevelObject.js, 0, 0))
77
>xyz : Symbol(xyz, Decl(paramTagNestedWithoutTopLevelObject.js, 3, 11))
88

9-
xyz.x;
9+
return xyz.p;
1010
>xyz : Symbol(xyz, Decl(paramTagNestedWithoutTopLevelObject.js, 3, 11))
1111
}

tests/baselines/reference/paramTagNestedWithoutTopLevelObject.types

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
* @param {number} xyz.p
44
*/
55
function g(xyz) {
6-
>g : (xyz: any) => void
6+
>g : (xyz: any) => any
77
>xyz : any
88

9-
xyz.x;
10-
>xyz.x : any
9+
return xyz.p;
10+
>xyz.p : any
1111
>xyz : any
12-
>x : any
12+
>p : any
1313
}

tests/cases/conformance/jsdoc/paramTagNestedWithoutTopLevelObject.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
* @param {number} xyz.p
88
*/
99
function g(xyz) {
10-
xyz.x;
10+
return xyz.p;
1111
}

0 commit comments

Comments
 (0)