fix: handle older generated docs better

This commit is contained in:
iCrawl
2023-11-08 12:30:32 +01:00
parent fffe70a039
commit 2bda883a0f
6 changed files with 28 additions and 13 deletions

View File

@@ -481,7 +481,8 @@ export function ApiItemContainerMixin<TBaseClass extends IApiItemConstructor>(
const mappedTypeParameters: Map<string, string> = new Map();
if (
(apiItem.kind === ApiItemKind.Class || apiItem.kind === ApiItemKind.Interface) &&
next.item.kind === ApiItemKind.Class
next.item.kind === ApiItemKind.Class &&
extendsType.typeParameters?.length
) {
for (const [index, typeParameter] of extendsType.typeParameters.entries()) {
const key = (apiItem as ApiClass | ApiInterface).typeParameters[index]?.name ?? '';