diff --git a/src/compiler/parser.ts b/src/compiler/parser.ts index 10d4a47c3df..1c41003a7a1 100644 --- a/src/compiler/parser.ts +++ b/src/compiler/parser.ts @@ -2536,7 +2536,7 @@ namespace ts { } return false; } - + function parseTypeOrTypePredicate(): TypeNode { const typePredicateVariable = tryParse(() => { const id = parseIdentifier(); @@ -2546,7 +2546,7 @@ namespace ts { } }); const t = parseType(); - if(typePredicateVariable) { + if (typePredicateVariable) { const node = createNode(SyntaxKind.TypePredicate, typePredicateVariable.pos); node.parameterName = typePredicateVariable; node.type = t;