We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Previously I often used code like
import chai from 'chai' chai.use(pluginA).use(pluginB)
Now it no longer works - I have to ho with
chai.use(pluginA) chai.use(pluginB)
The type definitions suggest that the old way should work - that use returns Chai.ChaiStatic but it is not the case.
Chai.ChaiStatic
It may be related to #1638 - fix proposed there would also fix this issue.
The text was updated successfully, but these errors were encountered:
#1639 would fix this
Sorry, something went wrong.
I think the preferred usage these days is to not chain it and use the exported use function rather than the 'chai static' it returns
use
but you are right, #1639 would allow you to chain again and should be merged
I understand - but then either #1639 should be merged or type definitions updated. Removing this line https://github.com/DefinitelyTyped/DefinitelyTyped/blob/367fcd5cc72baeab1c7fa927f774a36ec7685c69/types/chai/index.d.ts#L83 Would reflect current state of main code.
The PR should be merged 👍
If I get chance I can try catch it up and get it done
No branches or pull requests
Previously I often used code like
Now it no longer works - I have to ho with
The type definitions suggest that the old way should work - that use returns
Chai.ChaiStatic
but it is not the case.It may be related to #1638 - fix proposed there would also fix this issue.
The text was updated successfully, but these errors were encountered: