2019-03-21 19:03:24 +00:00
|
|
|
declare module 'delay';
|
|
|
|
declare module 'log';
|
|
|
|
declare module 'intval';
|
|
|
|
declare module 'electron';
|
2019-03-21 22:00:34 +00:00
|
|
|
declare module 'fs-extra';
|
2019-03-23 14:49:18 +00:00
|
|
|
declare module 'uuid';
|
2019-03-22 01:18:27 +00:00
|
|
|
declare module 'exec';
|
|
|
|
declare module 'spawn';
|
2019-03-23 00:29:36 +00:00
|
|
|
declare module 'systeminformation';
|
2019-06-09 00:51:00 +00:00
|
|
|
declare module 'exit';
|
2019-03-21 22:00:34 +00:00
|
|
|
|
|
|
|
interface Device {
|
|
|
|
arduino : string;
|
|
|
|
}
|
2019-03-21 19:03:24 +00:00
|
|
|
|
|
|
|
interface Arduino {
|
|
|
|
send (id : string, cmd : string) : number;
|
|
|
|
string (id : string, str : string) : any;
|
2019-03-21 22:00:34 +00:00
|
|
|
enumerate () : any;
|
|
|
|
connect (id : string, device : Device, state : boolean) : any;
|
|
|
|
verify () : any;
|
|
|
|
distinguish () : any;
|
|
|
|
fakeConnect ( id : string) : any;
|
|
|
|
close () : any;
|
|
|
|
aliasSerial ( id : string, device : Device) : any;
|
2019-03-21 19:03:24 +00:00
|
|
|
}
|