diff options
| author | ST-DDT <[email protected]> | 2022-03-07 20:37:13 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-03-07 20:37:13 +0100 |
| commit | c115056e04d1e42f97c8d77daed3d9056c375953 (patch) | |
| tree | 4d7e06fd659e8b218e9592cd1c938e13c56a95da /scripts/apidoc/moduleMethods.ts | |
| parent | 3c82057973146801336a81a710964d5816735732 (diff) | |
| download | faker-c115056e04d1e42f97c8d77daed3d9056c375953.tar.xz faker-c115056e04d1e42f97c8d77daed3d9056c375953.zip | |
docs: display correct signature (#596)
Diffstat (limited to 'scripts/apidoc/moduleMethods.ts')
| -rw-r--r-- | scripts/apidoc/moduleMethods.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/apidoc/moduleMethods.ts b/scripts/apidoc/moduleMethods.ts index 89c42a33..7b090d13 100644 --- a/scripts/apidoc/moduleMethods.ts +++ b/scripts/apidoc/moduleMethods.ts @@ -50,7 +50,8 @@ function processModuleMethod(module: TypeDoc.DeclarationReflection): PageIndex { )) { const methodName = method.name; console.debug(`- ${methodName}`); - const signature = method.signatures[0]; + const signatures = method.signatures; + const signature = signatures[signatures.length - 1]; methods.push(analyzeSignature(signature, lowerModuleName, methodName)); } |
