File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -311,6 +311,7 @@ export class DeclarationReflection extends ContainerReflection {
311
311
this . implementedTypes ,
312
312
) ,
313
313
implementedBy : serializer . toObjectsOptional ( this . implementedBy ) ,
314
+ readme : Comment . serializeDisplayParts ( serializer , this . readme ) ,
314
315
} ;
315
316
}
316
317
@@ -320,14 +321,15 @@ export class DeclarationReflection extends ContainerReflection {
320
321
) : void {
321
322
super . fromObject ( de , obj ) ;
322
323
324
+ if ( obj . readme ) {
325
+ this . readme = Comment . deserializeDisplayParts ( de , obj . readme ) ;
326
+ }
327
+
323
328
// This happens when merging multiple projects together.
324
329
// If updating this, also check ProjectReflection.fromObject.
325
330
if ( obj . variant === "project" ) {
326
331
this . kind = ReflectionKind . Module ;
327
332
this . packageVersion = obj . packageVersion ;
328
- if ( obj . readme ) {
329
- this . readme = Comment . deserializeDisplayParts ( de , obj . readme ) ;
330
- }
331
333
332
334
de . defer ( ( ) => {
333
335
for ( const [ id , sid ] of Object . entries ( obj . symbolIdMap || { } ) ) {
Original file line number Diff line number Diff line change @@ -177,6 +177,7 @@ export interface DeclarationReflection
177
177
| "getSignature"
178
178
| "setSignature"
179
179
| "typeParameters"
180
+ | "readme"
180
181
> { }
181
182
182
183
/** @category Reflections */
You can’t perform that action at this time.
0 commit comments