Skip to content

typescript project report error,which is normal after elimination #423

@midnight-ht

Description

@midnight-ht

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch jsdoc-vuejs@3.0.9 for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/jsdoc-vuejs/index.js b/node_modules/jsdoc-vuejs/index.js
index 2205f33..30b7019 100644
--- a/node_modules/jsdoc-vuejs/index.js
+++ b/node_modules/jsdoc-vuejs/index.js
@@ -17,7 +17,7 @@ exports.handlers = {
   beforeParse(e) {
     if (/\.vue$/.test(e.filename)) {
       exportDefaultLines[e.filename] = seekExportDefaultLine(e.source, e.filename);
-      e.source = extractVueScript(e.filename);
+      e.source = extractVueScript(e.filename).replace(/\:\s(string|number|boolean|Undefined|null|Array|object|any|void)/ig, '');
     }
   },
   newDoclet(e) {

This issue body was partially generated by patch-package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions