File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed
output/themes/default/partials Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 11/* eslint-disable no-console */
22import { join } from "node:path" ;
33import 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" ;
59import type { SerializerComponent } from "../serialization/components.js" ;
610import type { JSONOutput } from "../serialization/index.js" ;
711
@@ -19,7 +23,7 @@ const serializer: SerializerComponent<SomeReflection> = {
1923 delete obj . categories ;
2024 delete obj . readme ;
2125 delete obj . content ;
22- delete obj . kind ;
26+ obj . kind = ReflectionKind [ obj . kind ] ;
2327 delete obj . flags ;
2428 delete obj . defaultValue ;
2529 delete obj . symbolIdMap ;
Original file line number Diff line number Diff line change @@ -334,8 +334,11 @@ function renderingChildIsUseful(refl: DeclarationReflection) {
334334 // in the default theme, so we'll make the assumption that those properties ought to always
335335 // be rendered.
336336 // 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+ ) {
339342 return true ;
340343 }
341344
You can’t perform that action at this time.
0 commit comments