mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix: handle older generated docs better
This commit is contained in:
@@ -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 ?? '';
|
||||
|
||||
Reference in New Issue
Block a user