mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix(website): serialize methods with overload index (#10005)
fix: add overload index to methods
This commit is contained in:
@@ -146,6 +146,7 @@ export function serializeMembers(clazz: ApiItemContainerMixin): TableOfContentsS
|
||||
return {
|
||||
kind: member.kind as 'Method' | 'MethodSignature',
|
||||
name: member.displayName,
|
||||
overloadIndex: (member as ApiMethod | ApiMethodSignature).overloadIndex,
|
||||
};
|
||||
} else if (member.kind === 'Event') {
|
||||
return {
|
||||
@@ -156,7 +157,6 @@ export function serializeMembers(clazz: ApiItemContainerMixin): TableOfContentsS
|
||||
return {
|
||||
kind: member.kind as 'Property' | 'PropertySignature',
|
||||
name: member.displayName,
|
||||
overloadIndex: (member as ApiMethod | ApiMethodSignature).overloadIndex,
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user