We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e18c935 commit 68f0703Copy full SHA for 68f0703
src/compiler/checker.ts
@@ -254,6 +254,7 @@ import {
254
getDeclarationsOfKind,
255
getDeclaredExpandoInitializer,
256
getDecorators,
257
+ getDefaultLibFileName,
258
getDirectoryPath,
259
getEffectiveBaseTypeNode,
260
getEffectiveConstraintOfTypeParameter,
@@ -37955,8 +37956,9 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
37955
37956
return checkJsxAttributes(node as JsxAttributes, checkMode);
37957
case SyntaxKind.JsxOpeningElement:
37958
Debug.fail("Shouldn't ever directly check a JsxOpeningElement");
37959
+ default:
37960
+ return Debug.failBadSyntaxKind(node, "Unhandled expression node kind in checkExpressionWorker");
37961
}
- return errorType;
37962
37963
37964
// DECLARATION AND STATEMENT TYPE CHECKING
0 commit comments