File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,7 @@ export declare class Input extends EventEmitter {
72
72
on ( evt : "reset" , handler : ( ) => void ) : this;
73
73
on ( evt : "sysex" , handler : ( param : Sysex ) => void ) : this;
74
74
close ( ) : void ;
75
+ isPortOpen ( ) : boolean ;
75
76
}
76
77
77
78
export declare class Output {
@@ -94,6 +95,7 @@ export declare class Output {
94
95
send ( evt : "reset" ) : void ;
95
96
send ( evt : "sysex" , param : Array < number > ) : void ;
96
97
close ( ) : void ;
98
+ isPortOpen ( ) : boolean ;
97
99
}
98
100
99
101
export declare function getInputs ( ) : string [ ] ;
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ class Input extends EventEmitter {
102
102
}
103
103
104
104
isPortOpen ( ) {
105
- this . _input . isPortOpen ( ) ;
105
+ return this . _input . isPortOpen ( ) ;
106
106
}
107
107
108
108
parseMtc ( data ) {
@@ -219,7 +219,7 @@ class Output {
219
219
}
220
220
221
221
isPortOpen ( ) {
222
- this . _output . isPortOpen ( ) ;
222
+ return this . _output . isPortOpen ( ) ;
223
223
}
224
224
225
225
send ( type , args ) {
You can’t perform that action at this time.
0 commit comments