diff options
| author | Shinigami <[email protected]> | 2022-01-29 18:53:43 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-01-29 18:53:43 +0100 |
| commit | 86beb8317d213f3a47edb46e36678adeff01c1b1 (patch) | |
| tree | d0ac39226a2d29aee2e77968b1edfc5c69c5ab3f /scripts/apidoc.ts | |
| parent | 8dfd6ece95b890cdcd14dcde29074ab74475c70e (diff) | |
| download | faker-86beb8317d213f3a47edb46e36678adeff01c1b1.tar.xz faker-86beb8317d213f3a47edb46e36678adeff01c1b1.zip | |
chore: setup improved linting (#151)
Diffstat (limited to 'scripts/apidoc.ts')
| -rw-r--r-- | scripts/apidoc.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/apidoc.ts b/scripts/apidoc.ts index e2b0d36a..2d180095 100644 --- a/scripts/apidoc.ts +++ b/scripts/apidoc.ts @@ -115,7 +115,7 @@ async function build(): Promise<void> { const methods = module.getChildrenByKind(TypeDoc.ReflectionKind.Method); // Generate method section - for (let method of methods) { + for (const method of methods) { const methodName = method.name; const prettyMethodName = methodName.substring(0, 1).toUpperCase() + @@ -228,7 +228,7 @@ async function build(): Promise<void> { ); } } - let examples = + const examples = signature?.comment?.tags .filter((tag) => tag.tagName === 'example') .map((tag) => tag.text.trimEnd()) || []; |
