Alpha-stage TypeScript Language Service Plugin for Vue that provides TypeScript intellisense inside .vue files by parsing the script section and wrapping default exports in new Vue() for contextual typing. Version 0.1.3 (last release). It integrates with any editor supporting the TypeScript language service (VS Code, Emacs, Vim via tsuquyomi-vue). Unlike Vetur which is VS Code-specific, this plugin is editor-agnostic. It resolves .vue imports but does not support template or style sections; completions only work inside script tags.
npm install ts-vue-pluginVerified import paths — ran on the pinned version, not inferred.
Shows configuration in tsconfig.json and an example .vue script that triggers TypeScript intellisense via the plugin.
Use export default { ... } syntax inside script tags.Use Vetur for full .vue file support (template+script+style).
Ensure script tag has lang="ts" or lang="js" or no lang attribute.
Migrate to @vue/language-server (Volar) or Vetur for VS Code users.
Run 'Select TypeScript version' in VS Code or set tsserver path in your editor.
Run npm install vue-template-compiler --save-dev
Check that ts-vue-plugin is installed and listed correctly in compilerOptions.plugins.
Ensure you use export default { ... } with an object literal; avoid variables or function returns.Add "allowJs": true or set "jsx": "preserve" in tsconfig.json.