@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,553 @@
|
|
|
1
|
+
import type { Reflection, ReflectionId } from "./Reflection.js";
|
|
2
|
+
import type { DeclarationReflection } from "./DeclarationReflection.js";
|
|
3
|
+
import type { ProjectReflection } from "./ProjectReflection.js";
|
|
4
|
+
import type { Deserializer, JSONOutput, Serializer } from "#serialization";
|
|
5
|
+
import { ReflectionSymbolId } from "./ReflectionSymbolId.js";
|
|
6
|
+
import type { DeclarationReference } from "#utils";
|
|
7
|
+
import { type CommentDisplayPart } from "./Comment.js";
|
|
8
|
+
/**
|
|
9
|
+
* Base class of all type definitions.
|
|
10
|
+
* @category Types
|
|
11
|
+
*/
|
|
12
|
+
export declare abstract class Type {
|
|
13
|
+
/**
|
|
14
|
+
* The type name identifier.
|
|
15
|
+
*/
|
|
16
|
+
abstract readonly type: keyof TypeKindMap;
|
|
17
|
+
/**
|
|
18
|
+
* Return a string representation of this type.
|
|
19
|
+
*/
|
|
20
|
+
toString(): string;
|
|
21
|
+
/**
|
|
22
|
+
* Visit this type, returning the value returned by the visitor.
|
|
23
|
+
*/
|
|
24
|
+
visit<T, A extends any[] = []>(visitor: TypeVisitor<T, A>, ...args: A): T;
|
|
25
|
+
visit<T, A extends any[] = []>(visitor: Partial<TypeVisitor<T, A>>, ...args: A): T | undefined;
|
|
26
|
+
stringify(context: TypeContext): string;
|
|
27
|
+
abstract toObject(serializer: Serializer): JSONOutput.SomeType;
|
|
28
|
+
fromObject(_de: Deserializer, _obj: JSONOutput.SomeType): void;
|
|
29
|
+
abstract needsParenthesis(context: TypeContext): boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Implementation method for `toString`. `needsParenthesis` will be used to determine if
|
|
32
|
+
* the returned string should be wrapped in parenthesis.
|
|
33
|
+
*/
|
|
34
|
+
protected abstract getTypeString(): string;
|
|
35
|
+
/**
|
|
36
|
+
* Return the estimated size of the type if it was all printed on one line.
|
|
37
|
+
*/
|
|
38
|
+
estimatePrintWidth(): number;
|
|
39
|
+
}
|
|
40
|
+
/** @category Types */
|
|
41
|
+
export interface TypeKindMap {
|
|
42
|
+
array: ArrayType;
|
|
43
|
+
conditional: ConditionalType;
|
|
44
|
+
indexedAccess: IndexedAccessType;
|
|
45
|
+
inferred: InferredType;
|
|
46
|
+
intersection: IntersectionType;
|
|
47
|
+
intrinsic: IntrinsicType;
|
|
48
|
+
literal: LiteralType;
|
|
49
|
+
mapped: MappedType;
|
|
50
|
+
optional: OptionalType;
|
|
51
|
+
predicate: PredicateType;
|
|
52
|
+
query: QueryType;
|
|
53
|
+
reference: ReferenceType;
|
|
54
|
+
reflection: ReflectionType;
|
|
55
|
+
rest: RestType;
|
|
56
|
+
templateLiteral: TemplateLiteralType;
|
|
57
|
+
tuple: TupleType;
|
|
58
|
+
namedTupleMember: NamedTupleMember;
|
|
59
|
+
typeOperator: TypeOperatorType;
|
|
60
|
+
union: UnionType;
|
|
61
|
+
unknown: UnknownType;
|
|
62
|
+
}
|
|
63
|
+
export type TypeVisitor<T = void, A extends any[] = []> = {
|
|
64
|
+
[K in TypeKind]: (type: TypeKindMap[K], ...args: A) => T;
|
|
65
|
+
};
|
|
66
|
+
export declare function makeRecursiveVisitor(visitor: Partial<TypeVisitor>): TypeVisitor;
|
|
67
|
+
/** @category Types */
|
|
68
|
+
export type TypeKind = keyof TypeKindMap;
|
|
69
|
+
/** @category Types */
|
|
70
|
+
export type SomeType = TypeKindMap[keyof TypeKindMap];
|
|
71
|
+
/**
|
|
72
|
+
* Enumeration that can be used when traversing types to track the location of recursion.
|
|
73
|
+
* Used by TypeDoc internally to track when to output parenthesis when rendering.
|
|
74
|
+
* @enum
|
|
75
|
+
*/
|
|
76
|
+
export declare const TypeContext: {
|
|
77
|
+
readonly none: "none";
|
|
78
|
+
readonly templateLiteralElement: "templateLiteralElement";
|
|
79
|
+
readonly arrayElement: "arrayElement";
|
|
80
|
+
readonly indexedAccessElement: "indexedAccessElement";
|
|
81
|
+
readonly conditionalCheck: "conditionalCheck";
|
|
82
|
+
readonly conditionalExtends: "conditionalExtends";
|
|
83
|
+
readonly conditionalTrue: "conditionalTrue";
|
|
84
|
+
readonly conditionalFalse: "conditionalFalse";
|
|
85
|
+
readonly indexedIndex: "indexedIndex";
|
|
86
|
+
readonly indexedObject: "indexedObject";
|
|
87
|
+
readonly inferredConstraint: "inferredConstraint";
|
|
88
|
+
readonly intersectionElement: "intersectionElement";
|
|
89
|
+
readonly mappedName: "mappedName";
|
|
90
|
+
readonly mappedParameter: "mappedParameter";
|
|
91
|
+
readonly mappedTemplate: "mappedTemplate";
|
|
92
|
+
readonly optionalElement: "optionalElement";
|
|
93
|
+
readonly predicateTarget: "predicateTarget";
|
|
94
|
+
readonly queryTypeTarget: "queryTypeTarget";
|
|
95
|
+
readonly typeOperatorTarget: "typeOperatorTarget";
|
|
96
|
+
readonly referenceTypeArgument: "referenceTypeArgument";
|
|
97
|
+
readonly restElement: "restElement";
|
|
98
|
+
readonly tupleElement: "tupleElement";
|
|
99
|
+
readonly unionElement: "unionElement";
|
|
100
|
+
};
|
|
101
|
+
export type TypeContext = (typeof TypeContext)[keyof typeof TypeContext];
|
|
102
|
+
/**
|
|
103
|
+
* Represents an array type.
|
|
104
|
+
*
|
|
105
|
+
* ```ts
|
|
106
|
+
* let value: string[];
|
|
107
|
+
* ```
|
|
108
|
+
* @category Types
|
|
109
|
+
*/
|
|
110
|
+
export declare class ArrayType extends Type {
|
|
111
|
+
elementType: SomeType;
|
|
112
|
+
readonly type = "array";
|
|
113
|
+
/**
|
|
114
|
+
* @param elementType The type of the elements in the array.
|
|
115
|
+
*/
|
|
116
|
+
constructor(elementType: SomeType);
|
|
117
|
+
protected getTypeString(): string;
|
|
118
|
+
needsParenthesis(): boolean;
|
|
119
|
+
toObject(serializer: Serializer): JSONOutput.ArrayType;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Represents a conditional type.
|
|
123
|
+
*
|
|
124
|
+
* ```ts
|
|
125
|
+
* let value: Check extends Extends ? True : False;
|
|
126
|
+
* ```
|
|
127
|
+
* @category Types
|
|
128
|
+
*/
|
|
129
|
+
export declare class ConditionalType extends Type {
|
|
130
|
+
checkType: SomeType;
|
|
131
|
+
extendsType: SomeType;
|
|
132
|
+
trueType: SomeType;
|
|
133
|
+
falseType: SomeType;
|
|
134
|
+
readonly type = "conditional";
|
|
135
|
+
constructor(checkType: SomeType, extendsType: SomeType, trueType: SomeType, falseType: SomeType);
|
|
136
|
+
protected getTypeString(): string;
|
|
137
|
+
needsParenthesis(context: TypeContext): boolean;
|
|
138
|
+
toObject(serializer: Serializer): JSONOutput.ConditionalType;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Represents an indexed access type.
|
|
142
|
+
* @category Types
|
|
143
|
+
*/
|
|
144
|
+
export declare class IndexedAccessType extends Type {
|
|
145
|
+
objectType: SomeType;
|
|
146
|
+
indexType: SomeType;
|
|
147
|
+
readonly type = "indexedAccess";
|
|
148
|
+
constructor(objectType: SomeType, indexType: SomeType);
|
|
149
|
+
protected getTypeString(): string;
|
|
150
|
+
needsParenthesis(): boolean;
|
|
151
|
+
toObject(serializer: Serializer): JSONOutput.IndexedAccessType;
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Represents an inferred type, U in the example below.
|
|
155
|
+
*
|
|
156
|
+
* ```ts
|
|
157
|
+
* type Z = Promise<string> extends Promise<infer U> : never
|
|
158
|
+
* ```
|
|
159
|
+
* @category Types
|
|
160
|
+
*/
|
|
161
|
+
export declare class InferredType extends Type {
|
|
162
|
+
name: string;
|
|
163
|
+
constraint?: SomeType | undefined;
|
|
164
|
+
readonly type = "inferred";
|
|
165
|
+
constructor(name: string, constraint?: SomeType | undefined);
|
|
166
|
+
protected getTypeString(): string;
|
|
167
|
+
needsParenthesis(context: TypeContext): boolean;
|
|
168
|
+
toObject(serializer: Serializer): JSONOutput.InferredType;
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Represents an intersection type.
|
|
172
|
+
*
|
|
173
|
+
* ```ts
|
|
174
|
+
* let value: A & B;
|
|
175
|
+
* ```
|
|
176
|
+
* @category Types
|
|
177
|
+
*/
|
|
178
|
+
export declare class IntersectionType extends Type {
|
|
179
|
+
types: SomeType[];
|
|
180
|
+
readonly type = "intersection";
|
|
181
|
+
constructor(types: SomeType[]);
|
|
182
|
+
protected getTypeString(): string;
|
|
183
|
+
needsParenthesis(context: TypeContext): boolean;
|
|
184
|
+
toObject(serializer: Serializer): JSONOutput.IntersectionType;
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Represents an intrinsic type like `string` or `boolean`.
|
|
188
|
+
*
|
|
189
|
+
* ```ts
|
|
190
|
+
* let value: number;
|
|
191
|
+
* ```
|
|
192
|
+
* @category Types
|
|
193
|
+
*/
|
|
194
|
+
export declare class IntrinsicType extends Type {
|
|
195
|
+
name: string;
|
|
196
|
+
readonly type = "intrinsic";
|
|
197
|
+
constructor(name: string);
|
|
198
|
+
protected getTypeString(): string;
|
|
199
|
+
toObject(): JSONOutput.IntrinsicType;
|
|
200
|
+
needsParenthesis(): boolean;
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* Represents a literal type.
|
|
204
|
+
*
|
|
205
|
+
* ```ts
|
|
206
|
+
* type A = "A"
|
|
207
|
+
* type B = 1
|
|
208
|
+
* ```
|
|
209
|
+
* @category Types
|
|
210
|
+
*/
|
|
211
|
+
export declare class LiteralType extends Type {
|
|
212
|
+
value: string | number | boolean | null | bigint;
|
|
213
|
+
readonly type = "literal";
|
|
214
|
+
constructor(value: string | number | boolean | null | bigint);
|
|
215
|
+
/**
|
|
216
|
+
* Return a string representation of this type.
|
|
217
|
+
*/
|
|
218
|
+
protected getTypeString(): string;
|
|
219
|
+
needsParenthesis(): boolean;
|
|
220
|
+
toObject(): JSONOutput.LiteralType;
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* Represents a mapped type.
|
|
224
|
+
*
|
|
225
|
+
* ```ts
|
|
226
|
+
* { -readonly [K in Parameter as Name]?: Template }
|
|
227
|
+
* ```
|
|
228
|
+
* @category Types
|
|
229
|
+
*/
|
|
230
|
+
export declare class MappedType extends Type {
|
|
231
|
+
parameter: string;
|
|
232
|
+
parameterType: SomeType;
|
|
233
|
+
templateType: SomeType;
|
|
234
|
+
readonlyModifier?: "+" | "-" | undefined;
|
|
235
|
+
optionalModifier?: "+" | "-" | undefined;
|
|
236
|
+
nameType?: SomeType | undefined;
|
|
237
|
+
readonly type = "mapped";
|
|
238
|
+
constructor(parameter: string, parameterType: SomeType, templateType: SomeType, readonlyModifier?: "+" | "-" | undefined, optionalModifier?: "+" | "-" | undefined, nameType?: SomeType | undefined);
|
|
239
|
+
protected getTypeString(): string;
|
|
240
|
+
needsParenthesis(): boolean;
|
|
241
|
+
toObject(serializer: Serializer): JSONOutput.MappedType;
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* Represents an optional type
|
|
245
|
+
* ```ts
|
|
246
|
+
* type Z = [1, 2?]
|
|
247
|
+
* // ^^
|
|
248
|
+
* ```
|
|
249
|
+
* @category Types
|
|
250
|
+
*/
|
|
251
|
+
export declare class OptionalType extends Type {
|
|
252
|
+
elementType: SomeType;
|
|
253
|
+
readonly type = "optional";
|
|
254
|
+
constructor(elementType: SomeType);
|
|
255
|
+
protected getTypeString(): string;
|
|
256
|
+
needsParenthesis(): boolean;
|
|
257
|
+
toObject(serializer: Serializer): JSONOutput.OptionalType;
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* Represents a type predicate.
|
|
261
|
+
*
|
|
262
|
+
* ```ts
|
|
263
|
+
* function isString(x: unknown): x is string {}
|
|
264
|
+
* function assert(condition: boolean): asserts condition {}
|
|
265
|
+
* ```
|
|
266
|
+
* @category Types
|
|
267
|
+
*/
|
|
268
|
+
export declare class PredicateType extends Type {
|
|
269
|
+
name: string;
|
|
270
|
+
asserts: boolean;
|
|
271
|
+
targetType?: SomeType | undefined;
|
|
272
|
+
readonly type = "predicate";
|
|
273
|
+
/**
|
|
274
|
+
* Create a new PredicateType instance.
|
|
275
|
+
*
|
|
276
|
+
* @param name The identifier name which is tested by the predicate.
|
|
277
|
+
* @param asserts True if the type is of the form `asserts val is string`,
|
|
278
|
+
* false if the type is of the form `val is string`
|
|
279
|
+
* @param targetType The type that the identifier is tested to be.
|
|
280
|
+
* May be undefined if the type is of the form `asserts val`.
|
|
281
|
+
* Will be defined if the type is of the form `asserts val is string` or `val is string`.
|
|
282
|
+
*/
|
|
283
|
+
constructor(name: string, asserts: boolean, targetType?: SomeType | undefined);
|
|
284
|
+
/**
|
|
285
|
+
* Return a string representation of this type.
|
|
286
|
+
*/
|
|
287
|
+
protected getTypeString(): string;
|
|
288
|
+
needsParenthesis(): boolean;
|
|
289
|
+
toObject(serializer: Serializer): JSONOutput.PredicateType;
|
|
290
|
+
}
|
|
291
|
+
/**
|
|
292
|
+
* Represents a type that is constructed by querying the type of a reflection.
|
|
293
|
+
* ```ts
|
|
294
|
+
* const x = 1
|
|
295
|
+
* type Z = typeof x // query on reflection for x
|
|
296
|
+
* ```
|
|
297
|
+
* @category Types
|
|
298
|
+
*/
|
|
299
|
+
export declare class QueryType extends Type {
|
|
300
|
+
queryType: ReferenceType;
|
|
301
|
+
readonly type = "query";
|
|
302
|
+
constructor(queryType: ReferenceType);
|
|
303
|
+
protected getTypeString(): string;
|
|
304
|
+
/**
|
|
305
|
+
* @privateRemarks
|
|
306
|
+
* An argument could be made that this ought to return true for indexedObject
|
|
307
|
+
* since precedence is different than on the value side... if someone really cares
|
|
308
|
+
* they can easily use a custom theme to change this.
|
|
309
|
+
*/
|
|
310
|
+
needsParenthesis(): boolean;
|
|
311
|
+
toObject(serializer: Serializer): JSONOutput.QueryType;
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
* Represents a type that refers to another reflection like a class, interface or enum.
|
|
315
|
+
*
|
|
316
|
+
* ```ts
|
|
317
|
+
* let value: MyClass<T>;
|
|
318
|
+
* ```
|
|
319
|
+
* @category Types
|
|
320
|
+
*/
|
|
321
|
+
export declare class ReferenceType extends Type {
|
|
322
|
+
readonly type = "reference";
|
|
323
|
+
/**
|
|
324
|
+
* The name of the referenced type.
|
|
325
|
+
*
|
|
326
|
+
* If the symbol cannot be found because it's not part of the documentation this
|
|
327
|
+
* can be used to represent the type.
|
|
328
|
+
*/
|
|
329
|
+
name: string;
|
|
330
|
+
/**
|
|
331
|
+
* The type arguments of this reference.
|
|
332
|
+
*/
|
|
333
|
+
typeArguments?: SomeType[];
|
|
334
|
+
/**
|
|
335
|
+
* The resolved reflection.
|
|
336
|
+
*/
|
|
337
|
+
get reflection(): Reflection | undefined;
|
|
338
|
+
/**
|
|
339
|
+
* Sometimes a few properties are more important than the rest
|
|
340
|
+
* of the properties within a type. This occurs most often with
|
|
341
|
+
* object parameters, where users want to specify `@param foo.bar`
|
|
342
|
+
* to highlight something about the `bar` property.
|
|
343
|
+
*
|
|
344
|
+
* Does NOT support nested properties.
|
|
345
|
+
*/
|
|
346
|
+
highlightedProperties?: Map<string, CommentDisplayPart[]>;
|
|
347
|
+
/**
|
|
348
|
+
* If not resolved, the symbol id of the reflection, otherwise undefined.
|
|
349
|
+
*/
|
|
350
|
+
get symbolId(): ReflectionSymbolId | undefined;
|
|
351
|
+
/**
|
|
352
|
+
* Checks if this type is a reference type because it uses a name, but is intentionally not pointing
|
|
353
|
+
* to a reflection. This happens for type parameters and when representing a mapped type.
|
|
354
|
+
*/
|
|
355
|
+
isIntentionallyBroken(): boolean;
|
|
356
|
+
/**
|
|
357
|
+
* Convert this reference type to a declaration reference used for resolution of external types.
|
|
358
|
+
*/
|
|
359
|
+
toDeclarationReference(): DeclarationReference;
|
|
360
|
+
/**
|
|
361
|
+
* The fully qualified name of the referenced type, relative to the file it is defined in.
|
|
362
|
+
* This will usually be the same as `name`, unless namespaces are used.
|
|
363
|
+
*/
|
|
364
|
+
qualifiedName: string;
|
|
365
|
+
/**
|
|
366
|
+
* The package that this type is referencing.
|
|
367
|
+
*/
|
|
368
|
+
package?: string;
|
|
369
|
+
/**
|
|
370
|
+
* If this reference type refers to a reflection defined by a project not being rendered,
|
|
371
|
+
* points to the url that this type should be linked to.
|
|
372
|
+
*/
|
|
373
|
+
externalUrl?: string;
|
|
374
|
+
/**
|
|
375
|
+
* If set, no warnings about something not being exported should be created
|
|
376
|
+
* since this may be referring to a type created with `infer X` which will not
|
|
377
|
+
* be registered on the project.
|
|
378
|
+
*/
|
|
379
|
+
refersToTypeParameter: boolean;
|
|
380
|
+
/**
|
|
381
|
+
* If set, will prefer reflections with {@link ReflectionKind | ReflectionKinds} which represent
|
|
382
|
+
* values rather than those which represent types.
|
|
383
|
+
*/
|
|
384
|
+
preferValues: boolean;
|
|
385
|
+
private _target;
|
|
386
|
+
private _project;
|
|
387
|
+
private constructor();
|
|
388
|
+
static createUnresolvedReference(name: string, target: ReflectionSymbolId, project: ProjectReflection, qualifiedName: string): ReferenceType;
|
|
389
|
+
static createResolvedReference(name: string, target: Reflection | ReflectionId, project: ProjectReflection | null): ReferenceType;
|
|
390
|
+
/**
|
|
391
|
+
* This is used for type parameters, which don't actually point to something,
|
|
392
|
+
* and also for temporary references which will be cleaned up with real references
|
|
393
|
+
* later during conversion.
|
|
394
|
+
* @internal
|
|
395
|
+
*/
|
|
396
|
+
static createBrokenReference(name: string, project: ProjectReflection, packageName: string | undefined): ReferenceType;
|
|
397
|
+
protected getTypeString(): string;
|
|
398
|
+
needsParenthesis(): boolean;
|
|
399
|
+
toObject(serializer: Serializer): JSONOutput.ReferenceType;
|
|
400
|
+
fromObject(de: Deserializer, obj: JSONOutput.ReferenceType): void;
|
|
401
|
+
}
|
|
402
|
+
/**
|
|
403
|
+
* Represents a type which has it's own reflection like literal types.
|
|
404
|
+
* This type will likely go away at some point and be replaced by a dedicated
|
|
405
|
+
* `ObjectType`. Allowing reflections to be nested within types causes much
|
|
406
|
+
* pain in the rendering code.
|
|
407
|
+
*
|
|
408
|
+
* ```ts
|
|
409
|
+
* let value: { a: string, b: number };
|
|
410
|
+
* ```
|
|
411
|
+
* @category Types
|
|
412
|
+
*/
|
|
413
|
+
export declare class ReflectionType extends Type {
|
|
414
|
+
declaration: DeclarationReflection;
|
|
415
|
+
readonly type = "reflection";
|
|
416
|
+
constructor(declaration: DeclarationReflection);
|
|
417
|
+
protected getTypeString(): string;
|
|
418
|
+
needsParenthesis(where: TypeContext): boolean;
|
|
419
|
+
toObject(serializer: Serializer): JSONOutput.ReflectionType;
|
|
420
|
+
}
|
|
421
|
+
/**
|
|
422
|
+
* Represents a rest type
|
|
423
|
+
* ```ts
|
|
424
|
+
* type Z = [1, ...2[]]
|
|
425
|
+
* // ^^^^^^
|
|
426
|
+
* ```
|
|
427
|
+
* @category Types
|
|
428
|
+
*/
|
|
429
|
+
export declare class RestType extends Type {
|
|
430
|
+
elementType: SomeType;
|
|
431
|
+
readonly type = "rest";
|
|
432
|
+
constructor(elementType: SomeType);
|
|
433
|
+
protected getTypeString(): string;
|
|
434
|
+
needsParenthesis(): boolean;
|
|
435
|
+
toObject(serializer: Serializer): JSONOutput.RestType;
|
|
436
|
+
}
|
|
437
|
+
/**
|
|
438
|
+
* TS 4.1 template literal types
|
|
439
|
+
* ```ts
|
|
440
|
+
* type Z = `${'a' | 'b'}${'a' | 'b'}`
|
|
441
|
+
* ```
|
|
442
|
+
* @category Types
|
|
443
|
+
*/
|
|
444
|
+
export declare class TemplateLiteralType extends Type {
|
|
445
|
+
head: string;
|
|
446
|
+
tail: [SomeType, string][];
|
|
447
|
+
readonly type = "templateLiteral";
|
|
448
|
+
constructor(head: string, tail: [SomeType, string][]);
|
|
449
|
+
protected getTypeString(): string;
|
|
450
|
+
needsParenthesis(): boolean;
|
|
451
|
+
toObject(serializer: Serializer): JSONOutput.TemplateLiteralType;
|
|
452
|
+
}
|
|
453
|
+
/**
|
|
454
|
+
* Represents a tuple type.
|
|
455
|
+
*
|
|
456
|
+
* ```ts
|
|
457
|
+
* let value: [string, boolean];
|
|
458
|
+
* ```
|
|
459
|
+
* @category Types
|
|
460
|
+
*/
|
|
461
|
+
export declare class TupleType extends Type {
|
|
462
|
+
elements: SomeType[];
|
|
463
|
+
readonly type = "tuple";
|
|
464
|
+
/**
|
|
465
|
+
* @param elements The ordered type elements of the tuple type.
|
|
466
|
+
*/
|
|
467
|
+
constructor(elements: SomeType[]);
|
|
468
|
+
protected getTypeString(): string;
|
|
469
|
+
needsParenthesis(): boolean;
|
|
470
|
+
toObject(serializer: Serializer): JSONOutput.TupleType;
|
|
471
|
+
}
|
|
472
|
+
/**
|
|
473
|
+
* Represents a named member of a tuple type.
|
|
474
|
+
*
|
|
475
|
+
* ```ts
|
|
476
|
+
* let value: [name: string];
|
|
477
|
+
* ```
|
|
478
|
+
* @category Types
|
|
479
|
+
*/
|
|
480
|
+
export declare class NamedTupleMember extends Type {
|
|
481
|
+
name: string;
|
|
482
|
+
isOptional: boolean;
|
|
483
|
+
element: SomeType;
|
|
484
|
+
readonly type = "namedTupleMember";
|
|
485
|
+
constructor(name: string, isOptional: boolean, element: SomeType);
|
|
486
|
+
/**
|
|
487
|
+
* Return a string representation of this type.
|
|
488
|
+
*/
|
|
489
|
+
protected getTypeString(): string;
|
|
490
|
+
needsParenthesis(): boolean;
|
|
491
|
+
toObject(serializer: Serializer): JSONOutput.NamedTupleMemberType;
|
|
492
|
+
}
|
|
493
|
+
/**
|
|
494
|
+
* Represents a type operator type.
|
|
495
|
+
*
|
|
496
|
+
* ```ts
|
|
497
|
+
* class A {}
|
|
498
|
+
* class B<T extends keyof A> {}
|
|
499
|
+
* ```
|
|
500
|
+
* @category Types
|
|
501
|
+
*/
|
|
502
|
+
export declare class TypeOperatorType extends Type {
|
|
503
|
+
target: SomeType;
|
|
504
|
+
operator: "keyof" | "unique" | "readonly";
|
|
505
|
+
readonly type = "typeOperator";
|
|
506
|
+
constructor(target: SomeType, operator: "keyof" | "unique" | "readonly");
|
|
507
|
+
protected getTypeString(): string;
|
|
508
|
+
needsParenthesis(context: TypeContext): boolean;
|
|
509
|
+
toObject(serializer: Serializer): JSONOutput.TypeOperatorType;
|
|
510
|
+
}
|
|
511
|
+
/**
|
|
512
|
+
* Represents an union type.
|
|
513
|
+
*
|
|
514
|
+
* ```ts
|
|
515
|
+
* let value: string | string[];
|
|
516
|
+
* ```
|
|
517
|
+
* @category Types
|
|
518
|
+
*/
|
|
519
|
+
export declare class UnionType extends Type {
|
|
520
|
+
types: SomeType[];
|
|
521
|
+
readonly type = "union";
|
|
522
|
+
/**
|
|
523
|
+
* If present, there should be as many items in this array as there are items in the {@link types} array.
|
|
524
|
+
*
|
|
525
|
+
* This member is only valid on unions which are on {@link DeclarationReflection.type | DeclarationReflection.type} with a
|
|
526
|
+
* {@link ReflectionKind} `kind` of `TypeAlias`. Specifying it on any other union is undefined behavior.
|
|
527
|
+
*/
|
|
528
|
+
elementSummaries?: CommentDisplayPart[][];
|
|
529
|
+
constructor(types: SomeType[]);
|
|
530
|
+
protected getTypeString(): string;
|
|
531
|
+
needsParenthesis(context: TypeContext): boolean;
|
|
532
|
+
fromObject(de: Deserializer, obj: JSONOutput.UnionType): void;
|
|
533
|
+
toObject(serializer: Serializer): JSONOutput.UnionType;
|
|
534
|
+
}
|
|
535
|
+
/**
|
|
536
|
+
* Represents all unknown types that cannot be converted by TypeDoc.
|
|
537
|
+
* @category Types
|
|
538
|
+
*/
|
|
539
|
+
export declare class UnknownType extends Type {
|
|
540
|
+
readonly type = "unknown";
|
|
541
|
+
/**
|
|
542
|
+
* A string representation of the type as returned from TypeScript compiler.
|
|
543
|
+
*/
|
|
544
|
+
name: string;
|
|
545
|
+
constructor(name: string);
|
|
546
|
+
protected getTypeString(): string;
|
|
547
|
+
/**
|
|
548
|
+
* Always returns true if not at the root level, we have no idea what's in here, so wrap it in parenthesis
|
|
549
|
+
* to be extra safe.
|
|
550
|
+
*/
|
|
551
|
+
needsParenthesis(context: TypeContext): boolean;
|
|
552
|
+
toObject(): JSONOutput.UnknownType;
|
|
553
|
+
}
|