Files
Shifted/node_modules/react-docgen/dist/utils/resolveToModule.d.ts
2026-02-10 01:14:19 +00:00

8 lines
297 B
TypeScript

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