File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -34550,7 +34550,9 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
34550
34550
function checkAssertionDeferred(node: JSDocTypeAssertion | AssertionExpression) {
34551
34551
const { type } = getAssertionTypeAndExpression(node);
34552
34552
const errNode = isParenthesizedExpression(node) ? type : node;
34553
- const exprType = getRegularTypeOfObjectLiteral(getBaseTypeOfLiteralType(getNodeLinks(node).assertionExpressionType!));
34553
+ const links = getNodeLinks(node);
34554
+ Debug.assertIsDefined(links.assertionExpressionType);
34555
+ const exprType = getRegularTypeOfObjectLiteral(getBaseTypeOfLiteralType(links.assertionExpressionType));
34554
34556
const targetType = getTypeFromTypeNode(type);
34555
34557
if (!isErrorType(targetType)) {
34556
34558
addLazyDiagnostic(() => {
You can’t perform that action at this time.
0 commit comments