We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This works:
/** * @type {import(./types).CustomType} */ let v1 = "something"
However, this doesn't:
/** * @type {import(@someNamespace/package).CustomType} */ let v1 = "something"
The problem is this line https://github.com/alexprey/sveltedoc-parser/blob/dev/lib/utils.js#L7 That regex fails because of the second @ symbol on that line.
@
The text was updated successfully, but these errors were encountered:
A possible fix is:
const parsedText = text.split(/\n/) .map((line) => { return line.trim() .replace(/^\/\*+/, '').trim() .replace(/\s*\*+\/$/, '').trim() + .replace(/import\((\s*)(['|"])\@/, "import($1$2").trim() .replace(/^\s*\*/, '').trim(); }) .join('\n') .trim();
Not sure, how open you are to that
Sorry, something went wrong.
KatChaotic
No branches or pull requests
This works:
However, this doesn't:
The problem is this line https://github.com/alexprey/sveltedoc-parser/blob/dev/lib/utils.js#L7
That regex fails because of the second
@
symbol on that line.The text was updated successfully, but these errors were encountered: