UNPKG

297 BTypeScriptView Raw
1import 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 */
7export default function resolveToModule(path: NodePath): string | null;