UNPKG

react-docgen

Version:

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

10 lines (9 loc) 339 B
import type { NodePath } from '@babel/traverse'; import type { CallExpression } from '@babel/types'; /** * Returns true if the expression is a function call of the form * `React.forwardRef(...)`. */ export default function isReactForwardRefCall(path: NodePath): path is NodePath<CallExpression & { __reactBuiltinTypeHint: true; }>;