typedoc 0.26.11 → 0.27.0-beta.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/bin/package.json +3 -0
- package/bin/typedoc +1 -1
- package/dist/index.d.ts +23 -13
- package/dist/index.js +22 -81
- package/dist/lib/application-events.js +1 -4
- package/dist/lib/application.d.ts +26 -16
- package/dist/lib/application.js +222 -242
- package/dist/lib/cli.js +3 -40
- package/dist/lib/converter/comments/blockLexer.d.ts +1 -1
- package/dist/lib/converter/comments/blockLexer.js +24 -30
- package/dist/lib/converter/comments/declarationReference.js +10 -21
- package/dist/lib/converter/comments/declarationReferenceResolver.d.ts +2 -2
- package/dist/lib/converter/comments/declarationReferenceResolver.js +40 -36
- package/dist/lib/converter/comments/discovery.d.ts +4 -4
- package/dist/lib/converter/comments/discovery.js +154 -172
- package/dist/lib/converter/comments/index.d.ts +4 -4
- package/dist/lib/converter/comments/index.js +39 -50
- package/dist/lib/converter/comments/lexer.d.ts +1 -1
- package/dist/lib/converter/comments/lexer.js +2 -5
- package/dist/lib/converter/comments/lineLexer.d.ts +1 -1
- package/dist/lib/converter/comments/lineLexer.js +12 -15
- package/dist/lib/converter/comments/linkResolver.d.ts +2 -2
- package/dist/lib/converter/comments/linkResolver.js +14 -21
- package/dist/lib/converter/comments/parser.d.ts +6 -6
- package/dist/lib/converter/comments/parser.js +69 -96
- package/dist/lib/converter/comments/rawLexer.d.ts +1 -1
- package/dist/lib/converter/comments/rawLexer.js +13 -16
- package/dist/lib/converter/comments/tagName.js +1 -4
- package/dist/lib/converter/comments/textParser.d.ts +4 -4
- package/dist/lib/converter/comments/textParser.js +28 -30
- package/dist/lib/converter/components.d.ts +2 -3
- package/dist/lib/converter/components.js +2 -7
- package/dist/lib/converter/context.d.ts +9 -9
- package/dist/lib/converter/context.js +54 -44
- package/dist/lib/converter/convert-expression.js +16 -23
- package/dist/lib/converter/converter-events.d.ts +1 -0
- package/dist/lib/converter/converter-events.js +2 -4
- package/dist/lib/converter/converter.d.ts +16 -13
- package/dist/lib/converter/converter.js +210 -238
- package/dist/lib/converter/factories/index-signature.d.ts +1 -1
- package/dist/lib/converter/factories/index-signature.js +11 -17
- package/dist/lib/converter/factories/signature.d.ts +2 -2
- package/dist/lib/converter/factories/signature.js +95 -106
- package/dist/lib/converter/index.d.ts +6 -7
- package/dist/lib/converter/index.js +3 -11
- package/dist/lib/converter/jsdoc.d.ts +1 -1
- package/dist/lib/converter/jsdoc.js +34 -41
- package/dist/lib/converter/plugins/CategoryPlugin.d.ts +6 -21
- package/dist/lib/converter/plugins/CategoryPlugin.js +57 -139
- package/dist/lib/converter/plugins/CommentPlugin.d.ts +3 -5
- package/dist/lib/converter/plugins/CommentPlugin.js +153 -163
- package/dist/lib/converter/plugins/GroupPlugin.d.ts +10 -9
- package/dist/lib/converter/plugins/GroupPlugin.js +87 -124
- package/dist/lib/converter/plugins/ImplementsPlugin.d.ts +3 -5
- package/dist/lib/converter/plugins/ImplementsPlugin.js +255 -321
- package/dist/lib/converter/plugins/IncludePlugin.d.ts +11 -0
- package/dist/lib/converter/plugins/IncludePlugin.js +72 -0
- package/dist/lib/converter/plugins/InheritDocPlugin.d.ts +4 -3
- package/dist/lib/converter/plugins/InheritDocPlugin.js +41 -72
- package/dist/lib/converter/plugins/LinkResolverPlugin.d.ts +5 -5
- package/dist/lib/converter/plugins/LinkResolverPlugin.js +37 -58
- package/dist/lib/converter/plugins/MergeModuleWithPlugin.d.ts +12 -0
- package/dist/lib/converter/plugins/MergeModuleWithPlugin.js +49 -0
- package/dist/lib/converter/plugins/PackagePlugin.d.ts +4 -3
- package/dist/lib/converter/plugins/PackagePlugin.js +62 -111
- package/dist/lib/converter/plugins/SourcePlugin.d.ts +3 -5
- package/dist/lib/converter/plugins/SourcePlugin.js +69 -110
- package/dist/lib/converter/plugins/TypePlugin.d.ts +4 -6
- package/dist/lib/converter/plugins/TypePlugin.js +95 -158
- package/dist/lib/converter/plugins/index.d.ts +10 -9
- package/dist/lib/converter/plugins/index.js +10 -21
- package/dist/lib/converter/symbols.d.ts +1 -1
- package/dist/lib/converter/symbols.js +234 -227
- package/dist/lib/converter/types.d.ts +2 -2
- package/dist/lib/converter/types.js +252 -237
- package/dist/lib/converter/utils/nodes.js +5 -13
- package/dist/lib/converter/utils/reflections.d.ts +1 -1
- package/dist/lib/converter/utils/reflections.js +4 -7
- package/dist/lib/converter/utils/repository.d.ts +1 -1
- package/dist/lib/converter/utils/repository.js +103 -97
- package/dist/lib/converter/utils/symbols.js +3 -9
- package/dist/lib/internationalization/index.d.ts +3 -4
- package/dist/lib/internationalization/index.js +3 -8
- package/dist/lib/internationalization/internationalization.d.ts +5 -4
- package/dist/lib/internationalization/internationalization.js +97 -103
- package/dist/lib/internationalization/locale-utils.cjs +8 -0
- package/dist/lib/internationalization/locale-utils.d.cts +8 -0
- package/dist/lib/internationalization/locales/en.cjs +366 -2
- package/dist/lib/internationalization/locales/en.d.cts +339 -2
- package/dist/lib/internationalization/locales/jp.cjs +8 -11
- package/dist/lib/internationalization/locales/jp.d.cts +310 -1
- package/dist/lib/internationalization/locales/ko.cjs +7 -9
- package/dist/lib/internationalization/locales/ko.d.cts +223 -1
- package/dist/lib/internationalization/locales/zh.cjs +7 -10
- package/dist/lib/internationalization/locales/zh.d.cts +381 -1
- package/dist/lib/internationalization/translatable.d.ts +4 -327
- package/dist/lib/internationalization/translatable.js +2 -360
- package/dist/lib/models/FileRegistry.d.ts +20 -9
- package/dist/lib/models/FileRegistry.js +54 -45
- package/dist/lib/models/ReflectionCategory.d.ts +2 -2
- package/dist/lib/models/ReflectionCategory.js +16 -12
- package/dist/lib/models/ReflectionGroup.d.ts +3 -3
- package/dist/lib/models/ReflectionGroup.js +23 -14
- package/dist/lib/models/comments/comment.d.ts +23 -37
- package/dist/lib/models/comments/comment.js +388 -325
- package/dist/lib/models/comments/index.d.ts +2 -2
- package/dist/lib/models/comments/index.js +1 -6
- package/dist/lib/models/index.d.ts +7 -7
- package/dist/lib/models/index.js +7 -23
- package/dist/lib/models/reflections/ReflectionSymbolId.d.ts +2 -2
- package/dist/lib/models/reflections/ReflectionSymbolId.js +42 -34
- package/dist/lib/models/reflections/abstract.d.ts +17 -20
- package/dist/lib/models/reflections/abstract.js +249 -256
- package/dist/lib/models/reflections/container.d.ts +7 -7
- package/dist/lib/models/reflections/container.js +43 -16
- package/dist/lib/models/reflections/declaration.d.ts +15 -12
- package/dist/lib/models/reflections/declaration.js +150 -29
- package/dist/lib/models/reflections/document.d.ts +3 -3
- package/dist/lib/models/reflections/document.js +26 -13
- package/dist/lib/models/reflections/index.d.ts +15 -15
- package/dist/lib/models/reflections/index.js +12 -31
- package/dist/lib/models/reflections/kind.d.ts +1 -1
- package/dist/lib/models/reflections/kind.js +3 -6
- package/dist/lib/models/reflections/parameter.d.ts +5 -4
- package/dist/lib/models/reflections/parameter.js +11 -13
- package/dist/lib/models/reflections/project.d.ts +14 -9
- package/dist/lib/models/reflections/project.js +104 -56
- package/dist/lib/models/reflections/reference.d.ts +3 -3
- package/dist/lib/models/reflections/reference.js +6 -9
- package/dist/lib/models/reflections/signature.d.ts +8 -8
- package/dist/lib/models/reflections/signature.js +35 -14
- package/dist/lib/models/reflections/type-parameter.d.ts +5 -5
- package/dist/lib/models/reflections/type-parameter.js +9 -10
- package/dist/lib/models/reflections/utils.js +1 -4
- package/dist/lib/models/reflections/variant.d.ts +8 -7
- package/dist/lib/models/reflections/variant.js +1 -2
- package/dist/lib/models/sources/file.d.ts +2 -2
- package/dist/lib/models/sources/file.js +22 -5
- package/dist/lib/models/sources/index.d.ts +1 -1
- package/dist/lib/models/sources/index.js +1 -5
- package/dist/lib/models/types.d.ts +26 -13
- package/dist/lib/models/types.js +236 -151
- package/dist/lib/output/components.d.ts +5 -11
- package/dist/lib/output/components.js +84 -125
- package/dist/lib/output/events.d.ts +3 -3
- package/dist/lib/output/events.js +128 -94
- package/dist/lib/output/formatter.d.ts +84 -0
- package/dist/lib/output/formatter.js +619 -0
- package/dist/lib/output/index.d.ts +9 -8
- package/dist/lib/output/index.js +7 -19
- package/dist/lib/output/models/UrlMapping.d.ts +2 -2
- package/dist/lib/output/models/UrlMapping.js +4 -5
- package/dist/lib/output/output.d.ts +13 -0
- package/dist/lib/output/output.js +72 -0
- package/dist/lib/output/plugins/AssetsPlugin.d.ts +7 -8
- package/dist/lib/output/plugins/AssetsPlugin.js +62 -80
- package/dist/lib/output/plugins/IconsPlugin.d.ts +3 -2
- package/dist/lib/output/plugins/IconsPlugin.js +28 -84
- package/dist/lib/output/plugins/JavascriptIndexPlugin.d.ts +9 -2
- package/dist/lib/output/plugins/JavascriptIndexPlugin.js +90 -96
- package/dist/lib/output/plugins/NavigationPlugin.d.ts +3 -2
- package/dist/lib/output/plugins/NavigationPlugin.js +22 -102
- package/dist/lib/output/plugins/SitemapPlugin.d.ts +3 -2
- package/dist/lib/output/plugins/SitemapPlugin.js +60 -120
- package/dist/lib/output/plugins/index.d.ts +6 -6
- package/dist/lib/output/plugins/index.js +6 -15
- package/dist/lib/output/renderer.d.ts +14 -13
- package/dist/lib/output/renderer.js +129 -185
- package/dist/lib/output/theme.d.ts +9 -5
- package/dist/lib/output/theme.js +14 -62
- package/dist/lib/output/themes/MarkedPlugin.d.ts +8 -9
- package/dist/lib/output/themes/MarkedPlugin.js +152 -117
- package/dist/lib/output/themes/default/DefaultTheme.d.ts +17 -29
- package/dist/lib/output/themes/default/DefaultTheme.js +334 -310
- package/dist/lib/output/themes/default/DefaultThemeRenderContext.d.ts +63 -48
- package/dist/lib/output/themes/default/DefaultThemeRenderContext.js +119 -95
- package/dist/lib/output/themes/default/Slugger.d.ts +13 -0
- package/dist/lib/output/themes/default/Slugger.js +46 -0
- package/dist/lib/output/themes/default/layouts/default.d.ts +5 -5
- package/dist/lib/output/themes/default/layouts/default.js +47 -36
- package/dist/lib/output/themes/default/partials/anchor-icon.d.ts +2 -2
- package/dist/lib/output/themes/default/partials/anchor-icon.js +4 -7
- package/dist/lib/output/themes/default/partials/breadcrumb.d.ts +3 -3
- package/dist/lib/output/themes/default/partials/breadcrumb.js +4 -8
- package/dist/lib/output/themes/default/partials/comment.d.ts +6 -4
- package/dist/lib/output/themes/default/partials/comment.js +52 -29
- package/dist/lib/output/themes/default/partials/footer.d.ts +2 -2
- package/dist/lib/output/themes/default/partials/footer.js +11 -14
- package/dist/lib/output/themes/default/partials/header.d.ts +4 -4
- package/dist/lib/output/themes/default/partials/header.js +9 -13
- package/dist/lib/output/themes/default/partials/hierarchy.d.ts +3 -3
- package/dist/lib/output/themes/default/partials/hierarchy.js +9 -12
- package/dist/lib/output/themes/default/partials/icon.d.ts +4 -4
- package/dist/lib/output/themes/default/partials/icon.js +78 -73
- package/dist/lib/output/themes/default/partials/index.d.ts +3 -3
- package/dist/lib/output/themes/default/partials/index.js +19 -22
- package/dist/lib/output/themes/default/partials/member.d.ts +3 -3
- package/dist/lib/output/themes/default/partials/member.declaration.d.ts +3 -3
- package/dist/lib/output/themes/default/partials/member.declaration.js +18 -61
- package/dist/lib/output/themes/default/partials/member.getterSetter.d.ts +3 -3
- package/dist/lib/output/themes/default/partials/member.getterSetter.js +10 -26
- package/dist/lib/output/themes/default/partials/member.js +19 -24
- package/dist/lib/output/themes/default/partials/member.signature.body.d.ts +3 -3
- package/dist/lib/output/themes/default/partials/member.signature.body.js +17 -21
- package/dist/lib/output/themes/default/partials/member.signature.title.d.ts +4 -7
- package/dist/lib/output/themes/default/partials/member.signature.title.js +8 -35
- package/dist/lib/output/themes/default/partials/member.signatures.d.ts +3 -3
- package/dist/lib/output/themes/default/partials/member.signatures.js +9 -13
- package/dist/lib/output/themes/default/partials/member.sources.d.ts +3 -3
- package/dist/lib/output/themes/default/partials/member.sources.js +13 -17
- package/dist/lib/output/themes/default/partials/members.d.ts +3 -3
- package/dist/lib/output/themes/default/partials/members.js +10 -42
- package/dist/lib/output/themes/default/partials/moduleReflection.d.ts +5 -0
- package/dist/lib/output/themes/default/partials/moduleReflection.js +62 -0
- package/dist/lib/output/themes/default/partials/navigation.d.ts +4 -4
- package/dist/lib/output/themes/default/partials/navigation.js +51 -62
- package/dist/lib/output/themes/default/partials/reflectionPreview.d.ts +3 -3
- package/dist/lib/output/themes/default/partials/reflectionPreview.js +12 -15
- package/dist/lib/output/themes/default/partials/toolbar.d.ts +4 -4
- package/dist/lib/output/themes/default/partials/toolbar.js +16 -20
- package/dist/lib/output/themes/default/partials/type.d.ts +4 -6
- package/dist/lib/output/themes/default/partials/type.js +8 -388
- package/dist/lib/output/themes/default/partials/typeAndParent.d.ts +3 -3
- package/dist/lib/output/themes/default/partials/typeAndParent.js +11 -15
- package/dist/lib/output/themes/default/partials/typeDetails.d.ts +8 -0
- package/dist/lib/output/themes/default/partials/typeDetails.js +221 -0
- package/dist/lib/output/themes/default/partials/typeParameters.d.ts +3 -3
- package/dist/lib/output/themes/default/partials/typeParameters.js +14 -17
- package/dist/lib/output/themes/default/templates/document.d.ts +4 -4
- package/dist/lib/output/themes/default/templates/document.js +3 -7
- package/dist/lib/output/themes/default/templates/hierarchy.d.ts +4 -4
- package/dist/lib/output/themes/default/templates/hierarchy.js +10 -13
- package/dist/lib/output/themes/default/templates/index.d.ts +4 -4
- package/dist/lib/output/themes/default/templates/index.js +3 -7
- package/dist/lib/output/themes/default/templates/reflection.d.ts +4 -4
- package/dist/lib/output/themes/default/templates/reflection.js +31 -34
- package/dist/lib/output/themes/lib.d.ts +17 -3
- package/dist/lib/output/themes/lib.js +110 -49
- package/dist/lib/serialization/components.d.ts +2 -5
- package/dist/lib/serialization/components.js +1 -2
- package/dist/lib/serialization/deserializer.d.ts +21 -7
- package/dist/lib/serialization/deserializer.js +138 -123
- package/dist/lib/serialization/events.d.ts +2 -2
- package/dist/lib/serialization/events.js +6 -5
- package/dist/lib/serialization/index.d.ts +5 -5
- package/dist/lib/serialization/index.js +4 -33
- package/dist/lib/serialization/schema.d.ts +8 -2
- package/dist/lib/serialization/schema.js +2 -2
- package/dist/lib/serialization/serializer.d.ts +11 -5
- package/dist/lib/serialization/serializer.js +32 -25
- package/dist/lib/utils/array.d.ts +3 -0
- package/dist/lib/utils/array.js +26 -27
- package/dist/lib/utils/component.d.ts +2 -44
- package/dist/lib/utils/component.js +10 -102
- package/dist/lib/utils/entry-point.d.ts +3 -4
- package/dist/lib/utils/entry-point.js +114 -85
- package/dist/lib/utils/enum.js +6 -14
- package/dist/lib/utils/events.js +6 -12
- package/dist/lib/utils/fs.js +50 -91
- package/dist/lib/utils/general.d.ts +2 -1
- package/dist/lib/utils/general.js +50 -40
- package/dist/lib/utils/highlighter.js +30 -57
- package/dist/lib/utils/hooks.js +7 -13
- 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 +8 -0
- package/dist/lib/utils/html.js +81 -34
- package/dist/lib/utils/index.d.ts +22 -22
- package/dist/lib/utils/index.js +20 -91
- package/dist/lib/utils/jsx.d.ts +12 -5
- package/dist/lib/utils/jsx.elements.js +1 -4
- package/dist/lib/utils/jsx.js +53 -20
- package/dist/lib/utils/loggers.d.ts +3 -3
- package/dist/lib/utils/loggers.js +36 -46
- package/dist/lib/utils/map.js +6 -13
- package/dist/lib/utils/minimalSourceFile.js +5 -7
- package/dist/lib/utils/options/declaration.d.ts +33 -7
- package/dist/lib/utils/options/declaration.js +20 -22
- package/dist/lib/utils/options/defaults.d.ts +3 -2
- package/dist/lib/utils/options/defaults.js +18 -38
- package/dist/lib/utils/options/help.d.ts +2 -2
- package/dist/lib/utils/options/help.js +7 -10
- package/dist/lib/utils/options/index.d.ts +6 -6
- package/dist/lib/utils/options/index.js +4 -18
- package/dist/lib/utils/options/options.d.ts +8 -5
- package/dist/lib/utils/options/options.js +47 -71
- package/dist/lib/utils/options/readers/arguments.d.ts +2 -2
- package/dist/lib/utils/options/readers/arguments.js +15 -17
- package/dist/lib/utils/options/readers/index.d.ts +4 -4
- package/dist/lib/utils/options/readers/index.js +4 -11
- package/dist/lib/utils/options/readers/package-json.d.ts +3 -3
- package/dist/lib/utils/options/readers/package-json.js +15 -21
- package/dist/lib/utils/options/readers/tsconfig.d.ts +2 -2
- package/dist/lib/utils/options/readers/tsconfig.js +54 -63
- package/dist/lib/utils/options/readers/typedoc.d.ts +3 -3
- package/dist/lib/utils/options/readers/typedoc.js +44 -76
- package/dist/lib/utils/options/sources/index.d.ts +1 -1
- package/dist/lib/utils/options/sources/index.js +1 -5
- package/dist/lib/utils/options/sources/typedoc.d.ts +1 -1
- package/dist/lib/utils/options/sources/typedoc.js +220 -196
- package/dist/lib/utils/options/tsdoc-defaults.d.ts +3 -3
- package/dist/lib/utils/options/tsdoc-defaults.js +16 -12
- package/dist/lib/utils/package-manifest.d.ts +1 -1
- package/dist/lib/utils/package-manifest.js +15 -19
- package/dist/lib/utils/paths.js +9 -15
- package/dist/lib/utils/perf.js +6 -11
- package/dist/lib/utils/plugins.d.ts +1 -1
- package/dist/lib/utils/plugins.js +7 -10
- package/dist/lib/utils/reflections.d.ts +1 -1
- package/dist/lib/utils/reflections.js +9 -12
- package/dist/lib/utils/set.js +2 -6
- package/dist/lib/utils/sort.d.ts +3 -3
- package/dist/lib/utils/sort.js +20 -24
- package/dist/lib/utils/tsconfig.d.ts +1 -1
- package/dist/lib/utils/tsconfig.js +13 -21
- package/dist/lib/utils/tsutils.d.ts +1 -1
- package/dist/lib/utils/tsutils.js +3 -30
- package/dist/lib/utils/validation.js +6 -12
- package/dist/lib/validation/documentation.d.ts +2 -2
- package/dist/lib/validation/documentation.js +26 -29
- package/dist/lib/validation/exports.d.ts +2 -2
- package/dist/lib/validation/exports.js +9 -11
- package/dist/lib/validation/links.d.ts +2 -2
- package/dist/lib/validation/links.js +4 -7
- package/dist/lib/validation/unusedMergeModuleWith.d.ts +3 -0
- package/dist/lib/validation/unusedMergeModuleWith.js +11 -0
- package/package.json +14 -11
- package/static/main.js +4 -4
- package/static/style.css +91 -2
- package/tsdoc.json +30 -0
- package/dist/lib/output/themes/default/partials/member.reference.d.ts +0 -4
- package/dist/lib/output/themes/default/partials/member.reference.js +0 -30
- package/dist/lib/output/themes/default/partials/parameter.d.ts +0 -4
- package/dist/lib/output/themes/default/partials/parameter.js +0 -79
- package/dist/lib/utils/html-entities.json +0 -2326
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
3
2
|
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
|
|
4
3
|
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
@@ -33,13 +32,10 @@ var __runInitializers = (this && this.__runInitializers) || function (thisArg, i
|
|
|
33
32
|
}
|
|
34
33
|
return useValue ? value : void 0;
|
|
35
34
|
};
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
const utils_1 = require("./utils");
|
|
41
|
-
const kind_1 = require("./kind");
|
|
42
|
-
const general_1 = require("../../utils/general");
|
|
35
|
+
import { Comment } from "../comments/comment.js";
|
|
36
|
+
import { splitUnquotedString } from "./utils.js";
|
|
37
|
+
import { ReflectionKind } from "./kind.js";
|
|
38
|
+
import { NonEnumerable } from "../../utils/general.js";
|
|
43
39
|
/**
|
|
44
40
|
* Current reflection id.
|
|
45
41
|
*/
|
|
@@ -49,10 +45,10 @@ let REFLECTION_ID = 0;
|
|
|
49
45
|
*
|
|
50
46
|
* Used by the test cases to ensure the reflection ids won't change between runs.
|
|
51
47
|
*/
|
|
52
|
-
function resetReflectionID() {
|
|
48
|
+
export function resetReflectionID() {
|
|
53
49
|
REFLECTION_ID = 0;
|
|
54
50
|
}
|
|
55
|
-
var ReflectionFlag;
|
|
51
|
+
export var ReflectionFlag;
|
|
56
52
|
(function (ReflectionFlag) {
|
|
57
53
|
ReflectionFlag[ReflectionFlag["None"] = 0] = "None";
|
|
58
54
|
ReflectionFlag[ReflectionFlag["Private"] = 1] = "Private";
|
|
@@ -66,13 +62,12 @@ var ReflectionFlag;
|
|
|
66
62
|
ReflectionFlag[ReflectionFlag["Const"] = 256] = "Const";
|
|
67
63
|
ReflectionFlag[ReflectionFlag["Readonly"] = 512] = "Readonly";
|
|
68
64
|
ReflectionFlag[ReflectionFlag["Inherited"] = 1024] = "Inherited";
|
|
69
|
-
})(ReflectionFlag || (
|
|
65
|
+
})(ReflectionFlag || (ReflectionFlag = {}));
|
|
70
66
|
const relevantFlags = [
|
|
71
67
|
ReflectionFlag.Private,
|
|
72
68
|
ReflectionFlag.Protected,
|
|
73
69
|
ReflectionFlag.Static,
|
|
74
70
|
ReflectionFlag.Optional,
|
|
75
|
-
ReflectionFlag.Rest,
|
|
76
71
|
ReflectionFlag.Abstract,
|
|
77
72
|
ReflectionFlag.Const,
|
|
78
73
|
ReflectionFlag.Readonly,
|
|
@@ -80,10 +75,8 @@ const relevantFlags = [
|
|
|
80
75
|
/**
|
|
81
76
|
* This must extend Array in order to work with Handlebar's each helper.
|
|
82
77
|
*/
|
|
83
|
-
class ReflectionFlags {
|
|
84
|
-
|
|
85
|
-
this.flags = ReflectionFlag.None;
|
|
86
|
-
}
|
|
78
|
+
export class ReflectionFlags {
|
|
79
|
+
flags = ReflectionFlag.None;
|
|
87
80
|
hasFlag(flag) {
|
|
88
81
|
return (flag & this.flags) !== 0;
|
|
89
82
|
}
|
|
@@ -187,6 +180,19 @@ class ReflectionFlags {
|
|
|
187
180
|
this.flags |= flag;
|
|
188
181
|
}
|
|
189
182
|
}
|
|
183
|
+
static serializedFlags = [
|
|
184
|
+
"isPrivate",
|
|
185
|
+
"isProtected",
|
|
186
|
+
"isPublic",
|
|
187
|
+
"isStatic",
|
|
188
|
+
"isExternal",
|
|
189
|
+
"isOptional",
|
|
190
|
+
"isRest",
|
|
191
|
+
"isAbstract",
|
|
192
|
+
"isConst",
|
|
193
|
+
"isReadonly",
|
|
194
|
+
"isInherited",
|
|
195
|
+
];
|
|
190
196
|
toObject() {
|
|
191
197
|
return Object.fromEntries(ReflectionFlags.serializedFlags
|
|
192
198
|
.filter((flag) => this[flag])
|
|
@@ -201,21 +207,7 @@ class ReflectionFlags {
|
|
|
201
207
|
}
|
|
202
208
|
}
|
|
203
209
|
}
|
|
204
|
-
|
|
205
|
-
ReflectionFlags.serializedFlags = [
|
|
206
|
-
"isPrivate",
|
|
207
|
-
"isProtected",
|
|
208
|
-
"isPublic",
|
|
209
|
-
"isStatic",
|
|
210
|
-
"isExternal",
|
|
211
|
-
"isOptional",
|
|
212
|
-
"isRest",
|
|
213
|
-
"isAbstract",
|
|
214
|
-
"isConst",
|
|
215
|
-
"isReadonly",
|
|
216
|
-
"isInherited",
|
|
217
|
-
];
|
|
218
|
-
var TraverseProperty;
|
|
210
|
+
export var TraverseProperty;
|
|
219
211
|
(function (TraverseProperty) {
|
|
220
212
|
TraverseProperty[TraverseProperty["Children"] = 0] = "Children";
|
|
221
213
|
TraverseProperty[TraverseProperty["Documents"] = 1] = "Documents";
|
|
@@ -226,7 +218,7 @@ var TraverseProperty;
|
|
|
226
218
|
TraverseProperty[TraverseProperty["IndexSignature"] = 6] = "IndexSignature";
|
|
227
219
|
TraverseProperty[TraverseProperty["GetSignature"] = 7] = "GetSignature";
|
|
228
220
|
TraverseProperty[TraverseProperty["SetSignature"] = 8] = "SetSignature";
|
|
229
|
-
})(TraverseProperty || (
|
|
221
|
+
})(TraverseProperty || (TraverseProperty = {}));
|
|
230
222
|
/**
|
|
231
223
|
* Base class for all reflection classes.
|
|
232
224
|
*
|
|
@@ -240,243 +232,244 @@ var TraverseProperty;
|
|
|
240
232
|
* @category Reflections
|
|
241
233
|
*/
|
|
242
234
|
let Reflection = (() => {
|
|
243
|
-
var _a;
|
|
244
235
|
let _parent_decorators;
|
|
245
236
|
let _parent_initializers = [];
|
|
246
237
|
let _parent_extraInitializers = [];
|
|
247
238
|
let _project_decorators;
|
|
248
239
|
let _project_initializers = [];
|
|
249
240
|
let _project_extraInitializers = [];
|
|
250
|
-
return
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
kind_1.ReflectionKind.SetSignature)) {
|
|
308
|
-
return this.parent.getFriendlyFullName();
|
|
309
|
-
}
|
|
310
|
-
return this.parent.getFriendlyFullName() + "." + this.name;
|
|
311
|
-
}
|
|
312
|
-
else {
|
|
313
|
-
return this.name;
|
|
314
|
-
}
|
|
241
|
+
return class Reflection {
|
|
242
|
+
static {
|
|
243
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
244
|
+
_parent_decorators = [NonEnumerable];
|
|
245
|
+
_project_decorators = [NonEnumerable];
|
|
246
|
+
__esDecorate(null, null, _parent_decorators, { kind: "field", name: "parent", static: false, private: false, access: { has: obj => "parent" in obj, get: obj => obj.parent, set: (obj, value) => { obj.parent = value; } }, metadata: _metadata }, _parent_initializers, _parent_extraInitializers);
|
|
247
|
+
__esDecorate(null, null, _project_decorators, { kind: "field", name: "project", static: false, private: false, access: { has: obj => "project" in obj, get: obj => obj.project, set: (obj, value) => { obj.project = value; } }, metadata: _metadata }, _project_initializers, _project_extraInitializers);
|
|
248
|
+
if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* Unique id of this reflection.
|
|
252
|
+
*/
|
|
253
|
+
id;
|
|
254
|
+
/**
|
|
255
|
+
* The symbol name of this reflection.
|
|
256
|
+
*/
|
|
257
|
+
name;
|
|
258
|
+
/**
|
|
259
|
+
* The kind of this reflection.
|
|
260
|
+
*/
|
|
261
|
+
kind;
|
|
262
|
+
flags = new ReflectionFlags();
|
|
263
|
+
/**
|
|
264
|
+
* The reflection this reflection is a child of.
|
|
265
|
+
*/
|
|
266
|
+
parent = __runInitializers(this, _parent_initializers, void 0);
|
|
267
|
+
project = (__runInitializers(this, _parent_extraInitializers), __runInitializers(this, _project_initializers, void 0));
|
|
268
|
+
/**
|
|
269
|
+
* The parsed documentation comment attached to this reflection.
|
|
270
|
+
*/
|
|
271
|
+
comment = __runInitializers(this, _project_extraInitializers);
|
|
272
|
+
/**
|
|
273
|
+
* The url of this reflection in the generated documentation.
|
|
274
|
+
* TODO: Reflections shouldn't know urls exist. Move this to a serializer.
|
|
275
|
+
*/
|
|
276
|
+
url;
|
|
277
|
+
/**
|
|
278
|
+
* The name of the anchor of this child.
|
|
279
|
+
* TODO: Reflections shouldn't know anchors exist. Move this to a serializer.
|
|
280
|
+
*/
|
|
281
|
+
anchor;
|
|
282
|
+
/**
|
|
283
|
+
* Is the url pointing to an individual document?
|
|
284
|
+
*
|
|
285
|
+
* When FALSE, the url points to an anchor tag on a page of a different reflection.
|
|
286
|
+
* TODO: Reflections shouldn't know how they are rendered. Move this to the correct serializer.
|
|
287
|
+
*/
|
|
288
|
+
hasOwnDocument;
|
|
289
|
+
constructor(name, kind, parent) {
|
|
290
|
+
this.id = REFLECTION_ID++;
|
|
291
|
+
this.parent = parent;
|
|
292
|
+
this.project = parent?.project || this;
|
|
293
|
+
this.name = name;
|
|
294
|
+
this.kind = kind;
|
|
295
|
+
// If our parent is external, we are too.
|
|
296
|
+
if (parent?.flags.isExternal) {
|
|
297
|
+
this.setFlag(ReflectionFlag.External);
|
|
315
298
|
}
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
299
|
+
}
|
|
300
|
+
/**
|
|
301
|
+
* Test whether this reflection is of the given kind.
|
|
302
|
+
*/
|
|
303
|
+
kindOf(kind) {
|
|
304
|
+
const kindFlags = Array.isArray(kind)
|
|
305
|
+
? kind.reduce((a, b) => a | b, 0)
|
|
306
|
+
: kind;
|
|
307
|
+
return (this.kind & kindFlags) !== 0;
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* Return the full name of this reflection. Intended for use in debugging. For log messages
|
|
311
|
+
* intended to be displayed to the user for them to fix, prefer {@link getFriendlyFullName} instead.
|
|
312
|
+
*
|
|
313
|
+
* The full name contains the name of this reflection and the names of all parent reflections.
|
|
314
|
+
*
|
|
315
|
+
* @param separator Separator used to join the names of the reflections.
|
|
316
|
+
* @returns The full name of this reflection.
|
|
317
|
+
*/
|
|
318
|
+
getFullName(separator = ".") {
|
|
319
|
+
if (this.parent && !this.parent.isProject()) {
|
|
320
|
+
return this.parent.getFullName(separator) + separator + this.name;
|
|
321
321
|
}
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
*/
|
|
325
|
-
getAlias() {
|
|
326
|
-
this._alias ||= this.getUniqueAliasInPage(this.name.replace(/\W/g, "_") || `reflection-${this.id}`);
|
|
327
|
-
return this._alias;
|
|
322
|
+
else {
|
|
323
|
+
return this.name;
|
|
328
324
|
}
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
let suffix = "";
|
|
342
|
-
if (!target._aliases.has(upperAlias)) {
|
|
343
|
-
target._aliases.set(upperAlias, 1);
|
|
344
|
-
}
|
|
345
|
-
else {
|
|
346
|
-
const count = target._aliases.get(upperAlias);
|
|
347
|
-
suffix = "-" + count.toString();
|
|
348
|
-
target._aliases.set(upperAlias, count + 1);
|
|
325
|
+
}
|
|
326
|
+
/**
|
|
327
|
+
* Return the full name of this reflection, with signature names dropped if possible without
|
|
328
|
+
* introducing ambiguity in the name.
|
|
329
|
+
*/
|
|
330
|
+
getFriendlyFullName() {
|
|
331
|
+
if (this.parent && !this.parent.isProject()) {
|
|
332
|
+
if (this.kindOf(ReflectionKind.ConstructorSignature |
|
|
333
|
+
ReflectionKind.CallSignature |
|
|
334
|
+
ReflectionKind.GetSignature |
|
|
335
|
+
ReflectionKind.SetSignature)) {
|
|
336
|
+
return this.parent.getFriendlyFullName();
|
|
349
337
|
}
|
|
350
|
-
|
|
351
|
-
return heading;
|
|
338
|
+
return this.parent.getFriendlyFullName() + "." + this.name;
|
|
352
339
|
}
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
*
|
|
356
|
-
* @returns TRUE when this reflection has a visible comment.
|
|
357
|
-
*/
|
|
358
|
-
hasComment() {
|
|
359
|
-
return this.comment ? this.comment.hasVisibleComponent() : false;
|
|
340
|
+
else {
|
|
341
|
+
return this.name;
|
|
360
342
|
}
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
343
|
+
}
|
|
344
|
+
/**
|
|
345
|
+
* Set a flag on this reflection.
|
|
346
|
+
*/
|
|
347
|
+
setFlag(flag, value = true) {
|
|
348
|
+
this.flags.setFlag(flag, value);
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* Has this reflection a visible comment?
|
|
352
|
+
*
|
|
353
|
+
* @returns TRUE when this reflection has a visible comment.
|
|
354
|
+
*/
|
|
355
|
+
hasComment() {
|
|
356
|
+
return this.comment ? this.comment.hasVisibleComponent() : false;
|
|
357
|
+
}
|
|
358
|
+
hasGetterOrSetter() {
|
|
359
|
+
return false;
|
|
360
|
+
}
|
|
361
|
+
/**
|
|
362
|
+
* Return a child by its name.
|
|
363
|
+
*
|
|
364
|
+
* @param arg The name hierarchy of the child to look for.
|
|
365
|
+
* @returns The found child or undefined.
|
|
366
|
+
*/
|
|
367
|
+
getChildByName(arg) {
|
|
368
|
+
const names = Array.isArray(arg)
|
|
369
|
+
? arg
|
|
370
|
+
: splitUnquotedString(arg, ".");
|
|
371
|
+
const name = names[0];
|
|
372
|
+
let result;
|
|
373
|
+
this.traverse((child) => {
|
|
374
|
+
if (child.name === name) {
|
|
375
|
+
if (names.length <= 1) {
|
|
376
|
+
result = child;
|
|
385
377
|
}
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
/**
|
|
391
|
-
* Return whether this reflection is the root / project reflection.
|
|
392
|
-
*/
|
|
393
|
-
isProject() {
|
|
394
|
-
return false;
|
|
395
|
-
}
|
|
396
|
-
isDeclaration() {
|
|
397
|
-
return false;
|
|
398
|
-
}
|
|
399
|
-
isDocument() {
|
|
400
|
-
return false;
|
|
401
|
-
}
|
|
402
|
-
/**
|
|
403
|
-
* Check if this reflection or any of its parents have been marked with the `@deprecated` tag.
|
|
404
|
-
*/
|
|
405
|
-
isDeprecated() {
|
|
406
|
-
let signaturesDeprecated = false;
|
|
407
|
-
this.visit({
|
|
408
|
-
declaration(decl) {
|
|
409
|
-
if (decl.signatures?.length &&
|
|
410
|
-
decl.signatures.every((sig) => sig.comment?.getTag("@deprecated"))) {
|
|
411
|
-
signaturesDeprecated = true;
|
|
412
|
-
}
|
|
413
|
-
},
|
|
414
|
-
});
|
|
415
|
-
if (signaturesDeprecated || this.comment?.getTag("@deprecated")) {
|
|
416
|
-
return true;
|
|
378
|
+
else {
|
|
379
|
+
result = child.getChildByName(names.slice(1));
|
|
380
|
+
}
|
|
381
|
+
return false;
|
|
417
382
|
}
|
|
418
|
-
return
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
};
|
|
456
|
-
}
|
|
457
|
-
fromObject(de, obj) {
|
|
458
|
-
// DO NOT copy id from obj. When deserializing reflections
|
|
459
|
-
// they should be given new ids since they belong to a different project.
|
|
460
|
-
this.name = obj.name;
|
|
461
|
-
// Skip copying variant, we know it's already the correct value because the deserializer
|
|
462
|
-
// will construct the correct class type.
|
|
463
|
-
this.kind = obj.kind;
|
|
464
|
-
this.flags.fromObject(obj.flags);
|
|
465
|
-
// Parent is set during construction, so we don't need to do it here.
|
|
466
|
-
this.comment = de.revive(obj.comment, () => new comment_1.Comment());
|
|
467
|
-
// url, anchor, hasOwnDocument, _alias, _aliases are set during rendering and only relevant during render.
|
|
468
|
-
// It doesn't make sense to serialize them to json, or restore them.
|
|
383
|
+
return true;
|
|
384
|
+
});
|
|
385
|
+
return result;
|
|
386
|
+
}
|
|
387
|
+
/**
|
|
388
|
+
* Return whether this reflection is the root / project reflection.
|
|
389
|
+
*/
|
|
390
|
+
isProject() {
|
|
391
|
+
return false;
|
|
392
|
+
}
|
|
393
|
+
isDeclaration() {
|
|
394
|
+
return false;
|
|
395
|
+
}
|
|
396
|
+
isParameter() {
|
|
397
|
+
return false;
|
|
398
|
+
}
|
|
399
|
+
isDocument() {
|
|
400
|
+
return false;
|
|
401
|
+
}
|
|
402
|
+
isReference() {
|
|
403
|
+
return this.variant === "reference";
|
|
404
|
+
}
|
|
405
|
+
/**
|
|
406
|
+
* Check if this reflection or any of its parents have been marked with the `@deprecated` tag.
|
|
407
|
+
*/
|
|
408
|
+
isDeprecated() {
|
|
409
|
+
let signaturesDeprecated = false;
|
|
410
|
+
this.visit({
|
|
411
|
+
declaration(decl) {
|
|
412
|
+
if (decl.signatures?.length &&
|
|
413
|
+
decl.signatures.every((sig) => sig.comment?.getTag("@deprecated"))) {
|
|
414
|
+
signaturesDeprecated = true;
|
|
415
|
+
}
|
|
416
|
+
},
|
|
417
|
+
});
|
|
418
|
+
if (signaturesDeprecated || this.comment?.getTag("@deprecated")) {
|
|
419
|
+
return true;
|
|
469
420
|
}
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
421
|
+
return this.parent?.isDeprecated() ?? false;
|
|
422
|
+
}
|
|
423
|
+
visit(visitor) {
|
|
424
|
+
visitor[this.variant]?.(this);
|
|
425
|
+
}
|
|
426
|
+
/**
|
|
427
|
+
* Return a string representation of this reflection.
|
|
428
|
+
*/
|
|
429
|
+
toString() {
|
|
430
|
+
return ReflectionKind[this.kind] + " " + this.name;
|
|
431
|
+
}
|
|
432
|
+
/**
|
|
433
|
+
* Return a string representation of this reflection and all of its children.
|
|
434
|
+
*
|
|
435
|
+
* Note: This is intended as a debug tool only, output may change between patch versions.
|
|
436
|
+
*
|
|
437
|
+
* @param indent Used internally to indent child reflections.
|
|
438
|
+
*/
|
|
439
|
+
toStringHierarchy(indent = "") {
|
|
440
|
+
const lines = [indent + this.toString()];
|
|
441
|
+
indent += " ";
|
|
442
|
+
this.traverse((child) => {
|
|
443
|
+
lines.push(child.toStringHierarchy(indent));
|
|
444
|
+
return true;
|
|
445
|
+
});
|
|
446
|
+
return lines.join("\n");
|
|
447
|
+
}
|
|
448
|
+
toObject(serializer) {
|
|
449
|
+
return {
|
|
450
|
+
id: this.id,
|
|
451
|
+
name: this.name,
|
|
452
|
+
variant: this.variant,
|
|
453
|
+
kind: this.kind,
|
|
454
|
+
flags: this.flags.toObject(),
|
|
455
|
+
comment: this.comment && !this.comment.isEmpty()
|
|
456
|
+
? serializer.toObject(this.comment)
|
|
457
|
+
: undefined,
|
|
458
|
+
};
|
|
459
|
+
}
|
|
460
|
+
fromObject(de, obj) {
|
|
461
|
+
// DO NOT copy id from obj. When deserializing reflections
|
|
462
|
+
// they should be given new ids since they belong to a different project.
|
|
463
|
+
this.name = obj.name;
|
|
464
|
+
// Skip copying variant, we know it's already the correct value because the deserializer
|
|
465
|
+
// will construct the correct class type.
|
|
466
|
+
this.kind = obj.kind;
|
|
467
|
+
this.flags.fromObject(obj.flags);
|
|
468
|
+
// Parent is set during construction, so we don't need to do it here.
|
|
469
|
+
this.comment = de.revive(obj.comment, () => new Comment());
|
|
470
|
+
// url, anchor, hasOwnDocument, _alias, _aliases are set during rendering and only relevant during render.
|
|
471
|
+
// It doesn't make sense to serialize them to json, or restore them.
|
|
472
|
+
}
|
|
473
|
+
};
|
|
481
474
|
})();
|
|
482
|
-
|
|
475
|
+
export { Reflection };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Reflection, type TraverseCallback } from "./abstract";
|
|
2
|
-
import { ReflectionCategory } from "../ReflectionCategory";
|
|
3
|
-
import { ReflectionGroup } from "../ReflectionGroup";
|
|
4
|
-
import type { ReflectionKind } from "./kind";
|
|
5
|
-
import type { Serializer, JSONOutput, Deserializer } from "../../serialization";
|
|
6
|
-
import type { DocumentReflection } from "./document";
|
|
7
|
-
import type { DeclarationReflection } from "./declaration";
|
|
1
|
+
import { Reflection, type TraverseCallback } from "./abstract.js";
|
|
2
|
+
import { ReflectionCategory } from "../ReflectionCategory.js";
|
|
3
|
+
import { ReflectionGroup } from "../ReflectionGroup.js";
|
|
4
|
+
import type { ReflectionKind } from "./kind.js";
|
|
5
|
+
import type { Serializer, JSONOutput, Deserializer } from "../../serialization/index.js";
|
|
6
|
+
import type { DocumentReflection } from "./document.js";
|
|
7
|
+
import type { DeclarationReflection } from "./declaration.js";
|
|
8
8
|
/**
|
|
9
9
|
* @category Reflections
|
|
10
10
|
*/
|