7 lines
242 B
TypeScript
7 lines
242 B
TypeScript
import type { NodePath } from '@babel/traverse';
|
|
/**
|
|
* If node is an Identifier, it returns its name. If it is a literal, it returns
|
|
* its value.
|
|
*/
|
|
export default function getNameOrValue(path: NodePath): boolean | number | string | null;
|