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

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;