We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 115884a commit 8ca66d3Copy full SHA for 8ca66d3
1 file changed
src/compiler/checker.ts
@@ -16090,7 +16090,7 @@ namespace ts {
16090
}
16091
16092
function getJavaScriptClassType(symbol: Symbol): Type | undefined {
16093
- if (symbol && isDeclarationOfFunctionOrClassExpression(symbol)) {
+ if (isDeclarationOfFunctionOrClassExpression(symbol)) {
16094
symbol = getSymbolOfNode((<VariableDeclaration>symbol.valueDeclaration).initializer);
16095
16096
if (isJavaScriptConstructor(symbol.valueDeclaration)) {
0 commit comments