I updated to typescript 2.2.1 (from 2.1.6). I get the following error now if i build my project:
node_modules/typescript/lib/lib.dom.d.ts(1380,11): error TS2320: Interface 'AudioContext' cannot simultaneously extend types 'AudioContextBase' and 'EventTarget'.
Named property 'addEventListener' of types 'AudioContextBase' and 'EventTarget' are not identical.
The compiler options to reproduce this:
"target": "es5"
"lib": ["es2015", "dom"]
The problem seems to be this line:
https://github.com/BabylonJS/Babylon.js/blob/master/src/babylon.mixins.ts#L44
Maybe this mixin can be removed now?