ircam-ismm / node-web-audio-api

Web Audio API implementation for Node.js
https://www.npmjs.com/package/node-web-audio-api
BSD 3-Clause "New" or "Revised" License
100 stars 13 forks source link

After upgrading to version 0.13.0 and compiling ts, an error is reported. Argument of type '{ sinkId: string; }' is not assignable to parameter of type 'AudioContextOptions'. #40

Open luliloveshe opened 11 months ago

luliloveshe commented 11 months ago

D1T)IJ97R4NO@FRN(% 4_ 5

b-ma commented 10 months ago

Hey, sorry for the late reply, it seems that the TS types are generated from the published API (https://www.w3.org/TR/webaudio/) while sinkId is still only in editors draft (https://webaudio.github.io/web-audio-api/)

Not really a user of typescript myself so I don't really know how to solve the issue, maybe adding the AudioContextOptions manually in the index.d.ts file? Any help welcome here