Created from react styleguidist for Vue Components with a living style guide - vue-docgen-api to parse type TSInstantiationExpression (#1533) · vue-styleguidist/vue-styleguidist@3d22684
import{parse}from'vue-docgen-api'asyncfunctionparseMyComponent(filePath:string){varcomponentInfoSimple=awaitparse(filePath)varcomponentInfoConfigured=awaitparse(filePath,{alias:{'@assets':path.resolve(__dirname,'src/assets')},modules:[path.resolve(__dirname,'src')],addScriptHandlers:[function(document...
parse(filePath)ParameterTypeDescription filePath string The file pathUsing JSDoc tagsYou can use the following JSDoc tags when documenting components, props and methods.ExampleFor the following component<template> <!-- @slot Use this slot header --> <slot name="header"></slot> <!-- --...
parse(src) 19 28 const nodePath: any = getTypeDefinitionFromIdentifier(astFile, 'LocalType', { 20 29 filePath: __filename 21 30 } as ParseOptions) 22 - const props = nodePath?.map( 23 - (prop: any) => prop.node.key.name + ' ' + prop.node.typeAnnotation.typeAnnotation...