Closed CanTheAlmighty closed 3 years ago
I went to the DefinitleTyped repo (aka @types/redis
) and there was this very interesting commit 8 days ago (since time of posting):
https://github.com/DefinitelyTyped/DefinitelyTyped/commit/fa3bd98507d1c677b63f4effce230b153fff4403#
- move add_command to correct location
This seems to be the source of the clash, as addCommand was moved from RedisClient.addCommand
to a top-level function
Opened a PR: https://github.com/mmkal/handy-redis/pull/311
same issue, I'll rolling back to handy-redis 1.8.3, waiting for a new version.
same issue, I'll rolling back to handy-redis 1.8.3, waiting for a new version.
Alternatively, you can manually change yarn.lock and force it to keep the older version of the package
"@types/redis@^2.8.27":
version "2.8.27"
resolved "https://registry.yarnpkg.com/@types/redis/-/redis-2.8.27.tgz#9bc89b472f3fc4a57a06c1823f2fc860c6c2fdf3"
integrity sha512-RRHarqPp3mgqHz+qzLVuQCJAIVaB3JBaczoj24QVVYu08wiCmB8vbOeNeK9lIH+pyT7+R/bbEPghAZZuhbZm0g==
dependencies:
"@types/node" "*"```
Hi, I just moved from tedis to this library with very few issues, but I'm getting a compile time issue:
Cannot redeclare block-scoped variable 'addCommand'
To isolate the issue, I created an empty typescript project:
With the above, the dependencies currently are (
yarn.lock
summarized):And used a very generic typescript config file.
With all of the above, I get the following conflict: