resolveToModule.d.ts 297 B

1234567
  1. import type { NodePath } from '@babel/traverse';
  2. /**
  3. * Given a path (e.g. call expression, member expression or identifier),
  4. * this function tries to find the name of module from which the "root value"
  5. * was imported.
  6. */
  7. export default function resolveToModule(path: NodePath): string | null;