Skip to content

Create a vue language service extension for typescript  #5763

Closed
@lucastheisen

Description

@lucastheisen

What problem does this feature solve?

Provides types for custom components written as SFC (.vue), imported by other files (like unit tests). Right now, you suggest:

declare module '*.vue' {
    import Vue from 'vue'
    export default typeof Vue
}

But that results in every imported SFC component being of type Vue rather than the component type (which extends Vue). It makes it much more difficult (annoying) to test.

What does the proposed API look like?

It would conform to the recently released (ts version 2.3) language server plugin supporty

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions