Update TS types, make it work in newest Chrome
This commit is contained in:
parent
e2f2bb3067
commit
b20b6c2fc3
@ -59,8 +59,8 @@ class WebSerialPackageIO implements pxt.HF2.PacketIO {
|
|||||||
let io = WebSerialPackageIO.portIos.filter(i => i.port == port)[0];
|
let io = WebSerialPackageIO.portIos.filter(i => i.port == port)[0];
|
||||||
if (!io) {
|
if (!io) {
|
||||||
const options: SerialOptions = {
|
const options: SerialOptions = {
|
||||||
baudrate: 460800,
|
baudRate: 460800,
|
||||||
buffersize: 4096
|
bufferSize: 4096
|
||||||
};
|
};
|
||||||
io = new WebSerialPackageIO(port, options);
|
io = new WebSerialPackageIO(port, options);
|
||||||
WebSerialPackageIO.portIos.push(io);
|
WebSerialPackageIO.portIos.push(io);
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
],
|
],
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/bluebird": "2.0.33",
|
"@types/bluebird": "2.0.33",
|
||||||
"@types/dom-serial": "0.1.0",
|
"@types/dom-serial": "^1.0.0",
|
||||||
"@types/jquery": "3.5.1",
|
"@types/jquery": "3.5.1",
|
||||||
"@types/marked": "0.3.0",
|
"@types/marked": "0.3.0",
|
||||||
"@types/node": "8.0.53",
|
"@types/node": "8.0.53",
|
||||||
|
Loading…
Reference in New Issue
Block a user