Proper exports

This commit is contained in:
Nathan Kunicki 2018-06-21 13:56:52 +01:00
parent 96cd8ad68c
commit 02c134dea7
2 changed files with 5 additions and 2 deletions

View File

@ -100,3 +100,6 @@ export class LPF2 extends EventEmitter {
} }
export default LPF2;
export { Hub, WeDo2Hub, BoostHub };

View File

@ -1,6 +1,6 @@
const LPF2 = require("."); const LPF2 = require(".").LPF2;
const lpf2 = new LPF2.LPF2(); const lpf2 = new LPF2();
lpf2.scan(); lpf2.scan();
lpf2.on("discover", (hub) => { lpf2.on("discover", (hub) => {