Skip to content

Conversation

@fa-sharp
Copy link
Contributor

@fa-sharp fa-sharp commented Nov 27, 2023

Fixes #1571

This correctly narrows the types of the midimessage and statechange events from the Web MIDI API. The interfaces are correctly laid out in MDN, but currently they show up as a generic Event type in TypeScript. I've listed the relevant docs below.

MIDIInput: midimessage event
MIDIPort: statechange event

@github-actions
Copy link
Contributor

Thanks for the PR!

This section of the codebase is owned by @saschanaz - if they write a comment saying "LGTM" then it will be merged.

@fa-sharp
Copy link
Contributor Author

@microsoft-github-policy-service agree

@saschanaz
Copy link
Contributor

This sounds right per the spec too, thanks! LGTM.

@github-actions github-actions bot merged commit 3639b0d into microsoft:main Nov 27, 2023
@github-actions
Copy link
Contributor

Merging because @saschanaz is a code-owner of all the changes - thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Event type of midiInput.onmidimessage wrong

2 participants