-
Notifications
You must be signed in to change notification settings - Fork 18
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
DefinitelyTyped? #21
Comments
I get "Signature mismatch: Invalid number of arguments, expected 1..2" warnings in IDEA using DirtyChai function form assertions such as @gotrevor Are these the warnings you're referring to? |
@ianbrandt I've not been using WebStorm lately, and don't recall the details. |
@joshperry, I took a quick stab at this, but ran into conflicts trying to override the terminating assertion properties in the base Chai.Assertion type declaration. See the TODOs in this diff for the specific errors: master...ianbrandt:issue-21. The only workaround I've thought of so far would be to offer a complete replacement for the base Chai type declaration file. It would conflict with the |
Without typings I see the technical issue of the conflicting definitions from Subscribing to the issue with a hope of seeing a solution in the future. |
To get around this issue, I installed the latest version of I see the correct typings in my editor, for all of my files that use dirty-chai, and I can build my application without compiler errors. The important Let me know if that works for you as well. |
Hey guys, Unfortunately my TS experience is quite limited. I plan to leave this open to hopefully attract a good solution. If you guys come up with something that we can do in this plugin to facilitate, I'm happy to merge it. |
Any chance you could add a
dirty-chai
section here: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/chai ?I'm getting warnings from WebStorm about dirtyChai usage, and expect that this would resolve them.
The text was updated successfully, but these errors were encountered: