Comments (3)
I’ve tightened up the TypeScript typings and this should work as of version 3.1.0. Sorry about that!
from keyv-anyredis.
Thank you! This client seems to be compatible. I’ve added units tests for it. Were you having problems using it with keyv-anyredis
?
from keyv-anyredis.
I'm facing the following typing issue:
error TS2345: Argument of type 'Cluster' is not assignable to parameter of type 'CompatibleRedisClient'.
Type 'Cluster' is not assignable to type 'CompatiblePromiseRedisClient'.
Types of property 'set' are incompatible.
Type '{ (key: RedisKey, value: string | number | Buffer, callback?: Callback<"OK"> | undefined): Promise<"OK">; (key: RedisKey, value: string | ... 1 more ... | Buffer, get: "GET", callback?: Callback<...> | undefined): Promise<...>; (key: RedisKey, value: string | ... 1 more ... | Buffer, nx: "NX", callback?: Callback<.....' is not assignable to type '(key: string, value: string, expiryMode?: string | undefined, time?: number | undefined) => PromiseLike<unknown>'.
Types of parameters 'callback' and 'expiryMode' are incompatible.
Type 'string | undefined' is not assignable to type 'Callback<"OK"> | undefined'.
Type 'string' is not assignable to type 'Callback<"OK">'.
from keyv-anyredis.
Related Issues (3)
- ioredis Cluster support? HOT 4
- Add required `has` method HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from keyv-anyredis.