Closed
Description
What problem does this feature solve?
I code by vscode, and these is no code intelliSense when coding vue-cli-plugin and plugin unit test.
If ts declarations are provided, it will be helpful. I'm maintaing some vue cli plugins for some times, it's just a pain point for me.
What does the proposed API look like?
for @vue/cli-test-utils, add declaration to cli-test-utils folder, like createTestProject.d.ts
, vscode can finish code completion even in .js file.
for plugin, generator api, maybe like this?
import {GeneratorAPI} from '@vue/cli'
import {PluginAPI} from '@vue/cli-service'
or
import {GeneratorAPI, PluginAPI} from '@vue/cli-types'
export = function (api: GeneratorAPI, options: any) {
}