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

Top categories

svelte logo

Need a Svelte website built?

Hire a professional Svelte developer today.
Loading Svelte Themes