typedoc 0.25.6 → 0.25.7
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.
|
@@ -276,8 +276,7 @@ function convertFunctionOrMethod(context, symbol, exportSymbol) {
|
|
|
276
276
|
for (const sig of signatures) {
|
|
277
277
|
(0, signature_1.createSignature)(scope, models_1.ReflectionKind.CallSignature, sig, symbol);
|
|
278
278
|
}
|
|
279
|
-
convertFunctionProperties(scope, symbol, type);
|
|
280
|
-
return typescript_1.default.SymbolFlags.NamespaceModule;
|
|
279
|
+
return convertFunctionProperties(scope, symbol, type);
|
|
281
280
|
}
|
|
282
281
|
// getDeclaredTypeOfSymbol gets the INSTANCE type
|
|
283
282
|
// getTypeOfSymbolAtLocation gets the STATIC type
|
|
@@ -573,6 +572,7 @@ function convertFunctionProperties(context, symbol, type) {
|
|
|
573
572
|
((0, enum_1.hasAllFlags)(symbol.flags, nsFlags) ||
|
|
574
573
|
!(0, enum_1.hasAnyFlag)(symbol.flags, nsFlags))) {
|
|
575
574
|
convertSymbols(context, type.getProperties());
|
|
575
|
+
return typescript_1.default.SymbolFlags.NamespaceModule;
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
578
|
function convertAccessor(context, symbol, exportSymbol) {
|
|
@@ -87,10 +87,7 @@ function convertType(context, typeOrNode) {
|
|
|
87
87
|
// We need to check it here, not just in the union checker, because typeToTypeNode
|
|
88
88
|
// will use the origin when serializing
|
|
89
89
|
// aliasSymbol check is important - #2468
|
|
90
|
-
if (typeOrNode.isUnion() &&
|
|
91
|
-
typeOrNode.origin &&
|
|
92
|
-
!typeOrNode.origin.isUnion() &&
|
|
93
|
-
!typeOrNode.aliasSymbol) {
|
|
90
|
+
if (typeOrNode.isUnion() && typeOrNode.origin && !typeOrNode.aliasSymbol) {
|
|
94
91
|
return convertType(context, typeOrNode.origin);
|
|
95
92
|
}
|
|
96
93
|
// IgnoreErrors is important, without it, we can't assert that we will get a node.
|