UNPKG

react-docgen

Version:

A library to extract information from React components for documentation generation.

7 lines (6 loc) 242 B
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;