22 lines
801 B
Plaintext
22 lines
801 B
Plaintext
import type { TSESTree } from '@typescript-eslint/types';
|
|
import type { VisitorKeys } from '@typescript-eslint/visitor-keys';
|
|
export interface VisitorOptions {
|
|
childVisitorKeys?: VisitorKeys | null;
|
|
visitChildrenEvenIfSelectorExists?: boolean;
|
|
}
|
|
export declare abstract class VisitorBase {
|
|
#private;
|
|
constructor(options: VisitorOptions);
|
|
/**
|
|
* Default method for visiting children.
|
|
* @param node the node whose children should be visited
|
|
* @param excludeArr a list of keys to not visit
|
|
*/
|
|
visitChildren<T extends TSESTree.Node>(node: T | null | undefined, excludeArr?: (keyof T)[]): void;
|
|
/**
|
|
* Dispatching node.
|
|
*/
|
|
visit(node: TSESTree.Node | null | undefined): void;
|
|
}
|
|
export type { VisitorKeys } from '@typescript-eslint/visitor-keys';
|