halfnelson / svelte-type-checker-vscode

VSCode integration for svelte-type-checker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Warning

This is now archived, You probably want https://marketplace.visualstudio.com/items?itemName=svelte.svelte-vscode most of the code in this repo has been incorporated into the official svelte plugin (https://github.com/sveltejs/language-tools/tree/master/packages/svelte-vscode)

Svelte Type Checker - DEPRECATED

Provides deep type checking for Svelte files by leaning on the Typescript language service.

Requires a Svelte language mode plugin such as Svelte Beta

For best results, disable the typescript complete, hover, and definition features of the Svelte plugin and enable all the settings of this plugin.

Features provided

  • Type checks regular JS as well as Typescript
  • Type checking of component template (including prop types and slots)
  • Autocomplete for component props
  • Go to definition for components and props
  • Hover information for template attributes

Examples

Property Type Checking

Property Type Checking

Property Auto Complete

Property Completion

Slot Parameter Checking

Slot Param Check

Slot Parameter Info

Slot Param Info

Await Type Checking/Info

Await Types

Store Type Checking/Info

Store Types

Animation Parameter Checking/Info

Transition Types

About

VSCode integration for svelte-type-checker

License:Other


Languages

Language:TypeScript 96.2%Language:JavaScript 3.4%Language:Shell 0.5%