@travetto/transformer 3.0.0-rc.2 → 3.0.0-rc.4
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/package.json +2 -2
- package/src/resolver/builder.ts +4 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/transformer",
|
|
3
3
|
"displayName": "Transformation",
|
|
4
|
-
"version": "3.0.0-rc.
|
|
4
|
+
"version": "3.0.0-rc.4",
|
|
5
5
|
"description": "Functionality for AST transformations, with transformer registration, and general utils",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"typescript",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"directory": "module/transformer"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@travetto/base": "^3.0.0-rc.
|
|
28
|
+
"@travetto/base": "^3.0.0-rc.2"
|
|
29
29
|
},
|
|
30
30
|
"publishConfig": {
|
|
31
31
|
"access": "public"
|
package/src/resolver/builder.ts
CHANGED
|
@@ -183,7 +183,10 @@ export const TypeBuilder: {
|
|
|
183
183
|
const dec = DeclarationUtil.getPrimaryDeclarationNode(member);
|
|
184
184
|
if (DeclarationUtil.isPublic(dec)) { // If public
|
|
185
185
|
const memberType = checker.getType(dec);
|
|
186
|
-
if (
|
|
186
|
+
if (
|
|
187
|
+
!member.getName().includes('@') && // if not a symbol
|
|
188
|
+
!memberType.getCallSignatures().length // if not a function
|
|
189
|
+
) {
|
|
187
190
|
fieldNodes[member.getName()] = memberType;
|
|
188
191
|
}
|
|
189
192
|
}
|