Microsoft/TypeScript
GitHub ã§èŠãMIDIMessageEvent data is incorrectly typed
Open
#60,546 opened on 2024幎11æ20æ¥
BugDomain: lib.d.tsHelp Wanted
Repository metrics
- Stars
- Â (48,455 stars)
- PR merge metrics
-  (å¹³åããŒãž 6d 17h) (30d ã§ 9 merged PRs)
説æ
ð Search Terms
In https://github.com/microsoft/TypeScript/pull/57027 MIDIMessageEvent.data was changed from Uint8Array to Uint8Array | null (see https://github.com/microsoft/TypeScript/pull/57027/files#diff-dc0eab937d15e62545da3ed7b4f40ad6b24f15dd88fbc6ceda2bfb4ed8356eb0L14670).
According to https://developer.mozilla.org/en-US/docs/Web/API/MIDIMessageEvent/data data the value will always be an Uint8Array.
ð Version & Regression Information
This changed in #57027
⯠Playground Link
No response
ð» Code
ð Actual behavior
'event.data' is possibly 'null'.ts(18047)
ð Expected behavior
No warning about data property possibly being null.
Additional information about the issue
No response