UNPKG

242 BTypeScriptView Raw
1import type { NodePath } from '@babel/traverse';
2/**
3 * If node is an Identifier, it returns its name. If it is a literal, it returns
4 * its value.
5 */
6export default function getNameOrValue(path: NodePath): boolean | number | string | null;