mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-20 01:54:20 -06:00
Fix lint
This commit is contained in:
parent
af7df83825
commit
fd311d4e27
@ -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 = <TypePredicateNode>createNode(SyntaxKind.TypePredicate, typePredicateVariable.pos);
|
||||
node.parameterName = typePredicateVariable;
|
||||
node.type = t;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user