Skip to content

Commit e229822

Browse files
Gerrit0yGuy
andcommitted
Fix nested deserialization of documents
Co-Authored-By: Sebastian Mueller <[email protected]>
1 parent 1ef4ff3 commit e229822

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ title: Changelog
1414
- Improved compatibility with CommonMark's link parsing, #2959.
1515
- Classes, variables, and functions exported with `export { type X }` are now detected and converted as interfaces/type aliases, #2962.
1616
- Improved warning messaging for links to symbols which were resolved, but the symbols were not included in the documentation, #2967.
17+
- Fixed an issue preventing nested documents from being deserialized from TypeDoc's JSON output or used in packages mode, #2969.
18+
19+
### Thanks!
20+
21+
- @yGuy
1722

1823
## v0.28.5 (2025-05-26)
1924

src/lib/models/DocumentReflection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,6 @@ export class DocumentReflection extends Reflection {
7979
this.content = Comment.deserializeDisplayParts(de, obj.content);
8080
this.frontmatter = obj.frontmatter;
8181
this.relevanceBoost = obj.relevanceBoost;
82-
this.children = de.reviveMany(obj.children, (obj) => de.reflectionBuilders.document(this, obj));
82+
this.children = de.reviveMany(obj.children, (obj) => de.constructReflection(obj));
8383
}
8484
}

0 commit comments

Comments
 (0)