Use type predicate for 'isVariableLike'.

This commit is contained in:
Daniel Rosenwasser
2015-07-15 15:53:42 -07:00
parent 1f6e2ddeac
commit 5c6a3d73b9

View File

@@ -566,7 +566,7 @@ namespace ts {
}
}
export function isVariableLike(node: Node): boolean {
export function isVariableLike(node: Node): node is VariableLikeDeclaration {
if (node) {
switch (node.kind) {
case SyntaxKind.BindingElement: