Skip to content

add Vue module augmentation for directives #4225

@userquin

Description

@userquin

Clear and concise description of the problem

To allow VSCode (Volar) suggesting directives we need to augment vue module using GlobalDirectives: @BobbieGoede and me are checking if we also need ComponentCustomProperties (looks like Volar still needs it).

Suggested solution

Augment Vue module per directive, maybe we can do that in the build script.

Alternative

Add the Vue module augmentation manually per used directive.

Or add it to unplugin-vue-components: right now there is an existing vueuse-directive but for the component usage (?)

Additional context

You can check feat(addon): add auto-import vue directives on unimport repo to allow auto importing vue directives including also dts declaration.

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions