svelte-wired-types
v1.0.0
Published
Typescript type definition files for wired js with Svelte
Downloads
4
Readme
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>