tsutils
Advanced tools
Comparing version 3.19.0 to 3.19.1
@@ -0,1 +1,7 @@ | ||
# 3.19.1 | ||
**Bugfixes:** | ||
* `getSymbolOfClassLikeDeclaration` no longer crashes on anonymous mixin classes | ||
# 3.19.0 | ||
@@ -2,0 +8,0 @@ |
{ | ||
"name": "tsutils", | ||
"version": "3.19.0", | ||
"version": "3.19.1", | ||
"description": "utilities for working with typescript's AST", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -259,3 +259,4 @@ "use strict"; | ||
function getSymbolOfClassLikeDeclaration(node, checker) { | ||
return node.name !== undefined ? checker.getSymbolAtLocation(node.name) : checker.getTypeAtLocation(node).symbol; | ||
var _a; | ||
return checker.getSymbolAtLocation((_a = node.name) !== null && _a !== void 0 ? _a : util_1.getChildOfKind(node, ts.SyntaxKind.ClassKeyword)); | ||
} | ||
@@ -262,0 +263,0 @@ exports.getSymbolOfClassLikeDeclaration = getSymbolOfClassLikeDeclaration; |
Sorry, the diff of this file is not supported yet
373608
4486