aboutsummaryrefslogtreecommitdiff
path: root/scripts/apidoc/directMethods.ts
diff options
context:
space:
mode:
authorST-DDT <[email protected]>2022-03-07 20:37:13 +0100
committerGitHub <[email protected]>2022-03-07 20:37:13 +0100
commitc115056e04d1e42f97c8d77daed3d9056c375953 (patch)
tree4d7e06fd659e8b218e9592cd1c938e13c56a95da /scripts/apidoc/directMethods.ts
parent3c82057973146801336a81a710964d5816735732 (diff)
downloadfaker-c115056e04d1e42f97c8d77daed3d9056c375953.tar.xz
faker-c115056e04d1e42f97c8d77daed3d9056c375953.zip
docs: display correct signature (#596)
Diffstat (limited to 'scripts/apidoc/directMethods.ts')
-rw-r--r--scripts/apidoc/directMethods.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/apidoc/directMethods.ts b/scripts/apidoc/directMethods.ts
index 616226ee..159ad848 100644
--- a/scripts/apidoc/directMethods.ts
+++ b/scripts/apidoc/directMethods.ts
@@ -41,8 +41,9 @@ export function processDirectMethod(
methodName.substring(0, 1).toUpperCase() + methodName.substring(1);
console.log(`Processing Direct: ${upperMethodName}`);
- const signature = (direct.type as TypeDoc.ReflectionType).declaration
- .signatures[0];
+ const signatures = (direct.type as TypeDoc.ReflectionType).declaration
+ .signatures;
+ const signature = signatures[signatures.length - 1];
writeApiDocsDirectPage(methodName);
writeApiDocsData(methodName, [