mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 00:53:31 +01:00
fix(scripts): accessing tsComment
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user