equivalence.d.ts 462 B

1234567
  1. import type { TSESTree, TSESLint } from '@typescript-eslint/experimental-utils';
  2. /**
  3. * Equivalence is implemented by comparing node types and their tokens.
  4. * Classic implementation would recursively compare children,
  5. * but "estree" doesn't provide access to children when node type is unknown
  6. */
  7. export declare function areEquivalent(first: TSESTree.Node | TSESTree.Node[], second: TSESTree.Node | TSESTree.Node[], sourceCode: TSESLint.SourceCode): boolean;