Comments (4)
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.
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.
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.
It's working now.
Thank you!
from routeros-client.
Related Issues (17)
- improve remove, update and etc to query for the id of the entry HOT 2
- Switching between servers. HOT 17
- speed-test stream HOT 3
- getting an exception while deleting a record
- Connect to multiple devices at the same time
- Where Filter Not Working With Update, Delete, Remove.
- I cant add user to radius server via /tool/user-manage/add anyone can help me HOT 1
- Cannot connect through VPN HOT 11
- problem on torch pppoe interface
- Error: Username or password is invalid HOT 2
- Stream does not work HOT 2
- events.js:167 throw er; // Unhandled 'error' event HOT 3
- TypeError: RouterOSClient is not a constructor HOT 2
- Request: an add time function for some timer parameters HOT 1
- RosException HOT 5
- cant get /interface/wireless/monitor Information HOT 5
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 routeros-client.