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
[ ] See if we can get specify the type of the $tours object
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