Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function is(node: TreeNode | undefined): node is RootNode {
if (Node.is(node) && 'direction' in node) {
// tslint:disable-next-line:no-any
const { direction } = (node as any);
return direction === TypeHierarchyDirection.Children || direction === TypeHierarchyDirection.Parents;
}
return false;
}
execute: () => this.openViewOrFlipHierarchyDirection(TypeHierarchyDirection.Parents),
isEnabled: this.isEnabled.bind(this)