TypeScript-DOM-lib-generator
TypeScript-DOM-lib-generator copied to clipboard
[AudioWorklet] Missing properties in AudioParamMap interface
According to official documentation:
https://webaudio.github.io/web-audio-api/
https://www.w3.org/TR/webaudio/#audioparammap
This interface has "entries", "forEach", "get", "has", "keys", "values", @@iterator methods and a "size" getter brought by readonly maplike.
but in node_modules/typescript/lib/lib.dom.d.ts (https://www.npmjs.com/package/@types/audioworklet) we only have
Is there any timeline for when this interface will be updated?
Thanks!
Looks like it's not in MDN: https://developer.mozilla.org/en-US/docs/Web/API/AudioParamMap
It's already ReadonlyMap: https://github.com/microsoft/TypeScript-DOM-lib-generator/blob/17ff4cb6ec47eef6c361047aed35b2534411eb23/baselines/dom.iterable.generated.d.ts#L9
Perhaps your compilation target is es5, or your lib lacks dom.iterable?
I think changing target should fix your issue.
@github-actions close
Closing because @saschanaz is one of the code-owners of this repository.