@katana-project/laser 0.3.0 → 0.3.1
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/resolver.js +2 -1
- package/package.json +1 -1
package/dist/resolver.js
CHANGED
|
@@ -46,7 +46,8 @@ const getTypeName = (node, source, limit = node.to) => {
|
|
|
46
46
|
node.parent.name !== "ClassDeclaration" &&
|
|
47
47
|
node.parent.name !== "ConstructorDeclaration" &&
|
|
48
48
|
node.parent.name !== "InterfaceDeclaration" &&
|
|
49
|
-
node.parent.name !== "LocalVariableDeclaration"
|
|
49
|
+
node.parent.name !== "LocalVariableDeclaration" &&
|
|
50
|
+
node.parent.name !== "RecordDeclaration")) {
|
|
50
51
|
// only allow getting Definition-based type names from these declarations
|
|
51
52
|
return null;
|
|
52
53
|
}
|