From cbbbfb98238931b15490d780f32448e110b7deed Mon Sep 17 00:00:00 2001 From: brynpttrsn Date: Thu, 30 Nov 2023 16:43:43 -0500 Subject: [PATCH] fix(website): serialize methods with overload index (#10005) fix: add overload index to methods --- apps/website/src/components/documentation/util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/website/src/components/documentation/util.ts b/apps/website/src/components/documentation/util.ts index 6e2ebfbdf..165972f2d 100644 --- a/apps/website/src/components/documentation/util.ts +++ b/apps/website/src/components/documentation/util.ts @@ -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, }; } });