Working with the Web Audio Api in TypeScript has presented me with a minor issue. I am trying to enhance AudioParam's prototype by adding some convenience methods that can be used on any parameter. However, I keep getting an error from the compiler stating "Property 'set' does not exist on type 'AudioParam'".
const ctx = new AudioContext()
AudioParam.prototype.set = function (value: number, at?: number, type?: number) {/*implementation*/} // The error occurs here on `set`
Is there a workaround for this?
Appreciate any assistance.