typedoc-plugin-resolve-crossmodule-references
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -103,6 +103,8 @@ "use strict"; | ||
function findReferenceType(type, project) { | ||
const newTargetReflection = project.getReflectionsByKind(typedoc_1.ReflectionKind.All).find(({ name }) => name === type.name); | ||
if (!newTargetReflection) | ||
const newTarget = project.getReflectionsByKind(typedoc_1.ReflectionKind.All).find(({ name }) => name === type.name); | ||
if (!newTarget) | ||
return type; | ||
return typedoc_1.ReferenceType.createResolvedReference(type.name, newTargetReflection, project); | ||
const newType = typedoc_1.ReferenceType.createResolvedReference(type.name, newTarget, project); | ||
newType.typeArguments = type.typeArguments; | ||
return newType; | ||
} | ||
@@ -109,0 +111,0 @@ function isReferenceType(type) { |
{ | ||
"name": "typedoc-plugin-resolve-crossmodule-references", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "TypeDoc plugin for resolving cross module reference in a mono-repository", | ||
@@ -5,0 +5,0 @@ "main": "dist", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17549
121