From b20b6c2fc3c568ac2633a902792cff4d488313b7 Mon Sep 17 00:00:00 2001 From: Maciej Mrozinski Date: Fri, 13 Nov 2020 13:52:03 +0100 Subject: [PATCH] Update TS types, make it work in newest Chrome --- editor/deploy.ts | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/editor/deploy.ts b/editor/deploy.ts index 16f212be..3a4e24f4 100644 --- a/editor/deploy.ts +++ b/editor/deploy.ts @@ -59,8 +59,8 @@ class WebSerialPackageIO implements pxt.HF2.PacketIO { let io = WebSerialPackageIO.portIos.filter(i => i.port == port)[0]; if (!io) { const options: SerialOptions = { - baudrate: 460800, - buffersize: 4096 + baudRate: 460800, + bufferSize: 4096 }; io = new WebSerialPackageIO(port, options); WebSerialPackageIO.portIos.push(io); diff --git a/package.json b/package.json index dd7d5a7a..9a0aa71b 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ ], "devDependencies": { "@types/bluebird": "2.0.33", - "@types/dom-serial": "0.1.0", + "@types/dom-serial": "^1.0.0", "@types/jquery": "3.5.1", "@types/marked": "0.3.0", "@types/node": "8.0.53",