changes to past compile

This commit is contained in:
Troy Weber
2017-03-30 13:15:54 -07:00
parent fdee5b6826
commit f96d7d94b5
2 changed files with 4 additions and 5 deletions
+2 -2
View File
@@ -6,7 +6,7 @@
declare module 'serialport' {
class SerialPort {
//openImmediately already removed in 4.0.7
constructor(path: string, options?: SerialPort.options, callback?: (err: any) => void)
constructor(path: string, options?: SerialPort.options|((err: any) => void), callback?: (err: any) => void)
isOpen(): boolean;
on(event: string, callback?: (data?: any) => void): void;
open(callback?: (err: any) => void): void;
@@ -61,7 +61,7 @@ declare module 'serialport' {
xon?: boolean,
xoff?: boolean,
bufferSize?: number,
parser?: Function,
parser?: any,
platformOptions?: {
vmin?: number,
vtime?: number
+2 -3
View File
@@ -12,10 +12,9 @@ function test_basic_connect() {
function test_connect_config() {
let port = new SerialPort("", {
baudrate: 0,
disconnectedCallback: function () { },
baudRate: 0,
parser: SerialPort.parsers.readline("\n")
});
}, function(err:any) { });
}
function test_write() {