Skip to content

Commit

Permalink
fix(check-types): surface jsdoctypeparser fix for new() with ar…
Browse files Browse the repository at this point in the history
…row functions; @Elberet
  • Loading branch information
brettz9 committed Dec 4, 2019
1 parent 7d039fd commit 373fb43
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -3262,6 +3262,8 @@ function quux () {}
*/
function quux () {}
// Settings: {"jsdoc":{"mode":"closure"}}

/** @type {new() => EntityBase} */
````


Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -7,7 +7,7 @@
"dependencies": {
"comment-parser": "^0.7.0",
"debug": "^4.1.1",
"jsdoctypeparser": "^6.0.0",
"jsdoctypeparser": "^6.1.0",
"lodash": "^4.17.15",
"object.entries-ponyfill": "^1.0.1",
"regextras": "^0.6.1",
Expand Down
5 changes: 5 additions & 0 deletions test/rules/assertions/checkTypes.js
Expand Up @@ -2149,5 +2149,10 @@ export default {
},
},
},
{
code: `
/** @type {new() => EntityBase} */
`,
},
],
};

0 comments on commit 373fb43

Please sign in to comment.