illright / attractions

A pretty cool UI kit for Svelte
https://illright.github.io/attractions
MIT License
1.03k stars 37 forks source link

Update typings for required props #347

Closed aabounegm closed 2 years ago

aabounegm commented 2 years ago

This is achieved simply through updating sveld to v0.17. The rest is very minor changes

github-actions[bot] commented 2 years ago

Docs available on https://illright.github.io/attractions/347/

aabounegm commented 2 years ago

Check the type annotation. This is the one Svelte actually assigns to the event type automatically. You can see it by explicitly writing a function literal in the handler (e => handleInput(e)) and hovering over e. I believe this is because currentTarget is guaranteed to not be null in this case. Also, to quote a Stack Overflow answer: