typedoc 0.24.8 → 0.25.1

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.
Files changed (138) hide show
  1. package/README.md +1 -1
  2. package/dist/index.d.ts +6 -2
  3. package/dist/index.js +6 -1
  4. package/dist/lib/application.d.ts +13 -11
  5. package/dist/lib/application.js +455 -347
  6. package/dist/lib/cli.js +29 -22
  7. package/dist/lib/converter/comments/blockLexer.js +10 -1
  8. package/dist/lib/converter/comments/declarationReference.js +2 -0
  9. package/dist/lib/converter/comments/declarationReferenceResolver.js +2 -1
  10. package/dist/lib/converter/comments/discovery.js +0 -1
  11. package/dist/lib/converter/comments/linkResolver.d.ts +5 -2
  12. package/dist/lib/converter/comments/linkResolver.js +21 -13
  13. package/dist/lib/converter/comments/parser.js +7 -12
  14. package/dist/lib/converter/comments/tagName.d.ts +8 -0
  15. package/dist/lib/converter/comments/tagName.js +62 -0
  16. package/dist/lib/converter/context.js +1 -2
  17. package/dist/lib/converter/converter.d.ts +12 -10
  18. package/dist/lib/converter/converter.js +440 -309
  19. package/dist/lib/converter/factories/index-signature.js +2 -1
  20. package/dist/lib/converter/factories/signature.js +3 -4
  21. package/dist/lib/converter/plugins/CategoryPlugin.d.ts +8 -8
  22. package/dist/lib/converter/plugins/CategoryPlugin.js +294 -200
  23. package/dist/lib/converter/plugins/CommentPlugin.d.ts +8 -5
  24. package/dist/lib/converter/plugins/CommentPlugin.js +434 -305
  25. package/dist/lib/converter/plugins/GroupPlugin.d.ts +3 -3
  26. package/dist/lib/converter/plugins/GroupPlugin.js +216 -145
  27. package/dist/lib/converter/plugins/ImplementsPlugin.js +240 -192
  28. package/dist/lib/converter/plugins/InheritDocPlugin.d.ts +2 -0
  29. package/dist/lib/converter/plugins/InheritDocPlugin.js +202 -132
  30. package/dist/lib/converter/plugins/LinkResolverPlugin.d.ts +1 -1
  31. package/dist/lib/converter/plugins/LinkResolverPlugin.js +111 -43
  32. package/dist/lib/converter/plugins/PackagePlugin.d.ts +6 -4
  33. package/dist/lib/converter/plugins/PackagePlugin.js +192 -96
  34. package/dist/lib/converter/plugins/SourcePlugin.d.ts +6 -5
  35. package/dist/lib/converter/plugins/SourcePlugin.js +239 -132
  36. package/dist/lib/converter/plugins/TypePlugin.js +148 -101
  37. package/dist/lib/converter/symbols.js +16 -4
  38. package/dist/lib/converter/types.js +16 -1
  39. package/dist/lib/converter/utils/nodes.d.ts +2 -2
  40. package/dist/lib/converter/utils/repository.d.ts +15 -5
  41. package/dist/lib/converter/utils/repository.js +29 -12
  42. package/dist/lib/models/ReflectionGroup.d.ts +4 -2
  43. package/dist/lib/models/ReflectionGroup.js +3 -1
  44. package/dist/lib/models/comments/comment.d.ts +9 -2
  45. package/dist/lib/models/comments/comment.js +2 -0
  46. package/dist/lib/models/reflections/ReflectionSymbolId.js +1 -1
  47. package/dist/lib/models/reflections/abstract.d.ts +6 -1
  48. package/dist/lib/models/reflections/abstract.js +15 -2
  49. package/dist/lib/models/reflections/container.d.ts +3 -0
  50. package/dist/lib/models/reflections/container.js +4 -1
  51. package/dist/lib/models/reflections/declaration.d.ts +1 -0
  52. package/dist/lib/models/reflections/declaration.js +1 -0
  53. package/dist/lib/models/reflections/index.d.ts +1 -1
  54. package/dist/lib/models/reflections/kind.d.ts +4 -4
  55. package/dist/lib/models/reflections/kind.js +5 -7
  56. package/dist/lib/models/reflections/parameter.d.ts +3 -0
  57. package/dist/lib/models/reflections/parameter.js +3 -0
  58. package/dist/lib/models/reflections/project.d.ts +1 -0
  59. package/dist/lib/models/reflections/project.js +3 -1
  60. package/dist/lib/models/reflections/reference.d.ts +1 -0
  61. package/dist/lib/models/reflections/reference.js +1 -0
  62. package/dist/lib/models/reflections/signature.d.ts +3 -0
  63. package/dist/lib/models/reflections/signature.js +3 -0
  64. package/dist/lib/models/reflections/type-parameter.d.ts +3 -0
  65. package/dist/lib/models/reflections/type-parameter.js +3 -0
  66. package/dist/lib/models/sources/file.d.ts +2 -0
  67. package/dist/lib/models/sources/file.js +5 -0
  68. package/dist/lib/models/types.d.ts +24 -0
  69. package/dist/lib/models/types.js +21 -0
  70. package/dist/lib/output/components.d.ts +1 -0
  71. package/dist/lib/output/components.js +10 -3
  72. package/dist/lib/output/events.d.ts +2 -2
  73. package/dist/lib/output/index.d.ts +1 -1
  74. package/dist/lib/output/plugins/AssetsPlugin.d.ts +1 -1
  75. package/dist/lib/output/plugins/AssetsPlugin.js +112 -44
  76. package/dist/lib/output/plugins/JavascriptIndexPlugin.d.ts +2 -1
  77. package/dist/lib/output/plugins/JavascriptIndexPlugin.js +174 -99
  78. package/dist/lib/output/plugins/NavigationPlugin.d.ts +6 -0
  79. package/dist/lib/output/plugins/NavigationPlugin.js +109 -0
  80. package/dist/lib/output/plugins/index.d.ts +2 -1
  81. package/dist/lib/output/plugins/index.js +5 -3
  82. package/dist/lib/output/renderer.d.ts +10 -8
  83. package/dist/lib/output/renderer.js +317 -203
  84. package/dist/lib/output/theme.d.ts +1 -1
  85. package/dist/lib/output/theme.js +64 -18
  86. package/dist/lib/output/themes/MarkedPlugin.d.ts +4 -4
  87. package/dist/lib/output/themes/MarkedPlugin.js +224 -145
  88. package/dist/lib/output/themes/default/DefaultTheme.d.ts +14 -1
  89. package/dist/lib/output/themes/default/DefaultTheme.js +68 -0
  90. package/dist/lib/output/themes/default/DefaultThemeRenderContext.d.ts +43 -44
  91. package/dist/lib/output/themes/default/DefaultThemeRenderContext.js +16 -11
  92. package/dist/lib/output/themes/default/layouts/default.js +2 -0
  93. package/dist/lib/output/themes/default/partials/comment.d.ts +1 -1
  94. package/dist/lib/output/themes/default/partials/comment.js +16 -14
  95. package/dist/lib/output/themes/default/partials/footer.js +1 -1
  96. package/dist/lib/output/themes/default/partials/header.js +2 -2
  97. package/dist/lib/output/themes/default/partials/icon.d.ts +4 -1
  98. package/dist/lib/output/themes/default/partials/icon.js +40 -38
  99. package/dist/lib/output/themes/default/partials/member.js +1 -1
  100. package/dist/lib/output/themes/default/partials/member.signature.body.js +2 -2
  101. package/dist/lib/output/themes/default/partials/navigation.d.ts +1 -1
  102. package/dist/lib/output/themes/default/partials/navigation.js +36 -56
  103. package/dist/lib/output/themes/default/partials/parameter.js +3 -3
  104. package/dist/lib/output/themes/lib.d.ts +1 -2
  105. package/dist/lib/output/themes/lib.js +1 -11
  106. package/dist/lib/serialization/schema.d.ts +37 -1
  107. package/dist/lib/utils/component.d.ts +1 -1
  108. package/dist/lib/utils/component.js +3 -1
  109. package/dist/lib/utils/entry-point.d.ts +0 -6
  110. package/dist/lib/utils/entry-point.js +27 -113
  111. package/dist/lib/utils/events.js +1 -1
  112. package/dist/lib/utils/general.js +1 -1
  113. package/dist/lib/utils/index.d.ts +1 -1
  114. package/dist/lib/utils/index.js +2 -1
  115. package/dist/lib/utils/jsx.d.ts +1 -1
  116. package/dist/lib/utils/jsx.js +24 -15
  117. package/dist/lib/utils/options/declaration.d.ts +5 -1
  118. package/dist/lib/utils/options/declaration.js +1 -1
  119. package/dist/lib/utils/options/index.d.ts +1 -1
  120. package/dist/lib/utils/options/index.js +2 -1
  121. package/dist/lib/utils/options/options.d.ts +22 -9
  122. package/dist/lib/utils/options/options.js +27 -15
  123. package/dist/lib/utils/options/readers/tsconfig.js +2 -7
  124. package/dist/lib/utils/options/readers/typedoc.d.ts +4 -2
  125. package/dist/lib/utils/options/readers/typedoc.js +33 -7
  126. package/dist/lib/utils/options/sources/typedoc.js +25 -4
  127. package/dist/lib/utils/options/tsdoc-defaults.d.ts +1 -1
  128. package/dist/lib/utils/options/tsdoc-defaults.js +4 -0
  129. package/dist/lib/utils/package-manifest.d.ts +0 -25
  130. package/dist/lib/utils/package-manifest.js +7 -148
  131. package/dist/lib/utils/perf.d.ts +1 -1
  132. package/dist/lib/utils/perf.js +36 -31
  133. package/dist/lib/utils/sort.js +0 -1
  134. package/dist/lib/validation/links.js +10 -2
  135. package/package.json +12 -12
  136. package/static/main.js +4 -3
  137. package/static/style.css +26 -10
  138. package/tsdoc.json +16 -0
