UNPKG

580 BTypeScriptView Raw
1import type { NodePath } from '@babel/traverse';
2import type { AssignmentExpression, ClassMethod, ClassPrivateMethod, ClassProperty, ObjectMethod, ObjectProperty } from '@babel/types';
3import type { MethodDescriptor } from '../Documentation.js';
4export type MethodNodePath = NodePath<AssignmentExpression> | NodePath<ClassMethod> | NodePath<ClassPrivateMethod> | NodePath<ClassProperty> | NodePath<ObjectMethod> | NodePath<ObjectProperty>;
5export default function getMethodDocumentation(methodPath: MethodNodePath, options?: {
6 isStatic?: boolean;
7}): MethodDescriptor | null;