UNPKG

382 BTypeScriptView Raw
1import type { NodePath } from '@babel/traverse';
2/**
3 * If the path is an identifier, it is resolved in the scope chain.
4 * If it is an assignment expression, it resolves to the right hand side.
5 * If it is a member expression it is resolved to it's initialization value.
6 *
7 * Else the path itself is returned.
8 */
9export default function resolveToValue(path: NodePath): NodePath;