react-docgen
Version:
A library to extract information from React components for documentation generation.
9 lines (8 loc) • 307 B
TypeScript
import type { NodePath } from '@babel/traverse';
/**
* If the path is a call expression, it recursively resolves to the
* rightmost argument, stopping if it finds a React.createClass call expression
*
* Else the path itself is returned.
*/
export default function resolveHOC(path: NodePath): NodePath;