alexandreDavid / vue3-tour

Vue-tour in Vue3
MIT License
49 stars 21 forks source link

Port to Typescript #13

Closed joshhansen closed 5 months ago

joshhansen commented 2 years ago

Because I'm planning on integrating vue3-tour into an existing Typescript codebase, I decided to give porting the library itself to Typescript a try. This draft PR is what I currently have, I'm posting it in case you are interested. Mostly this would save me the trouble of having to declare Step types and similar within my own codebase.

The main reason this is a draft still is because I'm unsure if I'm generating the type declarations in a sensible fashion. That will require a bit more work putting the code through its paces.

The port was fairly simple since Vite already supports Typescript.

I did not port the example app---that remains in Javascript.

I could also just add type declarations, if you'd rather not actually do a port.

TODO