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
Typings file doesn't compile #143
Comments
@benmerckx do you have any examples on how you're using this exactly? |
It works fine for me on typescript 2.9.2. Maybe I have something misconfigured but it doesn't seem that way (changing the constructor type gives me correct error messages). In any case if you can reproduce this, I think a simple PR changing the constructor to |
Changing the constructor to constructor(options: TributeOptions) seems to compile, I'll test if everything works. Edit: creating an instance fails when I only change the constructor, I get Any suggestions? |
Edit: wait it's a type error - I have no clue what's going on then |
Are you using the package 'as-is' in one of your projects? |
I added another PR with a really easy change fixing that issue #149 |
Thank you guys for reporting this. Can you try the latest release, |
Yep, works for me. |
Sweet! I'm closing it down. Let me know if you guys have any other TypeScript issues. |
How can we reproduce this bug?
Try to reference the typings file and compile your code. The generic constructor throws an error.
An older version of the file works fine, but doesn't support all the features.
The changes I did on https://github.com/PieterVerledens/tribute allow me to use tribute and compile my project.
Is anyone using the typings file as is without any issues?
The text was updated successfully, but these errors were encountered: