diff options
| author | Shinigami <[email protected]> | 2022-09-09 03:28:46 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-09-08 19:28:46 +0000 |
| commit | 5ae93a7f51d48b2f2f4999f5cfbd2b4a4a5bb272 (patch) | |
| tree | d2ed1ac59f5017e90880b4ae4b5ac024b4ac5f7b /scripts/apidoc/moduleMethods.ts | |
| parent | 925db3a0194fba6d5984203a69747265848227ef (diff) | |
| download | faker-5ae93a7f51d48b2f2f4999f5cfbd2b4a4a5bb272.tar.xz faker-5ae93a7f51d48b2f2f4999f5cfbd2b4a4a5bb272.zip | |
docs: fix api generation (#1355)
Diffstat (limited to 'scripts/apidoc/moduleMethods.ts')
| -rw-r--r-- | scripts/apidoc/moduleMethods.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/apidoc/moduleMethods.ts b/scripts/apidoc/moduleMethods.ts index 9f0a9bb8..08da17ef 100644 --- a/scripts/apidoc/moduleMethods.ts +++ b/scripts/apidoc/moduleMethods.ts @@ -16,9 +16,11 @@ export function selectApiModules( project: ProjectReflection ): DeclarationReflection[] { return project - .getChildrenByKind(ReflectionKind.Module)[0] .getChildrenByKind(ReflectionKind.Class) - .filter((module) => faker[extractModuleFieldName(module)] != null); + .filter((module) => faker[extractModuleFieldName(module)] != null) + .filter( + (module) => module.name !== 'FakeModule' && module.name !== 'UniqueModule' + ); } /** |
