UNPKG

react-docgen

Version:

A library to extract information from React components for documentation generation.

4 lines (3 loc) 320 B
import type { NodePath } from '@babel/traverse'; import type { ClassDeclaration, ClassExpression, ClassMethod, Expression } from '@babel/types'; export default function getClassMemberValuePath(classDefinition: NodePath<ClassDeclaration | ClassExpression>, memberName: string): NodePath<ClassMethod | Expression> | null;