Merge pull request #14373 from DLehenbauer/fixSpreadUsage
Fix TypeError when JSDoc.tags is undefined
This commit is contained in:
commit
97965574ed
|
@ -1554,7 +1554,10 @@ namespace ts {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
result.push(...filter((doc as JSDoc).tags, tag => tag.kind === kind));
|
const tags = (doc as JSDoc).tags;
|
||||||
|
if (tags) {
|
||||||
|
result.push(...filter(tags, tag => tag.kind === kind));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
|
Loading…
Reference in a new issue