Giter Club home page Giter Club logo

Comments (3)

natesilva avatar natesilva commented on June 3, 2024 1

I’ve tightened up the TypeScript typings and this should work as of version 3.1.0. Sorry about that!

from keyv-anyredis.

natesilva avatar natesilva commented on June 3, 2024

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.

diogoazevedos avatar diogoazevedos commented on June 3, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.