summaryrefslogtreecommitdiffhomepage
path: root/typedoc-plugin-external-module-name
diff options
context:
space:
mode:
Diffstat (limited to 'typedoc-plugin-external-module-name')
-rw-r--r--typedoc-plugin-external-module-name/index.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/typedoc-plugin-external-module-name/index.js b/typedoc-plugin-external-module-name/index.js
index d4f5080..d59e36c 100644
--- a/typedoc-plugin-external-module-name/index.js
+++ b/typedoc-plugin-external-module-name/index.js
@@ -10,8 +10,10 @@ exports.load = function (host) {
/** @type {import("typedoc").ProjectReflection} */
const project = context.project;
- for (const mod of project.children.filter(child => child.kind === ReflectionKind.Module)) {
- const tag = mod.comment?.getTag('module');
+ for (const mod of (project.children || []).filter(
+ child => child.kind === ReflectionKind.Module,
+ )) {
+ const tag = mod.comment ? mod.comment.getTag('module') : void 0;
if (!tag) continue;
mod.name = tag.text;
mod.comment.removeTags('module');