Introducing Typescript on Svelte module, without necessarily doing more for now, could already provide benefits, such as detecting invalid/insufficiant component props.
While we could also start converting .js to .ts and get some benefits from it, for more indepth typing, I think it would be worth figuring out our typing setup on the server, possibly to then consume the server-produced types client-side (à la trpc?).
Introducing Typescript on Svelte module, without necessarily doing more for now, could already provide benefits, such as detecting invalid/insufficiant component props.
See demo 6074cdaa8![ts_svelte_check](https://github.com/inventaire/inventaire-client/assets/1596934/995174ac-f5a9-4d3a-9780-60408034fee2)
I followed recommendation from this article
While we could also start converting
.js
to.ts
and get some benefits from it, for more indepth typing, I think it would be worth figuring out our typing setup on the server, possibly to then consume the server-produced types client-side (à la trpc?).