Skip to content

Document template ref typing in TS (i.e. InstanceType) #980

Closed
@craPkit

Description

@craPkit

To prevent issues like this, the typescript section should be amended with an exemplary declaration of a component ref's type using InstanceType.

Here's a more elaborate example: https://stackoverflow.com/questions/66907606/whats-vue-3-composition-apis-type-safe-way-of-defining-methods/66909582#66909582

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions