@forge-ts/core 0.19.3 → 0.19.5
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.
- package/dist/index.d.ts +396 -114
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/package.json +7 -4
package/dist/index.js
CHANGED
|
@@ -1095,8 +1095,12 @@ function buildSignature(node, checker) {
|
|
|
1095
1095
|
try {
|
|
1096
1096
|
const symbol = checker.getSymbolAtLocation(node.name ?? node);
|
|
1097
1097
|
if (!symbol) return void 0;
|
|
1098
|
+
if (ts.isInterfaceDeclaration(node) || ts.isTypeAliasDeclaration(node) || ts.isEnumDeclaration(node)) {
|
|
1099
|
+
const declaredType = checker.getDeclaredTypeOfSymbol(symbol);
|
|
1100
|
+
return checker.typeToString(declaredType, node, ts.TypeFormatFlags.NoTruncation);
|
|
1101
|
+
}
|
|
1098
1102
|
const type = checker.getTypeOfSymbolAtLocation(symbol, node);
|
|
1099
|
-
return checker.typeToString(type);
|
|
1103
|
+
return checker.typeToString(type, node, ts.TypeFormatFlags.NoTruncation);
|
|
1100
1104
|
} catch {
|
|
1101
1105
|
return void 0;
|
|
1102
1106
|
}
|