Skip to content

micha-lmxt/svelte-wired-types

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

svelte-wired-types

Nice type definition files for (wired elements)[https://wiredjs.com/] to use with Svelte.

Usage

npm install --save-dev svelte-wired-types

Then put an import somewhere, eg. the main.ts file:

import "svelte-wired-types";

Now you should have see type information in vs code for wired-elements components, eg. when you hover over wired-button:

 //App.svelte
 <script lang="ts">
  import "wired-elements";
 </script>
 
<main>
  <wired-card elevation={5} fill={"#99A8B5"}>
    <wired-button elevation={2} >Submit</wired-button>
 </wired-card>
</main>

For more details read my blog