Skip to content

Commit

Permalink
Fix defs to properly reflect properties (issue #427)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Philippe Côté committed Aug 6, 2024
1 parent 38d2912 commit e34405c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions typescript/webmidi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6125,6 +6125,10 @@ export interface MessageEvent extends PortEvent {
rawValue?: number;
target: Input | InputChannel;
value?: number | boolean;
data: Uint8Array;
rawData: Uint8Array;
statusByte: Number;
dataBytes: Uint8Array;
}

/**
Expand All @@ -6151,7 +6155,6 @@ export interface MessageEvent extends PortEvent {
* @property {string} [subtype] The actual controller event type
*/
export interface ControlChangeMessageEvent extends MessageEvent {
channel: number;
controller: {
name: string;
number: number;
Expand Down Expand Up @@ -6180,7 +6183,6 @@ export interface ControlChangeMessageEvent extends MessageEvent {
* @property {Note} note A Note object with details about the triggered note.
*/
export interface NoteMessageEvent extends MessageEvent {
channel: number;
note: Note;
port: Input;
target: Input | InputChannel;
Expand Down Expand Up @@ -6218,7 +6220,6 @@ export interface NoteMessageEvent extends MessageEvent {
*
*/
export interface ParameterNumberMessageEvent extends MessageEvent {
channel: number;
parameter: string;
parameterMsb: number;
parameterLsb: number;
Expand Down

0 comments on commit e34405c

Please sign in to comment.