How can I instanciate javascript class in type script?
For exemple:
class LiveAudioFreq {
context;
constructor(){
context = new window.AudioContext();
}
}
Give me the error:
error TS2094: The property 'AudioContext' does not exist on value of type 'Window'.
And refuse to compile, how can I use javascript methods in my ts file?