carbon-design-system / sveld

Generate TypeScript definitions for your Svelte components
https://sveld.onrender.com
Apache License 2.0
404 stars 21 forks source link

This but for typed web components #29

Open NickDarvey opened 3 years ago

NickDarvey commented 3 years ago

Have you considered (or tried) generating typed web components instead of Svelte components? i.e. generating types that extend from regular HTMLAttributes not svelte.JSX.HTMLAttributes etc.

I just wanted to check to see if this was a route you'd explored before running into roadblocks. (I'm not overly familiar with SvelteJS so you might be able to tell me this is a bad idea!)

metonym commented 3 years ago

Interesting idea! I'm not well versed in web components but I'm sure the same concept can be applied.