You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe that MIDIInputMap should extend ReadOnlyMap<MIDIInput["id"], MIDIInput> (MDN) and that the forEach method could be removed as part of ReadOnlyMap interface (es2015.iterable.d.ts:119, es2015.collection.d.ts:37). The same situation applies to MIDIOutputMap (MDN).
The second issue concerns constructors for MIDIAccess, MIDIInputMap, MIDIOutputMap, MIDIPort, MIDIInput and MIDIOutput. When attempting to instantiate any of these, I encounter an Uncaught TypeError: Illegal constructor error, although TypeScript indicates it should be permissible.
Thank you.
The text was updated successfully, but these errors were encountered:
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: