mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Fix crash when the element instance type was undefined
This commit is contained in:
@@ -7261,7 +7261,7 @@ namespace ts {
|
||||
if (links.jsxFlags & JsxFlags.ClassElement) {
|
||||
let elemInstanceType = getJsxElementInstanceType(node);
|
||||
|
||||
if (isTypeAny(elemInstanceType)) {
|
||||
if (!elemInstanceType || isTypeAny(elemInstanceType)) {
|
||||
return links.resolvedJsxType = anyType;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user