Add support for nested methods within type declarations. Make sure they render without a callPath.
This commit is contained in:
@@ -14,6 +14,7 @@ import {
|
||||
Type,
|
||||
TypeDocNode,
|
||||
TypeDocType,
|
||||
TypeDocTypes,
|
||||
TypeParameter,
|
||||
TypescriptFunction,
|
||||
TypescriptMethod,
|
||||
@@ -221,9 +222,16 @@ export const typeDocUtils = {
|
||||
|
||||
const childrenIfExist = !_.isUndefined(entity.children)
|
||||
? _.map(entity.children, (child: TypeDocNode) => {
|
||||
const childTypeIfExists = !_.isUndefined(child.type)
|
||||
let childTypeIfExists = !_.isUndefined(child.type)
|
||||
? typeDocUtils._convertType(child.type, sections, sectionName, docId)
|
||||
: undefined;
|
||||
if (child.kindString === KindString.Method) {
|
||||
childTypeIfExists = {
|
||||
name: child.name,
|
||||
typeDocType: TypeDocTypes.Reflection,
|
||||
method: this._convertMethod(child, isConstructor, sections, sectionName, docId),
|
||||
};
|
||||
}
|
||||
const c: CustomTypeChild = {
|
||||
name: child.name,
|
||||
type: childTypeIfExists,
|
||||
|
Reference in New Issue
Block a user