Open mikelpr opened 2 years ago
ok so I see it works if I use js and babel, while it does not work with typescript's decorators. also that the @property decorator doesn't crash on typescript but doesn't show up in D-Feet anyway. so it's a general typescript incompatibility
https://acrisci.github.io/doc/node-dbus-next/module-interface-Interface.html
use configureMembers()
. If there's a way to make the decorators compatible with TypeScript let me know.
I'm getting these when I try to use the @method({}) decorator:
https://github.com/dbusjs/node-dbus-next/blob/b2a6b89e79de423debb4475452db1cc410beab41/lib/service/interface.js#L158
Debugging with vscode shows me that descriptor is my Interface but descriptor.descriptor is undefined so it fails on that descriptor.descriptor.value