mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Use type predicate for 'isVariableLike'.
This commit is contained in:
1 parent
1f6e2ddeac
commit
5c6a3d73b9
1 file changed
+1
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user