Skip to content

Commit 7aac67b

Browse files
committed
Test: parsing of two-line @typedef jsdoc
1 parent 2bc9ecb commit 7aac67b

File tree

4 files changed

+34
-0
lines changed

4 files changed

+34
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
//// [jsdocTwoLineTypedef.ts]
2+
// Regression from #18301
3+
/**
4+
* @typedef LoadCallback
5+
* @type {function}
6+
*/
7+
type LoadCallback = void;
8+
9+
10+
//// [jsdocTwoLineTypedef.js]
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
=== tests/cases/conformance/jsdoc/jsdocTwoLineTypedef.ts ===
2+
// Regression from #18301
3+
/**
4+
* @typedef LoadCallback
5+
* @type {function}
6+
*/
7+
type LoadCallback = void;
8+
>LoadCallback : Symbol(LoadCallback, Decl(jsdocTwoLineTypedef.ts, 0, 0))
9+
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
=== tests/cases/conformance/jsdoc/jsdocTwoLineTypedef.ts ===
2+
// Regression from #18301
3+
/**
4+
* @typedef LoadCallback
5+
* @type {function}
6+
*/
7+
type LoadCallback = void;
8+
>LoadCallback : void
9+
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// Regression from #18301
2+
/**
3+
* @typedef LoadCallback
4+
* @type {function}
5+
*/
6+
type LoadCallback = void;

0 commit comments

Comments
 (0)