Skip to content
Svelte typescript server plugin
TypeScript JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
.editorconfig
.gitignore
.prettierignore
.prettierrc.js
LICENSE
README.md
package-lock.json
package.json
tsconfig.json

README.md

TypeScript Language Service Plugin for Svelte

This is an attempt to pass javascript from .svelte to tsserver.

I personally use it with Vim ALE to get better auto-complete. A little bit more information what I have tried to do here https://blog.ffff.lt/posts/vim-and-svelte/#typescript

Install instructions

  1. Install typescript globally npm install -g typescript
  2. Install plugin npm install -g svelte-ts-plugin
  3. Add plugin to jsconfig.json. E.g.:
{
  "compilerOptions": {
    "plugins": [{ "name": "svelte-ts-plugin" }]
  }
}

Development instructions

  1. Install typescript globally npm install -g typescript
  2. cd svelte-ts-plugin, npm install and npm link
  3. cd to_your_project and npm link svelte-ts-plugin
  4. Add plugin to jsconfig.json. E.g.:
{
  "compilerOptions": {
    "plugins": [{ "name": "svelte-ts-plugin" }]
  }
}

If you prefer (or are forced) to use yarn then replace npm to yarn in commands above.

Useful links

This information might be useful:

You can’t perform that action at this time.