UNPKG

339 BTypeScriptView Raw
1import type { NodePath } from '@babel/traverse';
2import type { CallExpression } from '@babel/types';
3/**
4 * Returns true if the expression is a function call of the form
5 * `React.forwardRef(...)`.
6 */
7export default function isReactForwardRefCall(path: NodePath): path is NodePath<CallExpression & {
8 __reactBuiltinTypeHint: true;
9}>;