typedoc-plugin-typescript-declaration
Advanced tools
Comparing version 0.4.1 to 0.4.2
@@ -1300,3 +1300,9 @@ 'use strict'; | ||
// get unique list of types from remapped types | ||
mapped = mapped.filter((type, index, array) => array.findIndex(item => type.equals(item)) === index); | ||
const unique = []; | ||
mapped.forEach(item => { | ||
if (!unique.find(type => this.equalsWorkaround(item, type))) { | ||
unique.push(item); | ||
} | ||
}); | ||
mapped = unique; | ||
if (mapped.length === 1) { | ||
@@ -1341,2 +1347,8 @@ return mapped[0]; | ||
} | ||
equalsWorkaround(type1, type2) { | ||
var _a, _b; | ||
return type1.equals(type2) | ||
&& (type1 instanceof models.ReferenceType && type2 instanceof models.ReferenceType | ||
&& ((_a = type1.reflection, (_a !== null && _a !== void 0 ? _a : type1.symbolFullyQualifiedName)) === (_b = type2.reflection, (_b !== null && _b !== void 0 ? _b : type2.symbolFullyQualifiedName)))); | ||
} | ||
} | ||
@@ -1343,0 +1355,0 @@ |
{ | ||
"name": "typedoc-plugin-typescript-declaration", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"description": "Typedoc plugin to render to typescript declaration file", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
67646
1547