-
-
Notifications
You must be signed in to change notification settings - Fork 377
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
Wrong types in bull-board #253
Comments
Thank you for reporting this issue 🙏🏼 What version of TS are you using? PR's are always welcome |
I've tested the code using
It works as expected. |
I'm using typescript 3.9.2 |
I've just tested it with typescript 3.9.2, still works. |
I made the compilation working by the following steps
Move to my project
|
No, it should be in dependency, since types are part of the public api of the package (for TS users) and we consume them. From the error looks like your |
Yeah, but now you've lost a type safty as lib consumer. I've made a clean new project that consumes What version of |
4.16.2 |
What version of I've released |
[email protected] |
BTW, did you tried to clean install the project? (to remove |
I did |
Try Can you check the version of |
node_modules/bull/node_modules/@types/ioredis: 4.14.9 tried 1.5.3, not working with another error message
|
Weird... do you have |
yes, I did |
I don't understand why it install a different version of Run I get
Pls share your tree |
|
I've downgraded the
Pls remove any lock files and reinstall you deps. |
The issue is gone now and can be compiled now, thank you very much |
When I try to compile the following code, this error occurs
Error
It is caused by BullAdapter.getClient() returns
Promise<Queue['client']>
while Queue extends EventEmitter and setQueues only accept QueueAdapter[] and QueueAdapter.getClient returnsPromise<Redis.Redis>
(Redis.Redis is a type of ioredis)Please fix the types definition if available, thanks.
The text was updated successfully, but these errors were encountered: