New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeScript @type definition #73
Comments
As a beginnings of a solution, I got this working with two shims. vue-tour.d.ts
Obviously one needs to add all the methods you use to Tour but it is a start shims-vue.d.ts
|
I've got my whole typescript environment working nicely based on the above. @HZooly - are you actively working on this already? If not, I'd be happy to submit a PR that gets you a reasonable way forward. I'm sort of keen to find something to give back to this project given how awesome I've both used and customised vue-tour for my purposes |
Hi @glorat, if you already have something on your side, feel free to submit a pull request 😊 |
It solved my problem as well but I have started facing issues in running my tests on Jenkins. /**
declare module '*.vue' { import {Tour} from 'vue-tour'; declare module "vue/types/vue" { // this is vue-tour.d.ts
} Below is the error log
|
@mohsinkhan00700 those typescript errors have nothing to do with vue-tour |
I'm happy to get a working set of typings files but there's the question of how to publish them. Your options are
See https://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html for more details |
@Outpox do you have opinion about it? I would opt for the first choice. I would put typings files in a |
In my opinion we should package the typings in vue-tour as we've got full control of the library. |
I support the above opinion and testing was far easier than I realised (I just symlinked the vue-tour project into the node_modules of my consuming project). PR has been raised at #115 |
Feature is now published in Vue Tour 1.3.1 #115 |
I was getting the error "No overload matches this call" on Fixed it by adding the below in
|
How can I use it in typescript?
The text was updated successfully, but these errors were encountered: