isReactBuiltinCall.d.ts 343 B

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