1.0.0 • Published 4 years ago

svelte-wired-types v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

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>