-
Notifications
You must be signed in to change notification settings - Fork 441
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebMIDI #1724
Comments
The reason it's done with forEach is because es5 doesn't support Map. For TypeScript-DOM-lib-generator/baselines/dom.iterable.generated.d.ts Lines 171 to 172 in 4d34d6d
Or you can give " |
Hello @saschanaz, |
Yup. @github-actions close |
Closing because @saschanaz is one of the code-owners of this repository. |
Hi @saschanaz, I forgot to write, sorry. |
In that case that may be TypeScript bug, unless you already assigned other libs in the field. If you assigned any value in |
(The generator can't do much, if it's still an issue please file a bug in TS repo) |
Ouu, I didn't know that the other libs field has to be empty not to include others manually... Thx for help, @saschanaz. |
Hi there,
Could someone please address an issue with the WebMIDI API types lib.dom.d.ts:14856-15024?
I believe that
MIDIInputMap
should extendReadOnlyMap<MIDIInput["id"], MIDIInput>
(MDN) and that theforEach
method could be removed as part ofReadOnlyMap
interface (es2015.iterable.d.ts:119, es2015.collection.d.ts:37). The same situation applies toMIDIOutputMap
(MDN).The second issue concerns constructors for
MIDIAccess
,MIDIInputMap
,MIDIOutputMap
,MIDIPort
,MIDIInput
andMIDIOutput
. When attempting to instantiate any of these, I encounter anUncaught TypeError: Illegal constructor error
, although TypeScript indicates it should be permissible.Thank you.
The text was updated successfully, but these errors were encountered: