We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93c1ccc commit 3584a6eCopy full SHA for 3584a6e
jsdoc-plugin.cjs
@@ -1,13 +1,9 @@
1
/*
2
- * Removes JSDoc comments with TypeScript import() declarations (used in index.js)
+ * This plugin fixes unexpected JSDoc behavior that prevents us from using types that start with an at-sign (@).
3
+ * JSDoc doesn't see "{@" as a valid type expression, probably as there's also {@link ...}.
4
*/
-
5
-const IMPORT_PATTERN = /{(?:typeof )?import\(["'][^"']*["']\)[ .|}><,)=#\n]/;
6
7
exports.handlers = {
8
jsdocCommentFound: function(e) {
9
- if (IMPORT_PATTERN.test(e.comment)) {
10
- e.comment = "";
11
- }
+ e.comment = e.comment.replace(/{@ui5\//g, "{ @ui5/");
12
}
13
};
0 commit comments