mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 00:07:07 +00:00
changes to past compile
This commit is contained in:
Vendored
+2
-2
@@ -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
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user