vue-docgen-api
Version:
Toolbox to extract information from Vue component files for documentation generation purposes.
9 lines (8 loc) • 343 B
TypeScript
import { Node, TemplateChildNode } from '@vue/compiler-dom';
/**
* Extract leading comments to an html node
* Even if the comment is on multiple lines it's still taken as a whole
* @param templateAst
* @param rootLeadingComment
*/
export default function extractLeadingComment(siblings: TemplateChildNode[], templateAst: Node): string[];