isStatelessComponent.d.ts 308 B

123456
  1. import type { NodePath } from '@babel/traverse';
  2. import type { StatelessComponentNode } from '../resolver/index.js';
  3. /**
  4. * Returns `true` if the path represents a function which returns a JSXElement
  5. */
  6. export default function isStatelessComponent(path: NodePath): path is NodePath<StatelessComponentNode>;