import { defineComponent, PropType, } from 'vue'; import { DeclarationReflection, TypeParameterReflection, } from 'typedoc'; import './TsDocs.scss'; const getTypeParamString = (params: TypeParameterReflection[]) => `<${params.map(p => p.name).join(', ')}>`; export default defineComponent({ name: 'TsDocs', props: { docs: { type: (null as unknown) as PropType, required: true, }, }, setup(props) { const docs = props.docs; console.log(docs); return () =>

{docs.name} {docs.typeParameters ? getTypeParamString(docs.typeParameters) : ''}

{docs.kindString}

{docs.comment}

; }, });