Skip to content

Commit 373fb43

Browse files
committed
fix(check-types): surface jsdoctypeparser fix for new() with arrow functions; @Elberet
1 parent 7d039fd commit 373fb43

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3262,6 +3262,8 @@ function quux () {}
32623262
*/
32633263
function quux () {}
32643264
// Settings: {"jsdoc":{"mode":"closure"}}
3265+
3266+
/** @type {new() => EntityBase} */
32653267
````
32663268

32673269

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"dependencies": {
88
"comment-parser": "^0.7.0",
99
"debug": "^4.1.1",
10-
"jsdoctypeparser": "^6.0.0",
10+
"jsdoctypeparser": "^6.1.0",
1111
"lodash": "^4.17.15",
1212
"object.entries-ponyfill": "^1.0.1",
1313
"regextras": "^0.6.1",

test/rules/assertions/checkTypes.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2149,5 +2149,10 @@ export default {
21492149
},
21502150
},
21512151
},
2152+
{
2153+
code: `
2154+
/** @type {new() => EntityBase} */
2155+
`,
2156+
},
21522157
],
21532158
};

0 commit comments

Comments
 (0)