UNPKG

react-docgen

Version:

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

6 lines (5 loc) 408 B
import type { NodePath } from '@babel/traverse'; import type { ArrayPattern, AssignmentPattern, Identifier, ObjectPattern, RestElement, TSParameterProperty } from '@babel/types'; type ParameterNodePath = NodePath<ArrayPattern | AssignmentPattern | Identifier | ObjectPattern | RestElement | TSParameterProperty>; export default function getParameterName(parameterPath: ParameterNodePath): string; export {};