Files
Shifted/node_modules/react-docgen/dist/utils/isReactCloneElementCall.d.ts
2026-02-10 01:14:19 +00:00

10 lines
343 B
TypeScript

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.cloneElement(...)`.
*/
export default function isReactCloneElementCall(path: NodePath): path is NodePath<CallExpression & {
__reactBuiltinTypeHint: true;
}>;