-
Notifications
You must be signed in to change notification settings - Fork 71
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
v1.6.0 broke typescript support in strict mode #80
Comments
@cesasol or @namoscato could you guys have a look at it? unfortunately I don't use typescript so I have no clue 🤣 thanks a lot! |
In vue-gtag.d.ts file, two functions doesn't have a return type and one parameter isn't typed which is causing the issue. I had the same issue and have just updated this file line 173 line 174 line 208 That's not the best solution (especially for the "any" return type, it should be best to have the exact return type but I didn't dig deep into it) but it's a workaround for the moment. |
Yeah, I can take a pass within the next couple of days. Looking at #63, some of the optional |
Fixes MatteoGabriele#80 * Wrap [at]types/gtag.js in namespace for clarity * Fix event() parameters * Fix strict mode compatibility * Add doc blocks
🎉 This issue has been resolved in version 1.6.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Description
Trying to build a project that uses vue-gtag fails when type check and typescript strict mode is enabled.
Expected behavior
Build should work in strict mode.
Actual behavior
Environment
vue-gtag 1.6.0
MacOS Catalina
TypeScript 3.7.5
The text was updated successfully, but these errors were encountered: