7 lines
308 B
TypeScript
7 lines
308 B
TypeScript
import type { NodePath } from '@babel/traverse';
|
|
import type { StatelessComponentNode } from '../resolver/index.js';
|
|
/**
|
|
* Returns `true` if the path represents a function which returns a JSXElement
|
|
*/
|
|
export default function isStatelessComponent(path: NodePath): path is NodePath<StatelessComponentNode>;
|