@@ -205,6 +205,7 @@ var TraverseProperty;
205
205
  * This base class exposes the basic properties one may use to traverse the reflection tree.
206
206
  * You can use the {@link ContainerReflection.children} and {@link parent} properties to walk the tree. The {@link ContainerReflection.groups} property
207
207
  * contains a list of all children grouped and sorted for rendering.
208
+ * @category Reflections
208
209
  */
209
210
  class Reflection {
210
211
  get project() {
@@ -288,7 +289,7 @@ class Reflection {
288
289
  while (target.parent && !target.hasOwnDocument) {
289
290
  target = target.parent;
290
291
  }
291
- target._aliases || (target._aliases = new Map());
292
+ target._aliases ||= new Map();
292
293
  let suffix = "";
293
294
  if (!target._aliases.has(upperAlias)) {
294
295
  target._aliases.set(upperAlias, 1);
@@ -353,11 +354,23 @@ class Reflection {
353
354
  * Check if this reflection or any of its parents have been marked with the `@deprecated` tag.
354
355
  */
355
356
  isDeprecated() {
356
- if (this.comment?.getTag("@deprecated")) {
357
+ let signaturesDeprecated = false;
358
+ this.visit({
359
+ declaration(decl) {
360
+ if (decl.signatures &&
361
+ decl.signatures.every((sig) => sig.comment?.getTag("@deprecated"))) {
362
+ signaturesDeprecated = true;
363
+ }
364
+ },
365
+ });
366
+ if (signaturesDeprecated || this.comment?.getTag("@deprecated")) {
357
367
  return true;
358
368
  }
359
369
  return this.parent?.isDeprecated() ?? false;
360
370
  }
371
+ visit(visitor) {
372
+ visitor[this.variant]?.(this);
373
+ }
361
374
  /**
362
375
  * Return a string representation of this reflection.
363
376
  */
@@ -4,6 +4,9 @@ import { ReflectionGroup } from "../ReflectionGroup";
4
4
  import type { ReflectionKind } from "./kind";
5
5
  import type { Serializer, JSONOutput, Deserializer } from "../../serialization";
6
6
  import type { DeclarationReflection } from "./declaration";
7
+ /**
8
+ * @category Reflections
9
+ */
7
10
  export declare abstract class ContainerReflection extends Reflection {
8
11
  /**
9
12
  * The children of this reflection.
@@ -4,6 +4,9 @@ exports.ContainerReflection = void 0;
4
4
  const abstract_1 = require("./abstract");
5
5
  const ReflectionCategory_1 = require("../ReflectionCategory");
6
6
  const ReflectionGroup_1 = require("../ReflectionGroup");
7
+ /**
8
+ * @category Reflections
9
+ */
7
10
  class ContainerReflection extends abstract_1.Reflection {
8
11
  /**
9
12
  * Return a list of all children of a certain kind.
@@ -32,7 +35,7 @@ class ContainerReflection extends abstract_1.Reflection {
32
35
  fromObject(de, obj) {
33
36
  super.fromObject(de, obj);
34
37
  this.children = de.reviveMany(obj.children, (child) => de.constructReflection(child));
35
- this.groups = de.reviveMany(obj.groups, (group) => new ReflectionGroup_1.ReflectionGroup(group.title));
38
+ this.groups = de.reviveMany(obj.groups, (group) => new ReflectionGroup_1.ReflectionGroup(group.title, this));
36
39
  this.categories = de.reviveMany(obj.categories, (cat) => new ReflectionCategory_1.ReflectionCategory(cat.title));
37
40
  }
38
41
  }
@@ -38,6 +38,7 @@ export declare enum ConversionFlags {
38
38
  *
39
39
  * All parts of a project are represented by DeclarationReflection instances. The actual
40
40
  * kind of a reflection is stored in its ´kind´ member.
41
+ * @category Reflections
41
42
  */
42
43
  export declare class DeclarationReflection extends ContainerReflection {
43
44
  readonly variant: "declaration" | "reference";
@@ -21,6 +21,7 @@ var ConversionFlags;
21
21
  *
22
22
  * All parts of a project are represented by DeclarationReflection instances. The actual
23
23
  * kind of a reflection is stored in its ´kind´ member.
24
+ * @category Reflections
24
25
  */
25
26
  class DeclarationReflection extends container_1.ContainerReflection {
26
27
  constructor() {
@@ -1,5 +1,5 @@
1
1
  export { Reflection, ReflectionFlag, ReflectionFlags, TraverseProperty, } from "./abstract";
2
- export type { TraverseCallback } from "./abstract";
2
+ export type { TraverseCallback, ReflectionVisitor } from "./abstract";
3
3
  export { ContainerReflection } from "./container";
4
4
  export { DeclarationReflection, ConversionFlags } from "./declaration";
5
5
  export type { DeclarationHierarchy } from "./declaration";
@@ -1,6 +1,7 @@
1
1
  import type { EnumKeys } from "../../utils";
2
2
  /**
3
3
  * Defines the available reflection kinds.
4
+ * @category Reflections
4
5
  */
5
6
  export declare enum ReflectionKind {
6
7
  Project = 1,
@@ -24,11 +25,10 @@ export declare enum ReflectionKind {
24
25
  Accessor = 262144,
25
26
  GetSignature = 524288,
26
27
  SetSignature = 1048576,
27
- /** @deprecated will be removed in v0.25, not used */
28
- ObjectLiteral = 2097152,
29
- TypeAlias = 4194304,
30
- Reference = 8388608
28
+ TypeAlias = 2097152,
29
+ Reference = 4194304
31
30
  }
31
+ /** @category Reflections */
32
32
  export declare namespace ReflectionKind {
33
33
  type KindString = EnumKeys<typeof ReflectionKind>;
34
34
  const All: number;
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ReflectionKind = void 0;
4
4
  /**
5
5
  * Defines the available reflection kinds.
6
+ * @category Reflections
6
7
  */
7
8
  var ReflectionKind;
8
9
  (function (ReflectionKind) {
@@ -27,11 +28,10 @@ var ReflectionKind;
27
28
  ReflectionKind[ReflectionKind["Accessor"] = 262144] = "Accessor";
28
29
  ReflectionKind[ReflectionKind["GetSignature"] = 524288] = "GetSignature";
29
30
  ReflectionKind[ReflectionKind["SetSignature"] = 1048576] = "SetSignature";
30
- /** @deprecated will be removed in v0.25, not used */
31
- ReflectionKind[ReflectionKind["ObjectLiteral"] = 2097152] = "ObjectLiteral";
32
- ReflectionKind[ReflectionKind["TypeAlias"] = 4194304] = "TypeAlias";
33
- ReflectionKind[ReflectionKind["Reference"] = 8388608] = "Reference";
31
+ ReflectionKind[ReflectionKind["TypeAlias"] = 2097152] = "TypeAlias";
32
+ ReflectionKind[ReflectionKind["Reference"] = 4194304] = "Reference";
34
33
  })(ReflectionKind || (exports.ReflectionKind = ReflectionKind = {}));
34
+ /** @category Reflections */
35
35
  (function (ReflectionKind) {
36
36
  ReflectionKind.All = ReflectionKind.Reference * 2 - 1;
37
37
  /** @internal */
@@ -59,9 +59,7 @@ var ReflectionKind;
59
59
  ReflectionKind.TypeParameter |
60
60
  ReflectionKind.TypeAlias;
61
61
  /** @internal */
62
- ReflectionKind.SomeValue = ReflectionKind.Variable |
63
- ReflectionKind.Function |
64
- ReflectionKind.ObjectLiteral;
62
+ ReflectionKind.SomeValue = ReflectionKind.Variable | ReflectionKind.Function;
65
63
  /** @internal */
66
64
  ReflectionKind.SomeMember = ReflectionKind.EnumMember |
67
65
  ReflectionKind.Property |
@@ -2,6 +2,9 @@ import type { SomeType } from "..";
2
2
  import { Reflection, TraverseCallback } from "./abstract";
3
3
  import type { SignatureReflection } from "./signature";
4
4
  import type { Serializer, JSONOutput, Deserializer } from "../../serialization";
5
+ /**
6
+ * @category Reflections
7
+ */
5
8
  export declare class ParameterReflection extends Reflection {
6
9
  readonly variant = "param";
7
10
  parent?: SignatureReflection;
@@ -3,6 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ParameterReflection = void 0;
4
4
  const types_1 = require("../types");
5
5
  const abstract_1 = require("./abstract");
6
+ /**
7
+ * @category Reflections
8
+ */
6
9
  class ParameterReflection extends abstract_1.Reflection {
7
10
  constructor() {
8
11
  super(...arguments);
@@ -11,6 +11,7 @@ import type { Deserializer, JSONOutput } from "../../serialization/index";
11
11
  *
12
12
  * The project reflection acts as a global index, one may receive all reflections
13
13
  * and source files of the processed project through this reflection.
14
+ * @category Reflections
14
15
  */
15
16
  export declare class ProjectReflection extends ContainerReflection {
16
17
  readonly variant = "project";
@@ -15,6 +15,7 @@ const map_1 = require("../../utils/map");
15
15
  *
16
16
  * The project reflection acts as a global index, one may receive all reflections
17
17
  * and source files of the processed project through this reflection.
18
+ * @category Reflections
18
19
  */
19
20
  class ProjectReflection extends container_1.ContainerReflection {
20
21
  constructor(name) {
@@ -195,7 +196,8 @@ class ProjectReflection extends container_1.ContainerReflection {
195
196
  getReferenceGraph() {
196
197
  if (!this.referenceGraph) {
197
198
  this.referenceGraph = new Map();
198
- for (const ref of Object.values(this.reflections)) {
199
+ for (const id in this.reflections) {
200
+ const ref = this.reflections[id];
199
201
  if (ref instanceof reference_1.ReferenceReflection) {
200
202
  const target = ref.tryGetTargetReflection();
201
203
  if (target) {
@@ -13,6 +13,7 @@ import type { Reflection } from "./abstract";
13
13
  * // of copying the reflection.
14
14
  * export { a };
15
15
  * ```
16
+ * @category Reflections
16
17
  */
17
18
  export declare class ReferenceReflection extends DeclarationReflection {
18
19
  readonly variant = "reference";
@@ -15,6 +15,7 @@ const kind_1 = require("./kind");
15
15
  * // of copying the reflection.
16
16
  * export { a };
17
17
  * ```
18
+ * @category Reflections
18
19
  */
19
20
  class ReferenceReflection extends declaration_1.DeclarationReflection {
20
21
  /**
@@ -6,6 +6,9 @@ import type { DeclarationReflection } from "./declaration";
6
6
  import type { ReflectionKind } from "./kind";
7
7
  import type { Serializer, JSONOutput, Deserializer } from "../../serialization";
8
8
  import { SourceReference } from "../sources/file";
9
+ /**
10
+ * @category Reflections
11
+ */
9
12
  export declare class SignatureReflection extends Reflection {
10
13
  readonly variant = "signature";
11
14
  constructor(name: string, kind: SignatureReflection["kind"], parent: DeclarationReflection);
@@ -4,6 +4,9 @@ exports.SignatureReflection = void 0;
4
4
  const types_1 = require("../types");
5
5
  const abstract_1 = require("./abstract");
6
6
  const file_1 = require("../sources/file");
7
+ /**
8
+ * @category Reflections
9
+ */
7
10
  class SignatureReflection extends abstract_1.Reflection {
8
11
  constructor(name, kind, parent) {
9
12
  super(name, kind, parent);
@@ -13,6 +13,9 @@ export declare const VarianceModifier: {
13
13
  readonly inOut: "in out";
14
14
  };
15
15
  export type VarianceModifier = (typeof VarianceModifier)[keyof typeof VarianceModifier];
16
+ /**
17
+ * @category Reflections
18
+ */
16
19
  export declare class TypeParameterReflection extends Reflection {
17
20
  readonly variant = "typeParam";
18
21
  parent?: DeclarationReflection | SignatureReflection;
@@ -12,6 +12,9 @@ exports.VarianceModifier = {
12
12
  out: "out",
13
13
  inOut: "in out",
14
14
  };
15
+ /**
16
+ * @category Reflections
17
+ */
15
18
  class TypeParameterReflection extends abstract_1.Reflection {
16
19
  constructor(name, parent, varianceModifier) {
17
20
  super(name, kind_1.ReflectionKind.TypeParameter, parent);
@@ -12,6 +12,7 @@ export declare class SourceReference {
12
12
  fileName: string;
13
13
  /**
14
14
  * The absolute filename of the source file.
15
+ * @internal
15
16
  */
16
17
  fullFileName: string;
17
18
  /**
@@ -27,6 +28,7 @@ export declare class SourceReference {
27
28
  */
28
29
  url?: string;
29
30
  constructor(fileName: string, line: number, character: number);
31
+ equals(other: SourceReference): boolean;
30
32
  toObject(): JSONSourceReference;
31
33
  fromObject(_de: Deserializer, obj: JSONSourceReference): void;
32
34
  }
@@ -13,6 +13,11 @@ class SourceReference {
13
13
  this.line = line;
14
14
  this.character = character;
15
15
  }
16
+ equals(other) {
17
+ return (this.fullFileName == other.fullFileName &&
18
+ this.line === other.line &&
19
+ this.character === other.character);
20
+ }
16
21
  toObject() {
17
22
  return {
18
23
  fileName: this.fileName,
@@ -8,6 +8,7 @@ import { ReflectionSymbolId } from "./reflections/ReflectionSymbolId";
8
8
  import type { DeclarationReference } from "../converter/comments/declarationReference";
9
9
  /**
10
10
  * Base class of all type definitions.
11
+ * @category Types
11
12
  */
12
13
  export declare abstract class Type {
13
14
  /**
@@ -33,6 +34,7 @@ export declare abstract class Type {
33
34
  */
34
35
  protected abstract getTypeString(): string;
35
36
  }
37
+ /** @category Types */
36
38
  export interface TypeKindMap {
37
39
  array: ArrayType;
38
40
  conditional: ConditionalType;
@@ -59,7 +61,9 @@ export type TypeVisitor<T = void> = {
59
61
  [K in TypeKind]: (type: TypeKindMap[K]) => T;
60
62
  };
61
63
  export declare function makeRecursiveVisitor(visitor: Partial<TypeVisitor>): TypeVisitor;
64
+ /** @category Types */
62
65
  export type TypeKind = keyof TypeKindMap;
66
+ /** @category Types */
63
67
  export type SomeType = TypeKindMap[keyof TypeKindMap];
64
68
  /**
65
69
  * Enumeration that can be used when traversing types to track the location of recursion.
@@ -98,6 +102,7 @@ export type TypeContext = (typeof TypeContext)[keyof typeof TypeContext];
98
102
  * ```ts
99
103
  * let value: string[];
100
104
  * ```
105
+ * @category Types
101
106
  */
102
107
  export declare class ArrayType extends Type {
103
108
  elementType: SomeType;
@@ -116,6 +121,7 @@ export declare class ArrayType extends Type {
116
121
  * ```ts
117
122
  * let value: Check extends Extends ? True : False;
118
123
  * ```
124
+ * @category Types
119
125
  */
120
126
  export declare class ConditionalType extends Type {
121
127
  checkType: SomeType;
@@ -130,6 +136,7 @@ export declare class ConditionalType extends Type {
130
136
  }
131
137
  /**
132
138
  * Represents an indexed access type.
139
+ * @category Types
133
140
  */
134
141
  export declare class IndexedAccessType extends Type {
135
142
  objectType: SomeType;
@@ -146,6 +153,7 @@ export declare class IndexedAccessType extends Type {
146
153
  * ```ts
147
154
  * type Z = Promise<string> extends Promise<infer U> : never
148
155
  * ```
156
+ * @category Types
149
157
  */
150
158
  export declare class InferredType extends Type {
151
159
  name: string;
@@ -162,6 +170,7 @@ export declare class InferredType extends Type {
162
170
  * ```ts
163
171
  * let value: A & B;
164
172
  * ```
173
+ * @category Types
165
174
  */
166
175
  export declare class IntersectionType extends Type {
167
176
  types: SomeType[];
@@ -177,6 +186,7 @@ export declare class IntersectionType extends Type {
177
186
  * ```ts
178
187
  * let value: number;
179
188
  * ```
189
+ * @category Types
180
190
  */
181
191
  export declare class IntrinsicType extends Type {
182
192
  name: string;
@@ -193,6 +203,7 @@ export declare class IntrinsicType extends Type {
193
203
  * type A = "A"
194
204
  * type B = 1
195
205
  * ```
206
+ * @category Types
196
207
  */
197
208
  export declare class LiteralType extends Type {
198
209
  value: string | number | boolean | null | bigint;
@@ -211,6 +222,7 @@ export declare class LiteralType extends Type {
211
222
  * ```ts
212
223
  * { -readonly [K in Parameter as Name]?: Template }
213
224
  * ```
225
+ * @category Types
214
226
  */
215
227
  export declare class MappedType extends Type {
216
228
  parameter: string;
@@ -231,6 +243,7 @@ export declare class MappedType extends Type {
231
243
  * type Z = [1, 2?]
232
244
  * // ^^
233
245
  * ```
246
+ * @category Types
234
247
  */
235
248
  export declare class OptionalType extends Type {
236
249
  elementType: SomeType;
@@ -247,6 +260,7 @@ export declare class OptionalType extends Type {
247
260
  * function isString(x: unknown): x is string {}
248
261
  * function assert(condition: boolean): asserts condition {}
249
262
  * ```
263
+ * @category Types
250
264
  */
251
265
  export declare class PredicateType extends Type {
252
266
  name: string;
@@ -277,6 +291,7 @@ export declare class PredicateType extends Type {
277
291
  * const x = 1
278
292
  * type Z = typeof x // query on reflection for x
279
293
  * ```
294
+ * @category Types
280
295
  */
281
296
  export declare class QueryType extends Type {
282
297
  queryType: ReferenceType;
@@ -298,6 +313,7 @@ export declare class QueryType extends Type {
298
313
  * ```ts
299
314
  * let value: MyClass<T>;
300
315
  * ```
316
+ * @category Types
301
317
  */
302
318
  export declare class ReferenceType extends Type {
303
319
  readonly type = "reference";
@@ -375,6 +391,7 @@ export declare class ReferenceType extends Type {
375
391
  * ```ts
376
392
  * let value: { a: string, b: number };
377
393
  * ```
394
+ * @category Types
378
395
  */
379
396
  export declare class ReflectionType extends Type {
380
397
  declaration: DeclarationReflection;
@@ -390,6 +407,7 @@ export declare class ReflectionType extends Type {
390
407
  * type Z = [1, ...2[]]
391
408
  * // ^^^^^^
392
409
  * ```
410
+ * @category Types
393
411
  */
394
412
  export declare class RestType extends Type {
395
413
  elementType: SomeType;
@@ -404,6 +422,7 @@ export declare class RestType extends Type {
404
422
  * ```ts
405
423
  * type Z = `${'a' | 'b'}${'a' | 'b'}`
406
424
  * ```
425
+ * @category Types
407
426
  */
408
427
  export declare class TemplateLiteralType extends Type {
409
428
  head: string;
@@ -420,6 +439,7 @@ export declare class TemplateLiteralType extends Type {
420
439
  * ```ts
421
440
  * let value: [string, boolean];
422
441
  * ```
442
+ * @category Types
423
443
  */
424
444
  export declare class TupleType extends Type {
425
445
  elements: SomeType[];
@@ -438,6 +458,7 @@ export declare class TupleType extends Type {
438
458
  * ```ts
439
459
  * let value: [name: string];
440
460
  * ```
461
+ * @category Types
441
462
  */
442
463
  export declare class NamedTupleMember extends Type {
443
464
  name: string;
@@ -459,6 +480,7 @@ export declare class NamedTupleMember extends Type {
459
480
  * class A {}
460
481
  * class B<T extends keyof A> {}
461
482
  * ```
483
+ * @category Types
462
484
  */
463
485
  export declare class TypeOperatorType extends Type {
464
486
  target: SomeType;
@@ -475,6 +497,7 @@ export declare class TypeOperatorType extends Type {
475
497
  * ```ts
476
498
  * let value: string | string[];
477
499
  * ```
500
+ * @category Types
478
501
  */
479
502
  export declare class UnionType extends Type {
480
503
  types: SomeType[];
@@ -487,6 +510,7 @@ export declare class UnionType extends Type {
487
510
  }
488
511
  /**
489
512
  * Represents all unknown types that cannot be converted by TypeDoc.
513
+ * @category Types
490
514
  */
491
515
  export declare class UnknownType extends Type {
492
516
  readonly type = "unknown";
@@ -30,6 +30,7 @@ const ReflectionSymbolId_1 = require("./reflections/ReflectionSymbolId");
30
30
  const fs_1 = require("../utils/fs");
31
31
  /**
32
32
  * Base class of all type definitions.
33
+ * @category Types
33
34
  */
34
35
  class Type {
35
36
  /**
@@ -179,6 +180,7 @@ exports.TypeContext = {
179
180
  * ```ts
180
181
  * let value: string[];
181
182
  * ```
183
+ * @category Types
182
184
  */
183
185
  class ArrayType extends Type {
184
186
  /**
@@ -209,6 +211,7 @@ exports.ArrayType = ArrayType;
209
211
  * ```ts
210
212
  * let value: Check extends Extends ? True : False;
211
213
  * ```
214
+ * @category Types
212
215
  */
213
216
  class ConditionalType extends Type {
214
217
  constructor(checkType, extendsType, trueType, falseType) {
@@ -271,6 +274,7 @@ class ConditionalType extends Type {
271
274
  exports.ConditionalType = ConditionalType;
272
275
  /**
273
276
  * Represents an indexed access type.
277
+ * @category Types
274
278
  */
275
279
  class IndexedAccessType extends Type {
276
280
  constructor(objectType, indexType) {
@@ -305,6 +309,7 @@ exports.IndexedAccessType = IndexedAccessType;
305
309
  * ```ts
306
310
  * type Z = Promise<string> extends Promise<infer U> : never
307
311
  * ```
312
+ * @category Types
308
313
  */
309
314
  class InferredType extends Type {
310
315
  constructor(name, constraint) {
@@ -362,6 +367,7 @@ exports.InferredType = InferredType;
362
367
  * ```ts
363
368
  * let value: A & B;
364
369
  * ```
370
+ * @category Types
365
371
  */
366
372
  class IntersectionType extends Type {
367
373
  constructor(types) {
@@ -416,6 +422,7 @@ exports.IntersectionType = IntersectionType;
416
422
  * ```ts
417
423
  * let value: number;
418
424
  * ```
425
+ * @category Types
419
426
  */
420
427
  class IntrinsicType extends Type {
421
428
  constructor(name) {
@@ -444,6 +451,7 @@ exports.IntrinsicType = IntrinsicType;
444
451
  * type A = "A"
445
452
  * type B = 1
446
453
  * ```
454
+ * @category Types
447
455
  */
448
456
  class LiteralType extends Type {
449
457
  constructor(value) {
@@ -486,6 +494,7 @@ exports.LiteralType = LiteralType;
486
494
  * ```ts
487
495
  * { -readonly [K in Parameter as Name]?: Template }
488
496
  * ```
497
+ * @category Types
489
498
  */
490
499
  class MappedType extends Type {
491
500
  constructor(parameter, parameterType, templateType, readonlyModifier, optionalModifier, nameType) {
@@ -545,6 +554,7 @@ exports.MappedType = MappedType;
545
554
  * type Z = [1, 2?]
546
555
  * // ^^
547
556
  * ```
557
+ * @category Types
548
558
  */
549
559
  class OptionalType extends Type {
550
560
  constructor(elementType) {
@@ -573,6 +583,7 @@ exports.OptionalType = OptionalType;
573
583
  * function isString(x: unknown): x is string {}
574
584
  * function assert(condition: boolean): asserts condition {}
575
585
  * ```
586
+ * @category Types
576
587
  */
577
588
  class PredicateType extends Type {
578
589
  /**
@@ -621,6 +632,7 @@ exports.PredicateType = PredicateType;
621
632
  * const x = 1
622
633
  * type Z = typeof x // query on reflection for x
623
634
  * ```
635
+ * @category Types
624
636
  */
625
637
  class QueryType extends Type {
626
638
  constructor(queryType) {
@@ -654,6 +666,7 @@ exports.QueryType = QueryType;
654
666
  * ```ts
655
667
  * let value: MyClass<T>;
656
668
  * ```
669
+ * @category Types
657
670
  */
658
671
  class ReferenceType extends Type {
659
672
  /**
@@ -829,6 +842,7 @@ exports.ReferenceType = ReferenceType;
829
842
  * ```ts
830
843
  * let value: { a: string, b: number };
831
844
  * ```
845
+ * @category Types
832
846
  */
833
847
  class ReflectionType extends Type {
834
848
  constructor(declaration) {
@@ -864,6 +878,7 @@ exports.ReflectionType = ReflectionType;
864
878
  * type Z = [1, ...2[]]
865
879
  * // ^^^^^^
866
880
  * ```
881
+ * @category Types
867
882
  */
868
883
  class RestType extends Type {
869
884
  constructor(elementType) {
@@ -890,6 +905,7 @@ exports.RestType = RestType;
890
905
  * ```ts
891
906
  * type Z = `${'a' | 'b'}${'a' | 'b'}`
892
907
  * ```
908
+ * @category Types
893
909
  */
894
910
  class TemplateLiteralType extends Type {
895
911
  constructor(head, tail) {
@@ -932,6 +948,7 @@ exports.TemplateLiteralType = TemplateLiteralType;
932
948
  * ```ts
933
949
  * let value: [string, boolean];
934
950
  * ```
951
+ * @category Types
935
952
  */
936
953
  class TupleType extends Type {
937
954
  /**
@@ -966,6 +983,7 @@ exports.TupleType = TupleType;
966
983
  * ```ts
967
984
  * let value: [name: string];
968
985
  * ```
986
+ * @category Types
969
987
  */
970
988
  class NamedTupleMember extends Type {
971
989
  constructor(name, isOptional, element) {
@@ -1001,6 +1019,7 @@ exports.NamedTupleMember = NamedTupleMember;
1001
1019
  * class A {}
1002
1020
  * class B<T extends keyof A> {}
1003
1021
  * ```
1022
+ * @category Types
1004
1023
  */
1005
1024
  class TypeOperatorType extends Type {
1006
1025
  constructor(target, operator) {
@@ -1055,6 +1074,7 @@ exports.TypeOperatorType = TypeOperatorType;
1055
1074
  * ```ts
1056
1075
  * let value: string | string[];
1057
1076
  * ```
1077
+ * @category Types
1058
1078
  */
1059
1079
  class UnionType extends Type {
1060
1080
  constructor(types) {
@@ -1125,6 +1145,7 @@ class UnionType extends Type {
1125
1145
  exports.UnionType = UnionType;
1126
1146
  /**
1127
1147
  * Represents all unknown types that cannot be converted by TypeDoc.
1148
+ * @category Types
1128
1149
  */
1129
1150
  class UnknownType extends Type {
1130
1151
  constructor(name) {
@@ -32,6 +32,7 @@ export declare abstract class ContextAwareRendererComponent extends RendererComp
32
32
  * @param renderer The renderer this plugin should be attached to.
33
33
  */
34
34
  protected initialize(): void;
35
+ private absoluteToRelativePathMap;
35
36
  /**
36
37
  * Transform the given absolute path into a relative path.
37
38
  *