Some of the changes in this PR are breaking. Here is a list of some of them:
Printer.getStatus takes (a constructor of) a status class instead of it's the class name
All callbacks of the Printer methods have been converted to promises. This means chaining on methods returning a promise is no longer possible. (This could potentially be solved by implementing both Promise (or PromiseLike) and Printer in the returned value.
Migrated packages:
node-bluetooth
doesn't include types, consider using https://www.npmjs.com/package/bluetooth-serial-port)Other changes:
Some of the changes in this PR are breaking. Here is a list of some of them:
Printer.getStatus
takes (a constructor of) a status class instead of it's the class namePromise
(orPromiseLike
) andPrinter
in the returned value.