TypeScript-DOM-lib-generator icon indicating copy to clipboard operation
TypeScript-DOM-lib-generator copied to clipboard

[AudioWorklet] Missing properties in AudioParamMap interface

Open abritopach opened this issue 3 years ago • 2 comments

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.

Captura de pantalla 2022-07-05 a las 19 36 47

but in node_modules/typescript/lib/lib.dom.d.ts (https://www.npmjs.com/package/@types/audioworklet) we only have

Captura de pantalla 2022-07-05 a las 19 37 40

Is there any timeline for when this interface will be updated?

Thanks!

abritopach avatar Jul 05 '22 18:07 abritopach

Looks like it's not in MDN: https://developer.mozilla.org/en-US/docs/Web/API/AudioParamMap

orta avatar Jul 05 '22 19:07 orta

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?

saschanaz avatar Jul 26 '22 21:07 saschanaz

I think changing target should fix your issue.

@github-actions close

saschanaz avatar Sep 17 '22 21:09 saschanaz

Closing because @saschanaz is one of the code-owners of this repository.

github-actions[bot] avatar Sep 17 '22 21:09 github-actions[bot]