We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ad2db74 + b80a982 commit e0f97c8Copy full SHA for e0f97c8
sites/kit.svelte.dev/scripts/types/index.js
@@ -65,7 +65,14 @@ async function get_types(code, statements) {
65
// @ts-ignore
66
const jsDoc = statement.jsDoc[0];
67
68
- comment = jsDoc.comment;
+ // `@link` JSDoc tags (and maybe others?) turn this property into an array, which we need to join manually
69
+ if (Array.isArray(jsDoc.comment)) {
70
+ comment = jsDoc.comment
71
+ .map(({ name, text }) => (name ? `\`${name.escapedText}\`` : text))
72
+ .join('');
73
+ } else {
74
+ comment = jsDoc.comment;
75
+ }
76
77
if (jsDoc?.tags?.[0]?.tagName?.escapedText === 'deprecated') {
78
deprecated_notice = jsDoc.tags[0].comment;
0 commit comments