Skip to content

Correct the API docs type of createElement #2580

Open
@whs

Description

@whs

I'm new to VueJS, and I spent like 10 minutes figuring out how to use render.

In the API docs render is documented as (createElement: () => VNode) => VNode which is incorrect (createElement does not accept zero arguments). The correct type definition is not even listed anywhere in the API docs (it is in the guide section), even though it is part of the API.

I suggest correcting the type, perhaps if it is too long then add an ellipsis and link to the correct type definition.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions