How to Include WebAudio Api definitions for Ionic2?

I am trying to use WebAudio Api in an Ionic2 project and I can not build it because typescript says

“Property ‘AudioContext’ does not exist on type window”

and I do not know how to fix this. I was looking for an answer but some thinks I found anything that works.

Somebody knows how to fix this?


For window based properties, you dont need to add window., you can just use AudioContext and it should just work.

Thanks a lot! I have battle with Typescript typings and other things when the solution was so easy!