feat(website): add support for function overloads (#8474)

Co-authored-by: Noel <buechler.noel@outlook.com>
This commit is contained in:
Suneet Tipirneni
2022-08-13 14:14:23 -04:00
committed by GitHub
parent 8e69efde04
commit fd4844ddb9
10 changed files with 114 additions and 39 deletions

View File

@@ -9,7 +9,7 @@ export interface FunctionProps {
export function Function({ data }: FunctionProps) {
return (
<DocContainer
name={data.name}
name={`${data.name}${data.overloadIndex ? ` (${data.overloadIndex})` : ''}`}
kind={data.kind}
excerpt={data.excerpt}
summary={data.summary}