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

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>;