UNPKG

react-docgen

Version:

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

7 lines (6 loc) 308 B
import type { NodePath } from '@babel/traverse'; import type { StatelessComponentNode } from '../resolver/index.js'; /** * Returns `true` if the path represents a function which returns a JSXElement */ export default function isStatelessComponent(path: NodePath): path is NodePath<StatelessComponentNode>;