UNPKG

react-docgen

Version:

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

4 lines (3 loc) 205 B
import type { NodePath } from '@babel/traverse'; import type { ComponentNode } from '../resolver/index.js'; export default function findComponentDefinition(path: NodePath): NodePath<ComponentNode> | null;