vue-docgen-api
Version:
Toolbox to extract information from Vue component files for documentation generation purposes.
13 lines (12 loc) • 557 B
TypeScript
import * as bt from '@babel/types';
import { NodePath } from 'ast-types/lib/node-path';
import Documentation from '../Documentation';
import type { ParseOptions } from '../types';
/**
* Extract information from an setup-style VueJs 3 component
* about what events can be emitted
* @param {NodePath} astPath
* @param {Array<NodePath>} componentDefinitions
* @param {string} originalFilePath
*/
export default function setupOptionsHandler(documentation: Documentation, componentDefinition: NodePath, astPath: bt.File, opt: ParseOptions): Promise<void>;