Skip to content

Commit 3895e88

Browse files
committed
fix: Collect project anyway, not just its children
Issue-2: #2
1 parent b1e5dd4 commit 3895e88

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/mkdocstrings_handlers/typescript/handler.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,9 @@ def collect(self, identifier: str, config: MutableMapping[str, Any]) -> Collecto
122122
raise CollectionError("Not loading modules during fallback")
123123
if identifier not in self._collected:
124124
data = load_typedoc(["typedoc"])
125+
self._collected[data.name] = data
125126
if data.kind is ReflectionKind.PROJECT:
126127
self._collected.update({module.name: module for module in data.children})
127-
else:
128-
self._collected[data.name] = data
129128
logger.debug(f"Collected {', '.join(self._collected.keys())}")
130129
if identifier in self._collected:
131130
for child in self._collected[identifier].children:

0 commit comments

Comments
 (0)