Skip to content

Converting a function definition to class for rendering Vue Functional Components. #2841

Closed
@peynman

Description

@peynman

Search terms

typedoc vue functional component properties documentation

Question

While declaring a functional vue 3 component, the return type is lost.

export const HelloWorldFunctionalComponent: FunctionalComponent<HelloWorldProps, HelloWorldEvents> =
  (props: HelloWorldProps, ctx) => {
    return h('div')
  }

I want to be able to grab FunctionalComponent<HelloWorldProps, HelloWorldEvents> as a reflection declaration. is this possible?
I want to automatically convert a functional component to a class with its properties. grab HelloWorldProps type, and add its properties to HelloWorldFunctionalComponent reflection as a class.
My base working env is typedoc-plugin-vue repo.
Please let me know if I'm not clear enough and thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    plugin ideaThis feature may be best suited for a pluginquestionQuestion about functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions