HAP-NodeJS icon indicating copy to clipboard operation
HAP-NodeJS copied to clipboard

node and dependencies

Open bwp91 opened this issue 1 year ago • 0 comments

  • updated dependencies
  • mark as compatible with node 22

fix type error (probably due to typescript update)

> [email protected] build
> rimraf dist && tsc && node .github/node-persist-ignore.js

src/lib/Accessory.ts:2142:34 - error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string'.
  Type 'undefined' is not assignable to type 'string'.

2142         const version = net.isIP(entry); // check if ip address was specified or an interface name
                                      ~~~~~


Found 1 error in src/lib/Accessory.ts:2142


Process finished with exit code 2

bwp91 avatar Oct 12 '24 10:10 bwp91