typedoc 0.20.36 → 0.20.37

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.
@@ -45,7 +45,8 @@ function convertSymbol(context, symbol, exportSymbol) {
45
45
  // This check can catch symbols which ought to be documented as references
46
46
  // but aren't aliased symbols because `export *` was used.
47
47
  const previous = context.project.getReflectionFromSymbol(symbol);
48
- if (previous &&
48
+ if (!context.converter.application.options.getValue("disableAliases") &&
49
+ previous &&
49
50
  ((_a = previous.parent) === null || _a === void 0 ? void 0 : _a.kindOf(models_1.ReflectionKind.Module | models_1.ReflectionKind.Project))) {
50
51
  createAlias(previous, context, symbol, exportSymbol);
51
52
  return;
@@ -375,7 +376,8 @@ function convertConstructSignatures(context, symbol) {
375
376
  }
376
377
  function convertAlias(context, symbol, exportSymbol) {
377
378
  const reflection = context.project.getReflectionFromSymbol(context.resolveAliasedSymbol(symbol));
378
- if (!reflection) {
379
+ if (!reflection ||
380
+ context.converter.application.options.getValue("disableAliases")) {
379
381
  // We don't have this, convert it.
380
382
  convertSymbol(context, context.resolveAliasedSymbol(symbol), exportSymbol !== null && exportSymbol !== void 0 ? exportSymbol : symbol);
381
383
  }
@@ -32,6 +32,7 @@ export interface TypeDocOptionMap {
32
32
  excludeNotDocumented: boolean;
33
33
  excludeInternal: boolean;
34
34
  disableSources: boolean;
35
+ disableAliases: boolean;
35
36
  includes: string;
36
37
  media: string;
37
38
  emit: boolean;
@@ -63,6 +63,11 @@ function addTypeDocOptions(options) {
63
63
  help: "Disables setting the source of a reflection when documenting it.",
64
64
  type: declaration_1.ParameterType.Boolean,
65
65
  });
66
+ options.addDeclaration({
67
+ name: "disableAliases",
68
+ help: "Disables creating aliases for shared reflections.",
69
+ type: declaration_1.ParameterType.Boolean,
70
+ });
66
71
  options.addDeclaration({
67
72
  name: "includes",
68
73
  help: "Specifies the location to look for included documents (use [[include:FILENAME]] in comments).",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "typedoc",
3
3
  "description": "Create api documentation for TypeScript projects.",
4
- "version": "0.20.36",
4
+ "version": "0.20.37",
5
5
  "homepage": "https://typedoc.org",
6
6
  "main": "dist/index.js",
7
7
  "typings": "dist/index.d.ts",
@@ -25,7 +25,7 @@
25
25
  "handlebars": "^4.7.7",
26
26
  "lodash": "^4.17.21",
27
27
  "lunr": "^2.3.9",
28
- "marked": "^2.0.3",
28
+ "marked": "~2.0.3",
29
29
  "minimatch": "^3.0.0",
30
30
  "progress": "^2.0.3",
31
31
  "shelljs": "^0.8.4",