@types/mocha collide with @types/jest in our package #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
[build:*types] ../node_modules/@types/mocha/index.d.ts(2642,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'beforeEach' must be of type 'Lifecycle', but here has type 'HookFunction'.
You have
"dependencies": {
"@types/mocha": "^9.1.1",
Should be devDependency?
buildtool will be specified as a dev dependency of the package that uses it. It itself puts everything that it needs to build (and typecheck) code in its dependencies.
If the declarations for Mocha and Jest clash, I'm not sure that's an issue with this package.