From 961495bb792f3cfe01634dd19acb56c56bdb527e Mon Sep 17 00:00:00 2001 From: uniqueiniquity Date: Wed, 25 Oct 2017 10:17:27 -0700 Subject: [PATCH] Remove unnecessary type annotation --- src/compiler/checker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index cc716922be1..f08f2d996af 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -13467,7 +13467,7 @@ namespace ts { function getContextualTypeForJsxExpression(node: JsxExpression): Type { // JSX expression can appear in two position : JSX Element's children or JSX attribute - const jsxAttributes: JsxAttributes = isJsxAttributeLike(node.parent) ? + const jsxAttributes = isJsxAttributeLike(node.parent) ? node.parent.parent : isJsxElement(node.parent) ? node.parent.openingElement.attributes :