@types/mocha collide with @types/jest in our package #3

Open
opened 2025-02-20 14:43:29 +01:00 by MattiasJa · 1 comment
MattiasJa commented 2025-02-20 14:43:29 +01:00 (Migrated from github.com)

[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?

[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?
marijnh commented 2025-02-20 21:06:53 +01:00 (Migrated from github.com)

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.

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.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
marijn/buildtool#3
No description provided.