UNPKG

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