mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 01:23:31 +01:00
feat(website): show inherited members (#8526)
* feat(website): show inherited members * fix: use passHref
This commit is contained in:
@@ -23,14 +23,29 @@ export class DocInterface extends TypeParameterMixin(DocItem<ApiInterface>) {
|
||||
excerpt.excerpt.spannedTokens.map((token) => genToken(this.model, token)),
|
||||
);
|
||||
|
||||
for (const member of item.members) {
|
||||
for (const member of item.findMembersWithInheritance().items) {
|
||||
switch (member.kind) {
|
||||
case ApiItemKind.MethodSignature:
|
||||
this.methods.push(new DocMethodSignature(this.model, member as ApiMethodSignature));
|
||||
case ApiItemKind.MethodSignature: {
|
||||
const method = member as ApiMethodSignature;
|
||||
|
||||
if (method.parent?.containerKey !== this.containerKey) {
|
||||
this.methods.push(new DocMethodSignature(this.model, method, true));
|
||||
break;
|
||||
}
|
||||
this.methods.push(new DocMethodSignature(this.model, method));
|
||||
break;
|
||||
case ApiItemKind.PropertySignature:
|
||||
this.properties.push(new DocProperty(this.model, member as ApiPropertySignature));
|
||||
}
|
||||
case ApiItemKind.PropertySignature: {
|
||||
const property = member as ApiPropertySignature;
|
||||
|
||||
if (property.parent?.containerKey !== this.containerKey) {
|
||||
this.properties.push(new DocProperty(this.model, property, true));
|
||||
break;
|
||||
}
|
||||
|
||||
this.properties.push(new DocProperty(this.model, property));
|
||||
break;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user