Giter VIP home page Giter VIP logo

Comments (4)

aluisiora avatar aluisiora commented on July 19, 2024

I've updated to v0.10.2. Please try updating to the newer version and see if it will work. I've updated node-routeros recently and using a wildcard ^1.* in package.json doesn't seem to keep subdependencies updated.

from routeros-client.

robertomulabi avatar robertomulabi commented on July 19, 2024

I have updated and still get the same TS2416 error:

node_modules/routeros-client/dist/RosApiModel.d.ts:35:5 - error TS2416: Property 'move' in type 'RosApiModel' is not assignable to the same property in base type 'RouterOSAPICrud'.
  Type '(to?: string | number | undefined) => Promise<any>' is not assignable to type '(from: Id, to?: string | number | undefined) => Promise<any>'.
    Types of parameters 'to' and 'from' are incompatible.
      Type 'Id' is not assignable to type 'string | number | undefined'.
        Type '(string | number)[]' is not assignable to type 'string | number | undefined'.
          Type '(string | number)[]' is not assignable to type 'number'.

35     move(to?: string | number): Types.SocPromise;

package-lock.json shows the following versions were installed:

    "node-routeros": {
      "version": "1.4.3",
    "routeros-client": {
      "version": "0.10.2",
    "typescript": {
      "version": "2.9.2",

from routeros-client.

aluisiora avatar aluisiora commented on July 19, 2024

I gave it a closer look, the signature of the move method was different from the inherited class. Should be fixed now. try updating to 0.10.3.

from routeros-client.

robertomulabi avatar robertomulabi commented on July 19, 2024

It's working now.
Thank you!

from routeros-client.

Related Issues (17)

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.