Closed
Description
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
Labels
No labels