wokwi / avr8js

Arduino (8-bit AVR) simulator, written in JavaScript and runs in the browser / Node.js
https://blog.wokwi.com/avr8js-simulate-arduino-in-javascript/
MIT License
463 stars 73 forks source link

TypeScript declaration files cause errors on TypeScript < 3.7 #1

Closed urish closed 4 years ago

urish commented 4 years ago

The bundled TS declaration files cause errors such as:

node_modules/avr8js/dist/cpu.d.ts:34:9 - error TS1086: An accessor cannot be declared in an ambient context.

This is probably related to microsoft/TypeScript#33643, and the suggested workaround is to downgrade to TypeScript 2.6.x