From 4452c0e70a98f11c4fe7485be254e4c5ad86db43 Mon Sep 17 00:00:00 2001 From: Nathan Kellenicki Date: Tue, 28 Aug 2018 09:22:06 -0700 Subject: [PATCH] First pass at Duplo train support --- DOCS.md | 2 +- README.md | 2 +- poweredup.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/DOCS.md b/DOCS.md index ee96efa..9ff14b0 100644 --- a/DOCS.md +++ b/DOCS.md @@ -66,7 +66,7 @@ Emits when a Powered UP Hub device is found. | Param | Type | | --- | --- | -| hub | [WeDo2SmartHub](#WeDo2SmartHub) \| [BoostMoveHub](#BoostMoveHub) \| [PUPHub](#PUPHub) \| [PUPRemote](#PUPRemote) | +| hub | [WeDo2SmartHub](#WeDo2SmartHub) \| [BoostMoveHub](#BoostMoveHub) \| [PUPHub](#PUPHub) \| [PUPRemote](#PUPRemote) \| [DuploTrainHub](#DuploTrainHub) | diff --git a/README.md b/README.md index 4836dc1..1d5f9c1 100644 --- a/README.md +++ b/README.md @@ -145,7 +145,7 @@ Emits when a Powered UP Hub device is found. | Param | Type | | --- | --- | -| hub | [WeDo2SmartHub](#WeDo2SmartHub) \| [BoostMoveHub](#BoostMoveHub) \| [PUPHub](#PUPHub) \| [PUPRemote](#PUPRemote) | +| hub | [WeDo2SmartHub](#WeDo2SmartHub) \| [BoostMoveHub](#BoostMoveHub) \| [PUPHub](#PUPHub) \| [PUPRemote](#PUPRemote) \| [DuploTrainHub](#DuploTrainHub) | diff --git a/poweredup.ts b/poweredup.ts index 854b9be..d9bcba4 100644 --- a/poweredup.ts +++ b/poweredup.ts @@ -95,7 +95,7 @@ export class PoweredUP extends EventEmitter { /** * Emits when a Powered UP Hub device is found. * @event PoweredUP#discover - * @param {WeDo2SmartHub | BoostMoveHub | PUPHub | PUPRemote} hub + * @param {WeDo2SmartHub | BoostMoveHub | PUPHub | PUPRemote | DuploTrainHub} hub */ this.emit("discover", hub);