Schum123 / svelte-loading-spinners

A collection of loading spinner components for SvelteJs
https://schum123.github.io/svelte-loading-spinners/
MIT License
511 stars 35 forks source link

Add TypeScript support #11

Closed rjkz808 closed 3 years ago

rjkz808 commented 3 years ago

Good library! Would be great if it has some type definitions. Here's an example of how people added those for svelte-material-ui.

By the way, it's also a good idea to make this library TypeScript first. It can be achieved by changing rollup config and adding some simple types to the code:

export let size: number = 60;
export let color: string = "#FF3E00";
export let unit: string = "px";
Schum123 commented 3 years ago

@rjkz808 Thank you. Typescript added.