fix(scripts): accessing tsComment

This commit is contained in:
iCrawl
2023-03-25 14:02:40 +01:00
parent abd6ae9fc8
commit d8d5f31d39
22 changed files with 225 additions and 172 deletions

View File

@@ -64,7 +64,7 @@ export function addPackageToModel(model: ApiModel, data: any) {
* @param item - The API item to resolve the summary text for.
*/
export function tryResolveSummaryText(item: ApiDeclaredItem): string | null {
if (!item.tsdocComment) {
if (!item?.tsdocComment) {
return null;
}