@depup/typedoc 0.28.17-depup.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +34 -0
- package/bin/package.json +3 -0
- package/bin/typedoc +24 -0
- package/changes.json +22 -0
- package/dist/browser-locales/de.d.ts +2 -0
- package/dist/browser-locales/de.js +62 -0
- package/dist/browser-locales/en.d.ts +2 -0
- package/dist/browser-locales/en.js +62 -0
- package/dist/browser-locales/ja.d.ts +2 -0
- package/dist/browser-locales/ja.js +62 -0
- package/dist/browser-locales/ko.d.ts +2 -0
- package/dist/browser-locales/ko.js +62 -0
- package/dist/browser-locales/zh.d.ts +2 -0
- package/dist/browser-locales/zh.js +62 -0
- package/dist/browser-utils.d.ts +3 -0
- package/dist/browser-utils.js +3 -0
- package/dist/index.d.ts +49 -0
- package/dist/index.js +46 -0
- package/dist/lib/application-events.d.ts +5 -0
- package/dist/lib/application-events.js +5 -0
- package/dist/lib/application.d.ts +195 -0
- package/dist/lib/application.js +715 -0
- package/dist/lib/cli.d.ts +1 -0
- package/dist/lib/cli.js +111 -0
- package/dist/lib/converter/comments/blockLexer.d.ts +4 -0
- package/dist/lib/converter/comments/blockLexer.js +391 -0
- package/dist/lib/converter/comments/declarationReferenceResolver.d.ts +3 -0
- package/dist/lib/converter/comments/declarationReferenceResolver.js +218 -0
- package/dist/lib/converter/comments/discovery.d.ts +14 -0
- package/dist/lib/converter/comments/discovery.js +563 -0
- package/dist/lib/converter/comments/index.d.ts +37 -0
- package/dist/lib/converter/comments/index.js +241 -0
- package/dist/lib/converter/comments/lexer.d.ts +17 -0
- package/dist/lib/converter/comments/lexer.js +10 -0
- package/dist/lib/converter/comments/lineLexer.d.ts +3 -0
- package/dist/lib/converter/comments/lineLexer.js +279 -0
- package/dist/lib/converter/comments/linkResolver.d.ts +20 -0
- package/dist/lib/converter/comments/linkResolver.js +186 -0
- package/dist/lib/converter/comments/parser.d.ts +18 -0
- package/dist/lib/converter/comments/parser.js +538 -0
- package/dist/lib/converter/comments/rawLexer.d.ts +8 -0
- package/dist/lib/converter/comments/rawLexer.js +218 -0
- package/dist/lib/converter/comments/tagName.d.ts +8 -0
- package/dist/lib/converter/comments/tagName.js +58 -0
- package/dist/lib/converter/comments/textParser.d.ts +33 -0
- package/dist/lib/converter/comments/textParser.js +372 -0
- package/dist/lib/converter/components.d.ts +4 -0
- package/dist/lib/converter/components.js +3 -0
- package/dist/lib/converter/context.d.ts +101 -0
- package/dist/lib/converter/context.js +311 -0
- package/dist/lib/converter/convert-expression.d.ts +9 -0
- package/dist/lib/converter/convert-expression.js +58 -0
- package/dist/lib/converter/converter-events.d.ts +13 -0
- package/dist/lib/converter/converter-events.js +13 -0
- package/dist/lib/converter/converter.d.ts +238 -0
- package/dist/lib/converter/converter.js +705 -0
- package/dist/lib/converter/factories/index-signature.d.ts +3 -0
- package/dist/lib/converter/factories/index-signature.js +50 -0
- package/dist/lib/converter/factories/signature.d.ts +14 -0
- package/dist/lib/converter/factories/signature.js +353 -0
- package/dist/lib/converter/factories/symbol-id.d.ts +3 -0
- package/dist/lib/converter/factories/symbol-id.js +47 -0
- package/dist/lib/converter/index.d.ts +5 -0
- package/dist/lib/converter/index.js +3 -0
- package/dist/lib/converter/jsdoc.d.ts +4 -0
- package/dist/lib/converter/jsdoc.js +135 -0
- package/dist/lib/converter/plugins/CategoryPlugin.d.ts +48 -0
- package/dist/lib/converter/plugins/CategoryPlugin.js +278 -0
- package/dist/lib/converter/plugins/CommentPlugin.d.ts +128 -0
- package/dist/lib/converter/plugins/CommentPlugin.js +770 -0
- package/dist/lib/converter/plugins/GroupPlugin.d.ts +48 -0
- package/dist/lib/converter/plugins/GroupPlugin.js +281 -0
- package/dist/lib/converter/plugins/ImplementsPlugin.d.ts +42 -0
- package/dist/lib/converter/plugins/ImplementsPlugin.js +438 -0
- package/dist/lib/converter/plugins/IncludePlugin.d.ts +14 -0
- package/dist/lib/converter/plugins/IncludePlugin.js +254 -0
- package/dist/lib/converter/plugins/InheritDocPlugin.d.ts +32 -0
- package/dist/lib/converter/plugins/InheritDocPlugin.js +220 -0
- package/dist/lib/converter/plugins/LinkResolverPlugin.d.ts +13 -0
- package/dist/lib/converter/plugins/LinkResolverPlugin.js +88 -0
- package/dist/lib/converter/plugins/MergeModuleWithPlugin.d.ts +12 -0
- package/dist/lib/converter/plugins/MergeModuleWithPlugin.js +50 -0
- package/dist/lib/converter/plugins/PackagePlugin.d.ts +31 -0
- package/dist/lib/converter/plugins/PackagePlugin.js +188 -0
- package/dist/lib/converter/plugins/SourcePlugin.d.ts +36 -0
- package/dist/lib/converter/plugins/SourcePlugin.js +215 -0
- package/dist/lib/converter/plugins/TypePlugin.d.ts +16 -0
- package/dist/lib/converter/plugins/TypePlugin.js +108 -0
- package/dist/lib/converter/plugins/index.d.ts +10 -0
- package/dist/lib/converter/plugins/index.js +10 -0
- package/dist/lib/converter/symbols.d.ts +3 -0
- package/dist/lib/converter/symbols.js +861 -0
- package/dist/lib/converter/types.d.ts +10 -0
- package/dist/lib/converter/types.js +833 -0
- package/dist/lib/converter/utils/nodes.d.ts +7 -0
- package/dist/lib/converter/utils/nodes.js +26 -0
- package/dist/lib/converter/utils/reflections.d.ts +2 -0
- package/dist/lib/converter/utils/reflections.js +17 -0
- package/dist/lib/converter/utils/repository.d.ts +96 -0
- package/dist/lib/converter/utils/repository.js +295 -0
- package/dist/lib/converter/utils/symbols.d.ts +2 -0
- package/dist/lib/converter/utils/symbols.js +12 -0
- package/dist/lib/debug/index.d.ts +2 -0
- package/dist/lib/debug/index.js +2 -0
- package/dist/lib/debug/reflectionLifetimes.d.ts +3 -0
- package/dist/lib/debug/reflectionLifetimes.js +27 -0
- package/dist/lib/debug/rendererUrls.d.ts +6 -0
- package/dist/lib/debug/rendererUrls.js +68 -0
- package/dist/lib/internationalization/index.d.ts +7 -0
- package/dist/lib/internationalization/index.js +7 -0
- package/dist/lib/internationalization/internationalization.d.ts +65 -0
- package/dist/lib/internationalization/internationalization.js +64 -0
- package/dist/lib/internationalization/locale-utils.cjs +8 -0
- package/dist/lib/internationalization/locale-utils.d.cts +8 -0
- package/dist/lib/internationalization/locales/de.cjs +401 -0
- package/dist/lib/internationalization/locales/de.d.cts +368 -0
- package/dist/lib/internationalization/locales/en.cjs +411 -0
- package/dist/lib/internationalization/locales/en.d.cts +380 -0
- package/dist/lib/internationalization/locales/ja.cjs +320 -0
- package/dist/lib/internationalization/locales/ja.d.cts +307 -0
- package/dist/lib/internationalization/locales/ko.cjs +233 -0
- package/dist/lib/internationalization/locales/ko.d.cts +221 -0
- package/dist/lib/internationalization/locales/zh.cjs +488 -0
- package/dist/lib/internationalization/locales/zh.d.cts +452 -0
- package/dist/lib/internationalization/translatable.d.ts +21 -0
- package/dist/lib/internationalization/translatable.js +8 -0
- package/dist/lib/models/Comment.d.ts +241 -0
- package/dist/lib/models/Comment.js +534 -0
- package/dist/lib/models/ContainerReflection.d.ts +56 -0
- package/dist/lib/models/ContainerReflection.js +159 -0
- package/dist/lib/models/DeclarationReflection.d.ts +149 -0
- package/dist/lib/models/DeclarationReflection.js +287 -0
- package/dist/lib/models/DocumentReflection.d.ts +32 -0
- package/dist/lib/models/DocumentReflection.js +66 -0
- package/dist/lib/models/FileRegistry.d.ts +46 -0
- package/dist/lib/models/FileRegistry.js +133 -0
- package/dist/lib/models/ParameterReflection.d.ts +21 -0
- package/dist/lib/models/ParameterReflection.js +39 -0
- package/dist/lib/models/ProjectReflection.d.ts +112 -0
- package/dist/lib/models/ProjectReflection.js +417 -0
- package/dist/lib/models/ReferenceReflection.d.ts +49 -0
- package/dist/lib/models/ReferenceReflection.js +85 -0
- package/dist/lib/models/Reflection.d.ts +229 -0
- package/dist/lib/models/Reflection.js +495 -0
- package/dist/lib/models/ReflectionCategory.d.ts +31 -0
- package/dist/lib/models/ReflectionCategory.js +56 -0
- package/dist/lib/models/ReflectionGroup.d.ts +38 -0
- package/dist/lib/models/ReflectionGroup.js +72 -0
- package/dist/lib/models/ReflectionSymbolId.d.ts +63 -0
- package/dist/lib/models/ReflectionSymbolId.js +85 -0
- package/dist/lib/models/SignatureReflection.d.ts +50 -0
- package/dist/lib/models/SignatureReflection.js +96 -0
- package/dist/lib/models/SourceReference.d.ts +33 -0
- package/dist/lib/models/SourceReference.js +50 -0
- package/dist/lib/models/TypeParameterReflection.d.ts +30 -0
- package/dist/lib/models/TypeParameterReflection.js +45 -0
- package/dist/lib/models/index.d.ts +19 -0
- package/dist/lib/models/index.js +19 -0
- package/dist/lib/models/kind.d.ts +84 -0
- package/dist/lib/models/kind.js +231 -0
- package/dist/lib/models/types.d.ts +553 -0
- package/dist/lib/models/types.js +1296 -0
- package/dist/lib/models/utils.d.ts +1 -0
- package/dist/lib/models/utils.js +26 -0
- package/dist/lib/models/variant.d.ts +21 -0
- package/dist/lib/models/variant.js +1 -0
- package/dist/lib/output/components.d.ts +53 -0
- package/dist/lib/output/components.js +133 -0
- package/dist/lib/output/events.d.ts +175 -0
- package/dist/lib/output/events.js +195 -0
- package/dist/lib/output/formatter.d.ts +88 -0
- package/dist/lib/output/formatter.js +660 -0
- package/dist/lib/output/index.d.ts +9 -0
- package/dist/lib/output/index.js +7 -0
- package/dist/lib/output/output.d.ts +14 -0
- package/dist/lib/output/output.js +92 -0
- package/dist/lib/output/plugins/AssetsPlugin.d.ts +20 -0
- package/dist/lib/output/plugins/AssetsPlugin.js +160 -0
- package/dist/lib/output/plugins/HierarchyPlugin.d.ts +7 -0
- package/dist/lib/output/plugins/HierarchyPlugin.js +65 -0
- package/dist/lib/output/plugins/IconsPlugin.d.ts +12 -0
- package/dist/lib/output/plugins/IconsPlugin.js +54 -0
- package/dist/lib/output/plugins/JavascriptIndexPlugin.d.ts +22 -0
- package/dist/lib/output/plugins/JavascriptIndexPlugin.js +222 -0
- package/dist/lib/output/plugins/NavigationPlugin.d.ts +7 -0
- package/dist/lib/output/plugins/NavigationPlugin.js +23 -0
- package/dist/lib/output/plugins/SitemapPlugin.d.ts +8 -0
- package/dist/lib/output/plugins/SitemapPlugin.js +82 -0
- package/dist/lib/output/plugins/index.d.ts +7 -0
- package/dist/lib/output/plugins/index.js +7 -0
- package/dist/lib/output/renderer.d.ts +227 -0
- package/dist/lib/output/renderer.js +387 -0
- package/dist/lib/output/router.d.ts +187 -0
- package/dist/lib/output/router.js +520 -0
- package/dist/lib/output/theme.d.ts +22 -0
- package/dist/lib/output/theme.js +17 -0
- package/dist/lib/output/themes/MarkedPlugin.d.ts +62 -0
- package/dist/lib/output/themes/MarkedPlugin.js +461 -0
- package/dist/lib/output/themes/default/DefaultTheme.d.ts +72 -0
- package/dist/lib/output/themes/default/DefaultTheme.js +367 -0
- package/dist/lib/output/themes/default/DefaultThemeRenderContext.d.ts +105 -0
- package/dist/lib/output/themes/default/DefaultThemeRenderContext.js +151 -0
- package/dist/lib/output/themes/default/Slugger.d.ts +13 -0
- package/dist/lib/output/themes/default/Slugger.js +60 -0
- package/dist/lib/output/themes/default/layouts/default.d.ts +6 -0
- package/dist/lib/output/themes/default/layouts/default.js +89 -0
- package/dist/lib/output/themes/default/partials/anchor-icon.d.ts +5 -0
- package/dist/lib/output/themes/default/partials/anchor-icon.js +9 -0
- package/dist/lib/output/themes/default/partials/breadcrumb.d.ts +4 -0
- package/dist/lib/output/themes/default/partials/breadcrumb.js +11 -0
- package/dist/lib/output/themes/default/partials/comment.d.ts +8 -0
- package/dist/lib/output/themes/default/partials/comment.js +80 -0
- package/dist/lib/output/themes/default/partials/footer.d.ts +3 -0
- package/dist/lib/output/themes/default/partials/footer.js +37 -0
- package/dist/lib/output/themes/default/partials/header.d.ts +5 -0
- package/dist/lib/output/themes/default/partials/header.js +39 -0
- package/dist/lib/output/themes/default/partials/hierarchy.d.ts +4 -0
- package/dist/lib/output/themes/default/partials/hierarchy.js +32 -0
- package/dist/lib/output/themes/default/partials/icon.d.ts +20 -0
- package/dist/lib/output/themes/default/partials/icon.js +101 -0
- package/dist/lib/output/themes/default/partials/index.d.ts +4 -0
- package/dist/lib/output/themes/default/partials/index.js +24 -0
- package/dist/lib/output/themes/default/partials/member.d.ts +4 -0
- package/dist/lib/output/themes/default/partials/member.declaration.d.ts +4 -0
- package/dist/lib/output/themes/default/partials/member.declaration.js +35 -0
- package/dist/lib/output/themes/default/partials/member.getterSetter.d.ts +4 -0
- package/dist/lib/output/themes/default/partials/member.getterSetter.js +12 -0
- package/dist/lib/output/themes/default/partials/member.js +36 -0
- package/dist/lib/output/themes/default/partials/member.signature.body.d.ts +6 -0
- package/dist/lib/output/themes/default/partials/member.signature.body.js +33 -0
- package/dist/lib/output/themes/default/partials/member.signature.title.d.ts +5 -0
- package/dist/lib/output/themes/default/partials/member.signature.title.js +9 -0
- package/dist/lib/output/themes/default/partials/member.signatures.d.ts +4 -0
- package/dist/lib/output/themes/default/partials/member.signatures.js +9 -0
- package/dist/lib/output/themes/default/partials/member.sources.d.ts +4 -0
- package/dist/lib/output/themes/default/partials/member.sources.js +55 -0
- package/dist/lib/output/themes/default/partials/members.d.ts +4 -0
- package/dist/lib/output/themes/default/partials/members.js +17 -0
- package/dist/lib/output/themes/default/partials/moduleReflection.d.ts +5 -0
- package/dist/lib/output/themes/default/partials/moduleReflection.js +68 -0
- package/dist/lib/output/themes/default/partials/navigation.d.ts +10 -0
- package/dist/lib/output/themes/default/partials/navigation.js +144 -0
- package/dist/lib/output/themes/default/partials/reflectionPreview.d.ts +4 -0
- package/dist/lib/output/themes/default/partials/reflectionPreview.js +26 -0
- package/dist/lib/output/themes/default/partials/toolbar.d.ts +5 -0
- package/dist/lib/output/themes/default/partials/toolbar.js +13 -0
- package/dist/lib/output/themes/default/partials/type.d.ts +5 -0
- package/dist/lib/output/themes/default/partials/type.js +9 -0
- package/dist/lib/output/themes/default/partials/typeAndParent.d.ts +4 -0
- package/dist/lib/output/themes/default/partials/typeAndParent.js +28 -0
- package/dist/lib/output/themes/default/partials/typeDetails.d.ts +8 -0
- package/dist/lib/output/themes/default/partials/typeDetails.js +284 -0
- package/dist/lib/output/themes/default/partials/typeParameters.d.ts +4 -0
- package/dist/lib/output/themes/default/partials/typeParameters.js +26 -0
- package/dist/lib/output/themes/default/templates/document.d.ts +5 -0
- package/dist/lib/output/themes/default/templates/document.js +3 -0
- package/dist/lib/output/themes/default/templates/hierarchy.d.ts +5 -0
- package/dist/lib/output/themes/default/templates/hierarchy.js +31 -0
- package/dist/lib/output/themes/default/templates/index.d.ts +5 -0
- package/dist/lib/output/themes/default/templates/index.js +3 -0
- package/dist/lib/output/themes/default/templates/reflection.d.ts +5 -0
- package/dist/lib/output/themes/default/templates/reflection.js +53 -0
- package/dist/lib/output/themes/lib.d.ts +44 -0
- package/dist/lib/output/themes/lib.js +218 -0
- package/dist/lib/serialization/components.d.ts +22 -0
- package/dist/lib/serialization/components.js +1 -0
- package/dist/lib/serialization/deserializer.d.ts +70 -0
- package/dist/lib/serialization/deserializer.js +235 -0
- package/dist/lib/serialization/events.d.ts +17 -0
- package/dist/lib/serialization/events.js +18 -0
- package/dist/lib/serialization/index.d.ts +5 -0
- package/dist/lib/serialization/index.js +4 -0
- package/dist/lib/serialization/schema.d.ts +283 -0
- package/dist/lib/serialization/schema.js +32 -0
- package/dist/lib/serialization/serializer.d.ts +52 -0
- package/dist/lib/serialization/serializer.js +65 -0
- package/dist/lib/utils/ValidatingFileRegistry.d.ts +12 -0
- package/dist/lib/utils/ValidatingFileRegistry.js +52 -0
- package/dist/lib/utils/component.d.ts +38 -0
- package/dist/lib/utils/component.js +41 -0
- package/dist/lib/utils/compress.d.ts +7 -0
- package/dist/lib/utils/compress.js +13 -0
- package/dist/lib/utils/declaration-maps.d.ts +3 -0
- package/dist/lib/utils/declaration-maps.js +51 -0
- package/dist/lib/utils/entry-point.d.ts +50 -0
- package/dist/lib/utils/entry-point.js +330 -0
- package/dist/lib/utils/fs.d.ts +65 -0
- package/dist/lib/utils/fs.js +372 -0
- package/dist/lib/utils/general.d.ts +4 -0
- package/dist/lib/utils/general.js +25 -0
- package/dist/lib/utils/highlighter.d.ts +9 -0
- package/dist/lib/utils/highlighter.js +150 -0
- package/dist/lib/utils/html-entities.d.ts +8926 -0
- package/dist/lib/utils/html-entities.js +2329 -0
- package/dist/lib/utils/html.d.ts +67 -0
- package/dist/lib/utils/html.js +635 -0
- package/dist/lib/utils/index.d.ts +17 -0
- package/dist/lib/utils/index.js +15 -0
- package/dist/lib/utils/loggers.d.ts +10 -0
- package/dist/lib/utils/loggers.js +71 -0
- package/dist/lib/utils/options/declaration.d.ts +514 -0
- package/dist/lib/utils/options/declaration.js +443 -0
- package/dist/lib/utils/options/defaults.d.ts +20 -0
- package/dist/lib/utils/options/defaults.js +104 -0
- package/dist/lib/utils/options/help.d.ts +7 -0
- package/dist/lib/utils/options/help.js +63 -0
- package/dist/lib/utils/options/index.d.ts +6 -0
- package/dist/lib/utils/options/index.js +4 -0
- package/dist/lib/utils/options/options.d.ts +199 -0
- package/dist/lib/utils/options/options.js +273 -0
- package/dist/lib/utils/options/readers/arguments.d.ts +15 -0
- package/dist/lib/utils/options/readers/arguments.js +109 -0
- package/dist/lib/utils/options/readers/index.d.ts +4 -0
- package/dist/lib/utils/options/readers/index.js +4 -0
- package/dist/lib/utils/options/readers/package-json.d.ts +9 -0
- package/dist/lib/utils/options/readers/package-json.js +40 -0
- package/dist/lib/utils/options/readers/tsconfig.d.ts +14 -0
- package/dist/lib/utils/options/readers/tsconfig.js +172 -0
- package/dist/lib/utils/options/readers/typedoc.d.ts +33 -0
- package/dist/lib/utils/options/readers/typedoc.js +136 -0
- package/dist/lib/utils/options/sources/index.d.ts +1 -0
- package/dist/lib/utils/options/sources/index.js +1 -0
- package/dist/lib/utils/options/sources/typedoc.d.ts +2 -0
- package/dist/lib/utils/options/sources/typedoc.js +876 -0
- package/dist/lib/utils/options/tsdoc-defaults.d.ts +6 -0
- package/dist/lib/utils/options/tsdoc-defaults.js +94 -0
- package/dist/lib/utils/package-manifest.d.ts +11 -0
- package/dist/lib/utils/package-manifest.js +84 -0
- package/dist/lib/utils/paths.d.ts +27 -0
- package/dist/lib/utils/paths.js +127 -0
- package/dist/lib/utils/perf.d.ts +6 -0
- package/dist/lib/utils/perf.js +86 -0
- package/dist/lib/utils/plugins.d.ts +3 -0
- package/dist/lib/utils/plugins.js +61 -0
- package/dist/lib/utils/reflections.d.ts +5 -0
- package/dist/lib/utils/reflections.js +64 -0
- package/dist/lib/utils/sort.d.ts +11 -0
- package/dist/lib/utils/sort.js +153 -0
- package/dist/lib/utils/tsconfig.d.ts +5 -0
- package/dist/lib/utils/tsconfig.js +60 -0
- package/dist/lib/utils/tsutils.d.ts +3 -0
- package/dist/lib/utils/tsutils.js +23 -0
- package/dist/lib/utils-common/array.d.ts +57 -0
- package/dist/lib/utils-common/array.js +152 -0
- package/dist/lib/utils-common/declarationReference.d.ts +42 -0
- package/dist/lib/utils-common/declarationReference.js +341 -0
- package/dist/lib/utils-common/enum.d.ts +9 -0
- package/dist/lib/utils-common/enum.js +27 -0
- package/dist/lib/utils-common/events.d.ts +29 -0
- package/dist/lib/utils-common/events.js +49 -0
- package/dist/lib/utils-common/general.d.ts +40 -0
- package/dist/lib/utils-common/general.js +22 -0
- package/dist/lib/utils-common/hooks.d.ts +51 -0
- package/dist/lib/utils-common/hooks.js +90 -0
- package/dist/lib/utils-common/i18n.d.ts +18 -0
- package/dist/lib/utils-common/i18n.js +39 -0
- package/dist/lib/utils-common/index.d.ts +16 -0
- package/dist/lib/utils-common/index.js +17 -0
- package/dist/lib/utils-common/jsx.d.ts +53 -0
- package/dist/lib/utils-common/jsx.elements.d.ts +949 -0
- package/dist/lib/utils-common/jsx.elements.js +3 -0
- package/dist/lib/utils-common/jsx.js +187 -0
- package/dist/lib/utils-common/logger.d.ts +97 -0
- package/dist/lib/utils-common/logger.js +129 -0
- package/dist/lib/utils-common/map.d.ts +23 -0
- package/dist/lib/utils-common/map.js +63 -0
- package/dist/lib/utils-common/minimalSourceFile.d.ts +12 -0
- package/dist/lib/utils-common/minimalSourceFile.js +43 -0
- package/dist/lib/utils-common/path.d.ts +42 -0
- package/dist/lib/utils-common/path.js +130 -0
- package/dist/lib/utils-common/set.d.ts +3 -0
- package/dist/lib/utils-common/set.js +23 -0
- package/dist/lib/utils-common/string.d.ts +11 -0
- package/dist/lib/utils-common/string.js +84 -0
- package/dist/lib/utils-common/validation.d.ts +33 -0
- package/dist/lib/utils-common/validation.js +50 -0
- package/dist/lib/validation/documentation.d.ts +3 -0
- package/dist/lib/validation/documentation.js +91 -0
- package/dist/lib/validation/exports.d.ts +3 -0
- package/dist/lib/validation/exports.js +65 -0
- package/dist/lib/validation/links.d.ts +3 -0
- package/dist/lib/validation/links.js +78 -0
- package/dist/lib/validation/unusedMergeModuleWith.d.ts +3 -0
- package/dist/lib/validation/unusedMergeModuleWith.js +12 -0
- package/package.json +161 -0
- package/static/main.js +58 -0
- package/static/style.css +1633 -0
- package/tsdoc.json +247 -0
- package/typedoc-config.schema.json +941 -0
|
@@ -0,0 +1,876 @@
|
|
|
1
|
+
import { CommentStyle, EmitStrategy, ParameterHint, ParameterType } from "../declaration.js";
|
|
2
|
+
import * as OptionDefaults from "../defaults.js";
|
|
3
|
+
import { SORT_STRATEGIES } from "../../sort.js";
|
|
4
|
+
import { EntryPointStrategy } from "../../entry-point.js";
|
|
5
|
+
import { ReflectionKind } from "../../../models/kind.js";
|
|
6
|
+
import { blockTags, inlineTags, modifierTags } from "../tsdoc-defaults.js";
|
|
7
|
+
import { getEnumKeys, i18n, LogLevel, setDifference, Validation } from "#utils";
|
|
8
|
+
import { getSupportedLanguages, getSupportedThemes } from "../../highlighter.js";
|
|
9
|
+
import { extname } from "path";
|
|
10
|
+
function makeTagArrayValidator(name) {
|
|
11
|
+
return (value) => {
|
|
12
|
+
if (!Validation.validate([Array, Validation.isTagString], value)) {
|
|
13
|
+
throw new Error(i18n.option_0_values_must_be_array_of_tags(name));
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
// For convenience, added in the same order as they are documented on the website.
|
|
18
|
+
export function addTypeDocOptions(options) {
|
|
19
|
+
// MARK: Configuration Options
|
|
20
|
+
options.addDeclaration({
|
|
21
|
+
type: ParameterType.Path,
|
|
22
|
+
name: "options",
|
|
23
|
+
help: () => i18n.help_options(),
|
|
24
|
+
hint: ParameterHint.File,
|
|
25
|
+
defaultValue: "",
|
|
26
|
+
});
|
|
27
|
+
options.addDeclaration({
|
|
28
|
+
type: ParameterType.Path,
|
|
29
|
+
name: "tsconfig",
|
|
30
|
+
help: () => i18n.help_tsconfig(),
|
|
31
|
+
hint: ParameterHint.File,
|
|
32
|
+
defaultValue: "",
|
|
33
|
+
});
|
|
34
|
+
options.addDeclaration({
|
|
35
|
+
name: "compilerOptions",
|
|
36
|
+
help: () => i18n.help_compilerOptions(),
|
|
37
|
+
type: ParameterType.Mixed,
|
|
38
|
+
configFileOnly: true,
|
|
39
|
+
validate(value) {
|
|
40
|
+
if (!Validation.validate({}, value)) {
|
|
41
|
+
throw new Error(i18n.option_0_must_be_an_object("compilerOptions"));
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
});
|
|
45
|
+
options.addDeclaration({
|
|
46
|
+
name: "lang",
|
|
47
|
+
help: () => i18n.help_lang(),
|
|
48
|
+
type: ParameterType.String,
|
|
49
|
+
defaultValue: "en",
|
|
50
|
+
});
|
|
51
|
+
options.addDeclaration({
|
|
52
|
+
name: "locales",
|
|
53
|
+
help: () => i18n.help_locales(),
|
|
54
|
+
type: ParameterType.Mixed,
|
|
55
|
+
configFileOnly: true,
|
|
56
|
+
defaultValue: {},
|
|
57
|
+
validate(value) {
|
|
58
|
+
if (typeof value !== "object" || !value) {
|
|
59
|
+
throw new Error(i18n.locales_must_be_an_object());
|
|
60
|
+
}
|
|
61
|
+
for (const val of Object.values(value)) {
|
|
62
|
+
if (typeof val !== "object" || !val) {
|
|
63
|
+
throw new Error(i18n.locales_must_be_an_object());
|
|
64
|
+
}
|
|
65
|
+
for (const val2 of Object.values(val)) {
|
|
66
|
+
if (typeof val2 !== "string") {
|
|
67
|
+
throw new Error(i18n.locales_must_be_an_object());
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
});
|
|
73
|
+
options.addDeclaration({
|
|
74
|
+
name: "packageOptions",
|
|
75
|
+
help: () => i18n.help_packageOptions(),
|
|
76
|
+
type: ParameterType.Mixed,
|
|
77
|
+
configFileOnly: true,
|
|
78
|
+
defaultValue: {},
|
|
79
|
+
validate(value) {
|
|
80
|
+
if (!Validation.validate({}, value)) {
|
|
81
|
+
throw new Error(i18n.option_0_must_be_an_object("packageOptions"));
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
});
|
|
85
|
+
// MARK: Input Options
|
|
86
|
+
options.addDeclaration({
|
|
87
|
+
name: "entryPoints",
|
|
88
|
+
help: () => i18n.help_entryPoints(),
|
|
89
|
+
type: ParameterType.GlobArray,
|
|
90
|
+
});
|
|
91
|
+
options.addDeclaration({
|
|
92
|
+
name: "entryPointStrategy",
|
|
93
|
+
help: () => i18n.help_entryPointStrategy(),
|
|
94
|
+
type: ParameterType.Map,
|
|
95
|
+
map: EntryPointStrategy,
|
|
96
|
+
defaultValue: EntryPointStrategy.Resolve,
|
|
97
|
+
});
|
|
98
|
+
options.addDeclaration({
|
|
99
|
+
name: "alwaysCreateEntryPointModule",
|
|
100
|
+
help: () => i18n.help_alwaysCreateEntryPointModule(),
|
|
101
|
+
type: ParameterType.Boolean,
|
|
102
|
+
});
|
|
103
|
+
options.addDeclaration({
|
|
104
|
+
name: "projectDocuments",
|
|
105
|
+
help: () => i18n.help_projectDocuments(),
|
|
106
|
+
type: ParameterType.GlobArray,
|
|
107
|
+
});
|
|
108
|
+
options.addDeclaration({
|
|
109
|
+
name: "exclude",
|
|
110
|
+
help: () => i18n.help_exclude(),
|
|
111
|
+
type: ParameterType.GlobArray,
|
|
112
|
+
});
|
|
113
|
+
options.addDeclaration({
|
|
114
|
+
name: "externalPattern",
|
|
115
|
+
help: () => i18n.help_externalPattern(),
|
|
116
|
+
type: ParameterType.GlobArray,
|
|
117
|
+
defaultValue: ["**/node_modules/**"],
|
|
118
|
+
});
|
|
119
|
+
options.addDeclaration({
|
|
120
|
+
name: "excludeExternals",
|
|
121
|
+
help: () => i18n.help_excludeExternals(),
|
|
122
|
+
type: ParameterType.Boolean,
|
|
123
|
+
});
|
|
124
|
+
options.addDeclaration({
|
|
125
|
+
name: "excludeNotDocumented",
|
|
126
|
+
help: () => i18n.help_excludeNotDocumented(),
|
|
127
|
+
type: ParameterType.Boolean,
|
|
128
|
+
});
|
|
129
|
+
options.addDeclaration({
|
|
130
|
+
name: "excludeNotDocumentedKinds",
|
|
131
|
+
help: () => i18n.help_excludeNotDocumentedKinds(),
|
|
132
|
+
type: ParameterType.Array,
|
|
133
|
+
validate(value) {
|
|
134
|
+
const invalid = new Set(value);
|
|
135
|
+
const valid = new Set(getEnumKeys(ReflectionKind));
|
|
136
|
+
for (const notPermitted of [
|
|
137
|
+
ReflectionKind.Project,
|
|
138
|
+
ReflectionKind.TypeLiteral,
|
|
139
|
+
ReflectionKind.TypeParameter,
|
|
140
|
+
ReflectionKind.Parameter,
|
|
141
|
+
]) {
|
|
142
|
+
valid.delete(ReflectionKind[notPermitted]);
|
|
143
|
+
}
|
|
144
|
+
for (const v of valid) {
|
|
145
|
+
invalid.delete(v);
|
|
146
|
+
}
|
|
147
|
+
if (invalid.size !== 0) {
|
|
148
|
+
throw new Error(i18n.exclude_not_documented_specified_0_valid_values_are_1(Array.from(invalid).join(", "), Array.from(valid).join(", ")));
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
defaultValue: OptionDefaults.excludeNotDocumentedKinds,
|
|
152
|
+
});
|
|
153
|
+
options.addDeclaration({
|
|
154
|
+
name: "excludeInternal",
|
|
155
|
+
help: () => i18n.help_excludeInternal(),
|
|
156
|
+
type: ParameterType.Boolean,
|
|
157
|
+
});
|
|
158
|
+
options.addDeclaration({
|
|
159
|
+
name: "excludeCategories",
|
|
160
|
+
help: () => i18n.help_excludeCategories(),
|
|
161
|
+
type: ParameterType.Array,
|
|
162
|
+
defaultValue: [],
|
|
163
|
+
});
|
|
164
|
+
options.addDeclaration({
|
|
165
|
+
name: "excludePrivate",
|
|
166
|
+
help: () => i18n.help_excludePrivate(),
|
|
167
|
+
type: ParameterType.Boolean,
|
|
168
|
+
defaultValue: true,
|
|
169
|
+
});
|
|
170
|
+
options.addDeclaration({
|
|
171
|
+
name: "excludePrivateClassFields",
|
|
172
|
+
help: () => i18n.help_excludePrivateClassFields(),
|
|
173
|
+
type: ParameterType.Boolean,
|
|
174
|
+
defaultValue: true,
|
|
175
|
+
});
|
|
176
|
+
options.addDeclaration({
|
|
177
|
+
name: "excludeProtected",
|
|
178
|
+
help: () => i18n.help_excludeProtected(),
|
|
179
|
+
type: ParameterType.Boolean,
|
|
180
|
+
});
|
|
181
|
+
options.addDeclaration({
|
|
182
|
+
name: "excludeReferences",
|
|
183
|
+
help: () => i18n.help_excludeReferences(),
|
|
184
|
+
type: ParameterType.Boolean,
|
|
185
|
+
});
|
|
186
|
+
options.addDeclaration({
|
|
187
|
+
name: "externalSymbolLinkMappings",
|
|
188
|
+
help: () => i18n.help_externalSymbolLinkMappings(),
|
|
189
|
+
type: ParameterType.Mixed,
|
|
190
|
+
defaultValue: {},
|
|
191
|
+
validate(value) {
|
|
192
|
+
if (!Validation.validate({}, value)) {
|
|
193
|
+
throw new Error(i18n.external_symbol_link_mappings_must_be_object());
|
|
194
|
+
}
|
|
195
|
+
for (const mappings of Object.values(value)) {
|
|
196
|
+
if (!Validation.validate({}, mappings)) {
|
|
197
|
+
throw new Error(i18n.external_symbol_link_mappings_must_be_object());
|
|
198
|
+
}
|
|
199
|
+
for (const link of Object.values(mappings)) {
|
|
200
|
+
if (typeof link !== "string") {
|
|
201
|
+
throw new Error(i18n.external_symbol_link_mappings_must_be_object());
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
});
|
|
207
|
+
options.addDeclaration({
|
|
208
|
+
name: "readme",
|
|
209
|
+
help: () => i18n.help_readme(),
|
|
210
|
+
type: ParameterType.Path,
|
|
211
|
+
});
|
|
212
|
+
options.addDeclaration({
|
|
213
|
+
name: "basePath",
|
|
214
|
+
help: () => i18n.help_basePath(),
|
|
215
|
+
type: ParameterType.Path,
|
|
216
|
+
});
|
|
217
|
+
// MARK: Output Options
|
|
218
|
+
options.addDeclaration({
|
|
219
|
+
name: "outputs",
|
|
220
|
+
help: () => i18n.help_out(),
|
|
221
|
+
type: ParameterType.Mixed,
|
|
222
|
+
configFileOnly: true,
|
|
223
|
+
defaultValue: undefined,
|
|
224
|
+
validate(value) {
|
|
225
|
+
if (!Validation.validate([
|
|
226
|
+
Array,
|
|
227
|
+
{
|
|
228
|
+
name: String,
|
|
229
|
+
path: String,
|
|
230
|
+
options: Validation.optional({
|
|
231
|
+
[Validation.additionalProperties]: true,
|
|
232
|
+
}),
|
|
233
|
+
},
|
|
234
|
+
], value)) {
|
|
235
|
+
throw new Error(i18n.option_outputs_must_be_array());
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
});
|
|
239
|
+
options.addDeclaration({
|
|
240
|
+
name: "out",
|
|
241
|
+
help: () => i18n.help_out(),
|
|
242
|
+
type: ParameterType.Path,
|
|
243
|
+
hint: ParameterHint.Directory,
|
|
244
|
+
defaultValue: "./docs",
|
|
245
|
+
});
|
|
246
|
+
options.addDeclaration({
|
|
247
|
+
name: "html",
|
|
248
|
+
outputShortcut: "html",
|
|
249
|
+
help: () => i18n.help_html(),
|
|
250
|
+
type: ParameterType.Path,
|
|
251
|
+
hint: ParameterHint.Directory,
|
|
252
|
+
});
|
|
253
|
+
options.addDeclaration({
|
|
254
|
+
name: "json",
|
|
255
|
+
outputShortcut: "json",
|
|
256
|
+
help: () => i18n.help_json(),
|
|
257
|
+
type: ParameterType.Path,
|
|
258
|
+
hint: ParameterHint.File,
|
|
259
|
+
});
|
|
260
|
+
options.addDeclaration({
|
|
261
|
+
name: "pretty",
|
|
262
|
+
help: () => i18n.help_pretty(),
|
|
263
|
+
type: ParameterType.Boolean,
|
|
264
|
+
defaultValue: true,
|
|
265
|
+
});
|
|
266
|
+
options.addDeclaration({
|
|
267
|
+
name: "emit",
|
|
268
|
+
help: () => i18n.help_emit(),
|
|
269
|
+
type: ParameterType.Map,
|
|
270
|
+
map: EmitStrategy,
|
|
271
|
+
defaultValue: "docs",
|
|
272
|
+
});
|
|
273
|
+
options.addDeclaration({
|
|
274
|
+
name: "theme",
|
|
275
|
+
help: () => i18n.help_theme(),
|
|
276
|
+
type: ParameterType.String,
|
|
277
|
+
defaultValue: "default",
|
|
278
|
+
});
|
|
279
|
+
options.addDeclaration({
|
|
280
|
+
name: "router",
|
|
281
|
+
help: () => i18n.help_router(),
|
|
282
|
+
type: ParameterType.String,
|
|
283
|
+
defaultValue: "kind",
|
|
284
|
+
});
|
|
285
|
+
const defaultLightTheme = "light-plus";
|
|
286
|
+
const defaultDarkTheme = "dark-plus";
|
|
287
|
+
options.addDeclaration({
|
|
288
|
+
name: "lightHighlightTheme",
|
|
289
|
+
help: () => i18n.help_lightHighlightTheme(),
|
|
290
|
+
type: ParameterType.String,
|
|
291
|
+
defaultValue: defaultLightTheme,
|
|
292
|
+
validate(value) {
|
|
293
|
+
if (!getSupportedThemes().includes(value)) {
|
|
294
|
+
throw new Error(i18n.highlight_theme_0_must_be_one_of_1("lightHighlightTheme", getSupportedThemes().join(", ")));
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
});
|
|
298
|
+
options.addDeclaration({
|
|
299
|
+
name: "darkHighlightTheme",
|
|
300
|
+
help: () => i18n.help_darkHighlightTheme(),
|
|
301
|
+
type: ParameterType.String,
|
|
302
|
+
defaultValue: defaultDarkTheme,
|
|
303
|
+
validate(value) {
|
|
304
|
+
if (!getSupportedThemes().includes(value)) {
|
|
305
|
+
throw new Error(i18n.highlight_theme_0_must_be_one_of_1("darkHighlightTheme", getSupportedThemes().join(", ")));
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
});
|
|
309
|
+
options.addDeclaration({
|
|
310
|
+
name: "highlightLanguages",
|
|
311
|
+
help: () => i18n.help_highlightLanguages(),
|
|
312
|
+
type: ParameterType.Array,
|
|
313
|
+
defaultValue: OptionDefaults.highlightLanguages,
|
|
314
|
+
validate(value) {
|
|
315
|
+
const invalid = setDifference(value, getSupportedLanguages());
|
|
316
|
+
if (invalid.size) {
|
|
317
|
+
throw new Error(i18n.highlightLanguages_contains_invalid_languages_0(Array.from(invalid).join(", ")));
|
|
318
|
+
}
|
|
319
|
+
},
|
|
320
|
+
});
|
|
321
|
+
options.addDeclaration({
|
|
322
|
+
name: "ignoredHighlightLanguages",
|
|
323
|
+
help: () => i18n.help_ignoredHighlightLanguages(),
|
|
324
|
+
type: ParameterType.Array,
|
|
325
|
+
defaultValue: OptionDefaults.ignoredHighlightLanguages,
|
|
326
|
+
});
|
|
327
|
+
options.addDeclaration({
|
|
328
|
+
name: "typePrintWidth",
|
|
329
|
+
help: () => i18n.help_typePrintWidth(),
|
|
330
|
+
type: ParameterType.Number,
|
|
331
|
+
defaultValue: 80,
|
|
332
|
+
});
|
|
333
|
+
options.addDeclaration({
|
|
334
|
+
name: "customCss",
|
|
335
|
+
help: () => i18n.help_customCss(),
|
|
336
|
+
type: ParameterType.Path,
|
|
337
|
+
});
|
|
338
|
+
options.addDeclaration({
|
|
339
|
+
name: "customJs",
|
|
340
|
+
help: () => i18n.help_customJs(),
|
|
341
|
+
type: ParameterType.Path,
|
|
342
|
+
});
|
|
343
|
+
options.addDeclaration({
|
|
344
|
+
name: "markdownItOptions",
|
|
345
|
+
help: () => i18n.help_markdownItOptions(),
|
|
346
|
+
type: ParameterType.Mixed,
|
|
347
|
+
configFileOnly: true,
|
|
348
|
+
defaultValue: {
|
|
349
|
+
html: true,
|
|
350
|
+
linkify: true,
|
|
351
|
+
},
|
|
352
|
+
validate(value) {
|
|
353
|
+
if (!Validation.validate({}, value)) {
|
|
354
|
+
throw new Error(i18n.option_0_must_be_an_object("markdownItOptions"));
|
|
355
|
+
}
|
|
356
|
+
},
|
|
357
|
+
});
|
|
358
|
+
options.addDeclaration({
|
|
359
|
+
name: "markdownItLoader",
|
|
360
|
+
help: () => i18n.help_markdownItLoader(),
|
|
361
|
+
type: ParameterType.Mixed,
|
|
362
|
+
configFileOnly: true,
|
|
363
|
+
defaultValue: () => { },
|
|
364
|
+
validate(value) {
|
|
365
|
+
if (typeof value !== "function") {
|
|
366
|
+
throw new Error(i18n.option_0_must_be_a_function("markdownItLoader"));
|
|
367
|
+
}
|
|
368
|
+
},
|
|
369
|
+
});
|
|
370
|
+
options.addDeclaration({
|
|
371
|
+
name: "maxTypeConversionDepth",
|
|
372
|
+
help: () => i18n.help_maxTypeConversionDepth(),
|
|
373
|
+
defaultValue: 10,
|
|
374
|
+
type: ParameterType.Number,
|
|
375
|
+
});
|
|
376
|
+
options.addDeclaration({
|
|
377
|
+
name: "name",
|
|
378
|
+
help: () => i18n.help_name(),
|
|
379
|
+
});
|
|
380
|
+
options.addDeclaration({
|
|
381
|
+
name: "includeVersion",
|
|
382
|
+
help: () => i18n.help_includeVersion(),
|
|
383
|
+
type: ParameterType.Boolean,
|
|
384
|
+
});
|
|
385
|
+
options.addDeclaration({
|
|
386
|
+
name: "disableSources",
|
|
387
|
+
help: () => i18n.help_disableSources(),
|
|
388
|
+
type: ParameterType.Boolean,
|
|
389
|
+
});
|
|
390
|
+
options.addDeclaration({
|
|
391
|
+
name: "sourceLinkTemplate",
|
|
392
|
+
help: () => i18n.help_sourceLinkTemplate(),
|
|
393
|
+
});
|
|
394
|
+
options.addDeclaration({
|
|
395
|
+
name: "gitRevision",
|
|
396
|
+
help: () => i18n.help_gitRevision(),
|
|
397
|
+
});
|
|
398
|
+
options.addDeclaration({
|
|
399
|
+
name: "gitRemote",
|
|
400
|
+
help: () => i18n.help_gitRemote(),
|
|
401
|
+
defaultValue: "origin",
|
|
402
|
+
});
|
|
403
|
+
options.addDeclaration({
|
|
404
|
+
name: "disableGit",
|
|
405
|
+
help: () => i18n.help_disableGit(),
|
|
406
|
+
type: ParameterType.Boolean,
|
|
407
|
+
});
|
|
408
|
+
options.addDeclaration({
|
|
409
|
+
name: "displayBasePath",
|
|
410
|
+
help: () => i18n.help_displayBasePath(),
|
|
411
|
+
type: ParameterType.Path,
|
|
412
|
+
});
|
|
413
|
+
options.addDeclaration({
|
|
414
|
+
name: "cname",
|
|
415
|
+
help: () => i18n.help_cname(),
|
|
416
|
+
});
|
|
417
|
+
options.addDeclaration({
|
|
418
|
+
name: "favicon",
|
|
419
|
+
help: () => i18n.help_favicon(),
|
|
420
|
+
validate(value) {
|
|
421
|
+
const allowedExtension = [".ico", ".png", ".svg"];
|
|
422
|
+
if (!/^https?:\/\//i.test(value) &&
|
|
423
|
+
!allowedExtension.includes(extname(value))) {
|
|
424
|
+
throw new Error(i18n.favicon_must_have_one_of_the_following_extensions_0(allowedExtension.join(", ")));
|
|
425
|
+
}
|
|
426
|
+
},
|
|
427
|
+
type: ParameterType.UrlOrPath,
|
|
428
|
+
});
|
|
429
|
+
options.addDeclaration({
|
|
430
|
+
name: "sourceLinkExternal",
|
|
431
|
+
help: () => i18n.help_sourceLinkExternal(),
|
|
432
|
+
type: ParameterType.Boolean,
|
|
433
|
+
});
|
|
434
|
+
options.addDeclaration({
|
|
435
|
+
name: "markdownLinkExternal",
|
|
436
|
+
help: () => i18n.help_markdownLinkExternal(),
|
|
437
|
+
type: ParameterType.Boolean,
|
|
438
|
+
defaultValue: true,
|
|
439
|
+
});
|
|
440
|
+
options.addDeclaration({
|
|
441
|
+
name: "githubPages",
|
|
442
|
+
help: () => i18n.help_githubPages(),
|
|
443
|
+
type: ParameterType.Boolean,
|
|
444
|
+
defaultValue: true,
|
|
445
|
+
});
|
|
446
|
+
options.addDeclaration({
|
|
447
|
+
name: "hostedBaseUrl",
|
|
448
|
+
help: () => i18n.help_hostedBaseUrl(),
|
|
449
|
+
validate(value) {
|
|
450
|
+
if (!/^https?:\/\//i.test(value)) {
|
|
451
|
+
throw new Error(i18n.hostedBaseUrl_must_start_with_http());
|
|
452
|
+
}
|
|
453
|
+
},
|
|
454
|
+
});
|
|
455
|
+
options.addDeclaration({
|
|
456
|
+
name: "useHostedBaseUrlForAbsoluteLinks",
|
|
457
|
+
help: () => i18n.help_useHostedBaseUrlForAbsoluteLinks(),
|
|
458
|
+
type: ParameterType.Boolean,
|
|
459
|
+
});
|
|
460
|
+
options.addDeclaration({
|
|
461
|
+
name: "hideGenerator",
|
|
462
|
+
help: () => i18n.help_hideGenerator(),
|
|
463
|
+
type: ParameterType.Boolean,
|
|
464
|
+
});
|
|
465
|
+
options.addDeclaration({
|
|
466
|
+
name: "customFooterHtml",
|
|
467
|
+
help: () => i18n.help_customFooterHtml(),
|
|
468
|
+
type: ParameterType.String,
|
|
469
|
+
});
|
|
470
|
+
options.addDeclaration({
|
|
471
|
+
name: "customFooterHtmlDisableWrapper",
|
|
472
|
+
help: () => i18n.help_customFooterHtmlDisableWrapper(),
|
|
473
|
+
type: ParameterType.Boolean,
|
|
474
|
+
});
|
|
475
|
+
options.addDeclaration({
|
|
476
|
+
name: "cacheBust",
|
|
477
|
+
help: () => i18n.help_cacheBust(),
|
|
478
|
+
type: ParameterType.Boolean,
|
|
479
|
+
});
|
|
480
|
+
options.addDeclaration({
|
|
481
|
+
name: "searchInComments",
|
|
482
|
+
help: () => i18n.help_searchInComments(),
|
|
483
|
+
type: ParameterType.Boolean,
|
|
484
|
+
});
|
|
485
|
+
options.addDeclaration({
|
|
486
|
+
name: "searchInDocuments",
|
|
487
|
+
help: () => i18n.help_searchInDocuments(),
|
|
488
|
+
type: ParameterType.Boolean,
|
|
489
|
+
});
|
|
490
|
+
options.addDeclaration({
|
|
491
|
+
name: "cleanOutputDir",
|
|
492
|
+
help: () => i18n.help_cleanOutputDir(),
|
|
493
|
+
type: ParameterType.Boolean,
|
|
494
|
+
defaultValue: true,
|
|
495
|
+
});
|
|
496
|
+
options.addDeclaration({
|
|
497
|
+
name: "titleLink",
|
|
498
|
+
help: () => i18n.help_titleLink(),
|
|
499
|
+
type: ParameterType.String,
|
|
500
|
+
});
|
|
501
|
+
options.addDeclaration({
|
|
502
|
+
name: "navigationLinks",
|
|
503
|
+
help: () => i18n.help_navigationLinks(),
|
|
504
|
+
type: ParameterType.Mixed,
|
|
505
|
+
defaultValue: {},
|
|
506
|
+
validate(value) {
|
|
507
|
+
if (!isObject(value)) {
|
|
508
|
+
throw new Error(i18n.option_0_must_be_object_with_urls("navigationLinks"));
|
|
509
|
+
}
|
|
510
|
+
if (Object.values(value).some((x) => typeof x !== "string")) {
|
|
511
|
+
throw new Error(i18n.option_0_must_be_object_with_urls("navigationLinks"));
|
|
512
|
+
}
|
|
513
|
+
},
|
|
514
|
+
});
|
|
515
|
+
options.addDeclaration({
|
|
516
|
+
name: "sidebarLinks",
|
|
517
|
+
help: () => i18n.help_sidebarLinks(),
|
|
518
|
+
type: ParameterType.Mixed,
|
|
519
|
+
defaultValue: {},
|
|
520
|
+
validate(value) {
|
|
521
|
+
if (!isObject(value)) {
|
|
522
|
+
throw new Error(i18n.option_0_must_be_object_with_urls("sidebarLinks"));
|
|
523
|
+
}
|
|
524
|
+
if (Object.values(value).some((x) => typeof x !== "string")) {
|
|
525
|
+
throw new Error(i18n.option_0_must_be_object_with_urls("sidebarLinks"));
|
|
526
|
+
}
|
|
527
|
+
},
|
|
528
|
+
});
|
|
529
|
+
options.addDeclaration({
|
|
530
|
+
name: "navigationLeaves",
|
|
531
|
+
help: () => i18n.help_navigationLeaves(),
|
|
532
|
+
type: ParameterType.Array,
|
|
533
|
+
});
|
|
534
|
+
options.addDeclaration({
|
|
535
|
+
name: "navigation",
|
|
536
|
+
help: () => i18n.help_navigation(),
|
|
537
|
+
type: ParameterType.Flags,
|
|
538
|
+
defaults: {
|
|
539
|
+
includeCategories: false,
|
|
540
|
+
includeGroups: false,
|
|
541
|
+
includeFolders: true,
|
|
542
|
+
compactFolders: true,
|
|
543
|
+
excludeReferences: false,
|
|
544
|
+
},
|
|
545
|
+
});
|
|
546
|
+
options.addDeclaration({
|
|
547
|
+
name: "headings",
|
|
548
|
+
help: () => i18n.help_headings(),
|
|
549
|
+
type: ParameterType.Flags,
|
|
550
|
+
defaults: {
|
|
551
|
+
readme: true,
|
|
552
|
+
document: false,
|
|
553
|
+
},
|
|
554
|
+
});
|
|
555
|
+
options.addDeclaration({
|
|
556
|
+
name: "sluggerConfiguration",
|
|
557
|
+
help: () => i18n.help_sluggerConfiguration(),
|
|
558
|
+
type: ParameterType.Flags,
|
|
559
|
+
defaults: {
|
|
560
|
+
lowercase: true,
|
|
561
|
+
},
|
|
562
|
+
});
|
|
563
|
+
options.addDeclaration({
|
|
564
|
+
name: "includeHierarchySummary",
|
|
565
|
+
help: () => i18n.help_includeHierarchySummary(),
|
|
566
|
+
type: ParameterType.Boolean,
|
|
567
|
+
defaultValue: true,
|
|
568
|
+
});
|
|
569
|
+
options.addDeclaration({
|
|
570
|
+
name: "visibilityFilters",
|
|
571
|
+
help: () => i18n.help_visibilityFilters(),
|
|
572
|
+
type: ParameterType.Mixed,
|
|
573
|
+
configFileOnly: true,
|
|
574
|
+
defaultValue: {
|
|
575
|
+
protected: false,
|
|
576
|
+
private: false,
|
|
577
|
+
inherited: true,
|
|
578
|
+
external: false,
|
|
579
|
+
},
|
|
580
|
+
validate(value) {
|
|
581
|
+
const knownKeys = ["protected", "private", "inherited", "external"];
|
|
582
|
+
if (typeof value !== "object" || !value) {
|
|
583
|
+
throw new Error(i18n.option_0_must_be_an_object("visibilityFilters"));
|
|
584
|
+
}
|
|
585
|
+
for (const [key, val] of Object.entries(value)) {
|
|
586
|
+
if (!key.startsWith("@") && !knownKeys.includes(key)) {
|
|
587
|
+
throw new Error(i18n.visibility_filters_only_include_0(knownKeys.join(", ")));
|
|
588
|
+
}
|
|
589
|
+
if (typeof val !== "boolean") {
|
|
590
|
+
throw new Error(i18n.visibility_filters_must_be_booleans());
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
},
|
|
594
|
+
});
|
|
595
|
+
options.addDeclaration({
|
|
596
|
+
name: "searchCategoryBoosts",
|
|
597
|
+
help: () => i18n.help_searchCategoryBoosts(),
|
|
598
|
+
type: ParameterType.Mixed,
|
|
599
|
+
configFileOnly: true,
|
|
600
|
+
defaultValue: {},
|
|
601
|
+
validate(value) {
|
|
602
|
+
if (!isObject(value)) {
|
|
603
|
+
throw new Error(i18n.option_0_must_be_an_object("searchCategoryBoosts"));
|
|
604
|
+
}
|
|
605
|
+
if (Object.values(value).some((x) => typeof x !== "number")) {
|
|
606
|
+
throw new Error(i18n.option_0_values_must_be_numbers("searchCategoryBoosts"));
|
|
607
|
+
}
|
|
608
|
+
},
|
|
609
|
+
});
|
|
610
|
+
options.addDeclaration({
|
|
611
|
+
name: "searchGroupBoosts",
|
|
612
|
+
help: () => i18n.help_searchGroupBoosts(),
|
|
613
|
+
type: ParameterType.Mixed,
|
|
614
|
+
configFileOnly: true,
|
|
615
|
+
defaultValue: {},
|
|
616
|
+
validate(value) {
|
|
617
|
+
if (!isObject(value)) {
|
|
618
|
+
throw new Error(i18n.option_0_must_be_an_object("searchGroupBoosts"));
|
|
619
|
+
}
|
|
620
|
+
if (Object.values(value).some((x) => typeof x !== "number")) {
|
|
621
|
+
throw new Error(i18n.option_0_values_must_be_numbers("searchGroupBoosts"));
|
|
622
|
+
}
|
|
623
|
+
},
|
|
624
|
+
});
|
|
625
|
+
options.addDeclaration({
|
|
626
|
+
name: "useFirstParagraphOfCommentAsSummary",
|
|
627
|
+
help: () => i18n.help_useFirstParagraphOfCommentAsSummary(),
|
|
628
|
+
type: ParameterType.Boolean,
|
|
629
|
+
});
|
|
630
|
+
// MARK: Comment Options
|
|
631
|
+
options.addDeclaration({
|
|
632
|
+
name: "jsDocCompatibility",
|
|
633
|
+
help: () => i18n.help_jsDocCompatibility(),
|
|
634
|
+
type: ParameterType.Flags,
|
|
635
|
+
defaults: {
|
|
636
|
+
defaultTag: true,
|
|
637
|
+
exampleTag: true,
|
|
638
|
+
inheritDocTag: true,
|
|
639
|
+
ignoreUnescapedBraces: true,
|
|
640
|
+
},
|
|
641
|
+
});
|
|
642
|
+
options.addDeclaration({
|
|
643
|
+
name: "suppressCommentWarningsInDeclarationFiles",
|
|
644
|
+
help: () => i18n.help_suppressCommentWarningsInDeclarationFiles(),
|
|
645
|
+
type: ParameterType.Boolean,
|
|
646
|
+
defaultValue: true,
|
|
647
|
+
});
|
|
648
|
+
options.addDeclaration({
|
|
649
|
+
name: "commentStyle",
|
|
650
|
+
help: () => i18n.help_commentStyle(),
|
|
651
|
+
type: ParameterType.Map,
|
|
652
|
+
map: CommentStyle,
|
|
653
|
+
defaultValue: CommentStyle.JSDoc,
|
|
654
|
+
});
|
|
655
|
+
options.addDeclaration({
|
|
656
|
+
name: "useTsLinkResolution",
|
|
657
|
+
help: () => i18n.help_useTsLinkResolution(),
|
|
658
|
+
type: ParameterType.Boolean,
|
|
659
|
+
defaultValue: true,
|
|
660
|
+
});
|
|
661
|
+
options.addDeclaration({
|
|
662
|
+
name: "preserveLinkText",
|
|
663
|
+
help: () => i18n.help_preserveLinkText(),
|
|
664
|
+
type: ParameterType.Boolean,
|
|
665
|
+
defaultValue: true,
|
|
666
|
+
});
|
|
667
|
+
options.addDeclaration({
|
|
668
|
+
name: "blockTags",
|
|
669
|
+
help: () => i18n.help_blockTags(),
|
|
670
|
+
type: ParameterType.Array,
|
|
671
|
+
defaultValue: blockTags,
|
|
672
|
+
validate: makeTagArrayValidator("blockTags"),
|
|
673
|
+
});
|
|
674
|
+
options.addDeclaration({
|
|
675
|
+
name: "inlineTags",
|
|
676
|
+
help: () => i18n.help_inlineTags(),
|
|
677
|
+
type: ParameterType.Array,
|
|
678
|
+
defaultValue: inlineTags,
|
|
679
|
+
validate: makeTagArrayValidator("inlineTags"),
|
|
680
|
+
});
|
|
681
|
+
options.addDeclaration({
|
|
682
|
+
name: "modifierTags",
|
|
683
|
+
help: () => i18n.help_modifierTags(),
|
|
684
|
+
type: ParameterType.Array,
|
|
685
|
+
defaultValue: modifierTags,
|
|
686
|
+
validate: makeTagArrayValidator("modifierTags"),
|
|
687
|
+
});
|
|
688
|
+
options.addDeclaration({
|
|
689
|
+
name: "excludeTags",
|
|
690
|
+
help: () => i18n.help_excludeTags(),
|
|
691
|
+
type: ParameterType.Array,
|
|
692
|
+
defaultValue: OptionDefaults.excludeTags,
|
|
693
|
+
validate: makeTagArrayValidator("excludeTags"),
|
|
694
|
+
});
|
|
695
|
+
options.addDeclaration({
|
|
696
|
+
name: "notRenderedTags",
|
|
697
|
+
help: () => i18n.help_notRenderedTags(),
|
|
698
|
+
type: ParameterType.Array,
|
|
699
|
+
defaultValue: OptionDefaults.notRenderedTags,
|
|
700
|
+
validate: makeTagArrayValidator("notRenderedTags"),
|
|
701
|
+
});
|
|
702
|
+
options.addDeclaration({
|
|
703
|
+
name: "cascadedModifierTags",
|
|
704
|
+
help: () => i18n.help_cascadedModifierTags(),
|
|
705
|
+
type: ParameterType.Array,
|
|
706
|
+
defaultValue: OptionDefaults.cascadedModifierTags,
|
|
707
|
+
validate: makeTagArrayValidator("cascadedModifierTags"),
|
|
708
|
+
});
|
|
709
|
+
options.addDeclaration({
|
|
710
|
+
name: "preservedTypeAnnotationTags",
|
|
711
|
+
help: () => i18n.help_preservedTypeAnnotationTags(),
|
|
712
|
+
type: ParameterType.Array,
|
|
713
|
+
defaultValue: OptionDefaults.preservedTypeAnnotationTags,
|
|
714
|
+
validate: makeTagArrayValidator("preservedTypeAnnotationTags"),
|
|
715
|
+
});
|
|
716
|
+
// MARK: Organization Options
|
|
717
|
+
options.addDeclaration({
|
|
718
|
+
name: "categorizeByGroup",
|
|
719
|
+
help: () => i18n.help_categorizeByGroup(),
|
|
720
|
+
type: ParameterType.Boolean,
|
|
721
|
+
defaultValue: false,
|
|
722
|
+
});
|
|
723
|
+
options.addDeclaration({
|
|
724
|
+
name: "groupReferencesByType",
|
|
725
|
+
help: () => i18n.help_groupReferencesByType(),
|
|
726
|
+
type: ParameterType.Boolean,
|
|
727
|
+
defaultValue: false,
|
|
728
|
+
});
|
|
729
|
+
options.addDeclaration({
|
|
730
|
+
name: "defaultCategory",
|
|
731
|
+
help: () => i18n.help_defaultCategory(),
|
|
732
|
+
defaultValue: "Other",
|
|
733
|
+
});
|
|
734
|
+
options.addDeclaration({
|
|
735
|
+
name: "categoryOrder",
|
|
736
|
+
help: () => i18n.help_categoryOrder(),
|
|
737
|
+
type: ParameterType.Array,
|
|
738
|
+
});
|
|
739
|
+
options.addDeclaration({
|
|
740
|
+
name: "groupOrder",
|
|
741
|
+
help: () => i18n.help_groupOrder(),
|
|
742
|
+
type: ParameterType.Array,
|
|
743
|
+
// default order specified in GroupPlugin to correctly handle localization.
|
|
744
|
+
});
|
|
745
|
+
options.addDeclaration({
|
|
746
|
+
name: "sort",
|
|
747
|
+
help: () => i18n.help_sort(),
|
|
748
|
+
type: ParameterType.Array,
|
|
749
|
+
defaultValue: OptionDefaults.sort,
|
|
750
|
+
validate(value) {
|
|
751
|
+
const invalid = setDifference(value, SORT_STRATEGIES);
|
|
752
|
+
if (invalid.size !== 0) {
|
|
753
|
+
throw new Error(i18n.option_0_specified_1_but_only_2_is_valid("sort", Array.from(invalid).join(", "), SORT_STRATEGIES.join(", ")));
|
|
754
|
+
}
|
|
755
|
+
},
|
|
756
|
+
});
|
|
757
|
+
options.addDeclaration({
|
|
758
|
+
name: "sortEntryPoints",
|
|
759
|
+
help: () => i18n.help_sortEntryPoints(),
|
|
760
|
+
type: ParameterType.Boolean,
|
|
761
|
+
defaultValue: true,
|
|
762
|
+
});
|
|
763
|
+
options.addDeclaration({
|
|
764
|
+
name: "kindSortOrder",
|
|
765
|
+
help: () => i18n.help_kindSortOrder(),
|
|
766
|
+
type: ParameterType.Array,
|
|
767
|
+
defaultValue: [],
|
|
768
|
+
validate(value) {
|
|
769
|
+
const invalid = setDifference(value, getEnumKeys(ReflectionKind));
|
|
770
|
+
if (invalid.size !== 0) {
|
|
771
|
+
throw new Error(i18n.option_0_specified_1_but_only_2_is_valid(`kindSortOrder`, Array.from(invalid).join(", "), getEnumKeys(ReflectionKind).join(", ")));
|
|
772
|
+
}
|
|
773
|
+
},
|
|
774
|
+
});
|
|
775
|
+
// MARK: General Options
|
|
776
|
+
options.addDeclaration({
|
|
777
|
+
name: "watch",
|
|
778
|
+
help: () => i18n.help_watch(),
|
|
779
|
+
type: ParameterType.Boolean,
|
|
780
|
+
});
|
|
781
|
+
options.addDeclaration({
|
|
782
|
+
name: "preserveWatchOutput",
|
|
783
|
+
help: () => i18n.help_preserveWatchOutput(),
|
|
784
|
+
type: ParameterType.Boolean,
|
|
785
|
+
});
|
|
786
|
+
options.addDeclaration({
|
|
787
|
+
name: "skipErrorChecking",
|
|
788
|
+
help: () => i18n.help_skipErrorChecking(),
|
|
789
|
+
type: ParameterType.Boolean,
|
|
790
|
+
defaultValue: false,
|
|
791
|
+
});
|
|
792
|
+
options.addDeclaration({
|
|
793
|
+
name: "help",
|
|
794
|
+
help: () => i18n.help_help(),
|
|
795
|
+
type: ParameterType.Boolean,
|
|
796
|
+
});
|
|
797
|
+
options.addDeclaration({
|
|
798
|
+
name: "version",
|
|
799
|
+
help: () => i18n.help_version(),
|
|
800
|
+
type: ParameterType.Boolean,
|
|
801
|
+
});
|
|
802
|
+
options.addDeclaration({
|
|
803
|
+
name: "showConfig",
|
|
804
|
+
help: () => i18n.help_showConfig(),
|
|
805
|
+
type: ParameterType.Boolean,
|
|
806
|
+
});
|
|
807
|
+
options.addDeclaration({
|
|
808
|
+
name: "plugin",
|
|
809
|
+
help: () => i18n.help_plugin(),
|
|
810
|
+
type: ParameterType.PluginArray,
|
|
811
|
+
});
|
|
812
|
+
options.addDeclaration({
|
|
813
|
+
name: "logLevel",
|
|
814
|
+
help: () => i18n.help_logLevel(),
|
|
815
|
+
type: ParameterType.Map,
|
|
816
|
+
map: LogLevel,
|
|
817
|
+
defaultValue: LogLevel.Info,
|
|
818
|
+
});
|
|
819
|
+
options.addDeclaration({
|
|
820
|
+
name: "treatWarningsAsErrors",
|
|
821
|
+
help: () => i18n.help_treatWarningsAsErrors(),
|
|
822
|
+
type: ParameterType.Boolean,
|
|
823
|
+
});
|
|
824
|
+
options.addDeclaration({
|
|
825
|
+
name: "treatValidationWarningsAsErrors",
|
|
826
|
+
help: () => i18n.help_treatValidationWarningsAsErrors(),
|
|
827
|
+
type: ParameterType.Boolean,
|
|
828
|
+
});
|
|
829
|
+
options.addDeclaration({
|
|
830
|
+
name: "intentionallyNotExported",
|
|
831
|
+
help: () => i18n.help_intentionallyNotExported(),
|
|
832
|
+
type: ParameterType.Array,
|
|
833
|
+
});
|
|
834
|
+
options.addDeclaration({
|
|
835
|
+
name: "requiredToBeDocumented",
|
|
836
|
+
help: () => i18n.help_requiredToBeDocumented(),
|
|
837
|
+
type: ParameterType.Array,
|
|
838
|
+
validate(values) {
|
|
839
|
+
// this is good enough because the values of the ReflectionKind enum are all numbers
|
|
840
|
+
const validValues = getEnumKeys(ReflectionKind);
|
|
841
|
+
for (const kind of values) {
|
|
842
|
+
if (!validValues.includes(kind)) {
|
|
843
|
+
throw new Error(i18n.option_0_specified_1_but_only_2_is_valid("requiredToBeDocumented", kind, validValues.join(", ")));
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
},
|
|
847
|
+
defaultValue: OptionDefaults.requiredToBeDocumented,
|
|
848
|
+
});
|
|
849
|
+
options.addDeclaration({
|
|
850
|
+
name: "packagesRequiringDocumentation",
|
|
851
|
+
help: () => i18n.help_packagesRequiringDocumentation(),
|
|
852
|
+
type: ParameterType.Array,
|
|
853
|
+
});
|
|
854
|
+
options.addDeclaration({
|
|
855
|
+
name: "intentionallyNotDocumented",
|
|
856
|
+
help: () => i18n.help_intentionallyNotDocumented(),
|
|
857
|
+
type: ParameterType.Array,
|
|
858
|
+
defaultValue: [],
|
|
859
|
+
});
|
|
860
|
+
options.addDeclaration({
|
|
861
|
+
name: "validation",
|
|
862
|
+
help: () => i18n.help_validation(),
|
|
863
|
+
type: ParameterType.Flags,
|
|
864
|
+
defaults: {
|
|
865
|
+
notExported: true,
|
|
866
|
+
invalidLink: true,
|
|
867
|
+
invalidPath: true,
|
|
868
|
+
rewrittenLink: true,
|
|
869
|
+
notDocumented: false,
|
|
870
|
+
unusedMergeModuleWith: true,
|
|
871
|
+
},
|
|
872
|
+
});
|
|
873
|
+
}
|
|
874
|
+
function isObject(x) {
|
|
875
|
+
return !!x && typeof x === "object" && !Array.isArray(x);
|
|
876
|
+
}
|