securityos/node_modules/eslint-plugin-sonarjs/lib/utils/utils-parent.d.ts

4 lines
321 B
TypeScript

import type { TSESTree } from '@typescript-eslint/experimental-utils';
export declare function findFirstMatchingAncestor(node: TSESTree.Node, predicate: (node: TSESTree.Node) => boolean): TSESTree.Node | undefined;
export declare function ancestorsChain(node: TSESTree.Node, boundaryTypes: Set<string>): TSESTree.Node[];