traverse.d.ts 816 B

12345678910111213141516171819202122232425262728293031323334353637
  1. import type { NodePath } from '@babel/traverse';
  2. export declare function ignore<T>(path: NodePath<T>): void;
  3. export declare const shallowIgnoreVisitors: {
  4. FunctionDeclaration: {
  5. enter: typeof ignore;
  6. };
  7. FunctionExpression: {
  8. enter: typeof ignore;
  9. };
  10. Class: {
  11. enter: typeof ignore;
  12. };
  13. IfStatement: {
  14. enter: typeof ignore;
  15. };
  16. WithStatement: {
  17. enter: typeof ignore;
  18. };
  19. SwitchStatement: {
  20. enter: typeof ignore;
  21. };
  22. CatchClause: {
  23. enter: typeof ignore;
  24. };
  25. Loop: {
  26. enter: typeof ignore;
  27. };
  28. ExportNamedDeclaration: {
  29. enter: typeof ignore;
  30. };
  31. ExportDefaultDeclaration: {
  32. enter: typeof ignore;
  33. };
  34. ConditionalExpression: {
  35. enter: typeof ignore;
  36. };
  37. };