mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-19 16:13:06 +00:00
fix: fix inherited properties not working correctly
This commit is contained in:
@@ -275,7 +275,9 @@ function handleDeclarationReflection(decl: DeclarationReflection,
|
||||
}
|
||||
} else if (decl.type instanceof Type) { // if the object is a type, so we are dealing with a PROPERTY
|
||||
// get inherited tags
|
||||
return handleType(decl.type, new Map(generics), path, topTypeName, getCommentTags(decl, path, topTypeName));
|
||||
const tags = (inheritedTags ?? []).length > 0 ? inheritedTags! : getCommentTags(decl, path, topTypeName);
|
||||
|
||||
return handleType(decl.type, new Map(generics), path, topTypeName, tags);
|
||||
} else if (decl.kindString === 'Enumeration member') {
|
||||
return readTypeTags(typeof decl.defaultValue, path, topTypeName,
|
||||
getCommentTags(decl, path, topTypeName, inheritedTags));
|
||||
|
||||
Reference in New Issue
Block a user