diff --git a/types/webmidi/index.d.ts b/types/webmidi/index.d.ts index b1f3cb0f61..0d64baaaa7 100644 --- a/types/webmidi/index.d.ts +++ b/types/webmidi/index.d.ts @@ -145,7 +145,7 @@ declare namespace WebMidi { * to zero (or another time in the past), the data is to be sent as soon as * possible. */ - send(data: number[], timestamp?: number): void; + send(data: number[] | Uint8Array, timestamp?: number): void; /** * Clears any pending send data that has not yet been sent from the MIDIOutput 's diff --git a/types/webmidi/webmidi-tests.ts b/types/webmidi/webmidi-tests.ts index da4dca38c2..99335204fa 100644 --- a/types/webmidi/webmidi-tests.ts +++ b/types/webmidi/webmidi-tests.ts @@ -20,6 +20,7 @@ const onFulfilled = (item: WebMidi.MIDIAccess) => { for (const op of outputs) { this._outputs.push(op); op.send([ 0x90, 0x45, 0x7f ]); + op.send(new Uint8Array([ 0x90, 0x45, 0x7f ])); } for (const input of this._inputs) {