Hi,
It is my first time that I want to try and change some source code and compile it and use it my main project that is using SIP.js.
I am compiling it on Windows (although using Cygwin as a terminal, as I see that some commands in the npm run commands are Linux commands).
I am doing:
- npm install
- npm build
everything compiles, but...
When I am trying to use the compiled project in my TypeScript project (not by using the compiled "sip.min.js" file, but using TypeScript imports) I am getting lots of errors from this kind:
Severity Code Description Project File Line Suppression State
Error TS2322 (TS) Type 'Timeout' is not assignable to type 'number'. D:\DEV\client (tsconfig or jsconfig project) D:\DEV\client\sipjs\src\api\invitation.ts 99 Active
Error TS2322 (TS) Type 'Timeout' is not assignable to type 'number'. D:\DEV\client (tsconfig or jsconfig project) D:\DEV\client\sipjs\src\api\invitation.ts 116 Active
Error TS2322 (TS) Type 'Timeout' is not assignable to type 'number'. D:\DEV\client (tsconfig or jsconfig project) D:\DEV\client\sipjs\src\api\publisher.ts 231 Active
Error TS2322 (TS) Type 'Timeout' is not assignable to type 'number'. D:\DEV\client (tsconfig or jsconfig project) D:\DEV\client\sipjs\src\api\registerer.ts 677 Active
I am having the above error for all of the objects in API.
Can you please suggest me how should I do it correctly?
Thanks!