File tree 2 files changed +11
-4
lines changed
output/themes/default/partials
2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 1
1
/* eslint-disable no-console */
2
2
import { join } from "node:path" ;
3
3
import type { Application } from "../application.js" ;
4
- import { Reflection , type SomeReflection } from "../models/index.js" ;
4
+ import {
5
+ Reflection ,
6
+ ReflectionKind ,
7
+ type SomeReflection ,
8
+ } from "../models/index.js" ;
5
9
import type { SerializerComponent } from "../serialization/components.js" ;
6
10
import type { JSONOutput } from "../serialization/index.js" ;
7
11
@@ -19,7 +23,7 @@ const serializer: SerializerComponent<SomeReflection> = {
19
23
delete obj . categories ;
20
24
delete obj . readme ;
21
25
delete obj . content ;
22
- delete obj . kind ;
26
+ obj . kind = ReflectionKind [ obj . kind ] ;
23
27
delete obj . flags ;
24
28
delete obj . defaultValue ;
25
29
delete obj . symbolIdMap ;
Original file line number Diff line number Diff line change @@ -334,8 +334,11 @@ function renderingChildIsUseful(refl: DeclarationReflection) {
334
334
// in the default theme, so we'll make the assumption that those properties ought to always
335
335
// be rendered.
336
336
// This should be kept in sync with the DefaultTheme.applyAnchorUrl function.
337
- // We know refl.kind == TypeLiteral already here
338
- if ( refl . parent ?. kindOf ( ReflectionKind . SomeExport ) && refl . type ?. type === "reflection" ) {
337
+ if (
338
+ refl . kindOf ( ReflectionKind . TypeLiteral ) &&
339
+ refl . parent ?. kindOf ( ReflectionKind . SomeExport ) &&
340
+ ( refl . parent as DeclarationReflection ) . type ?. type === "reflection"
341
+ ) {
339
342
return true ;
340
343
}
341
344
You can’t perform that action at this time.
0 commit comments