You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
619 B
TypeScript
9 lines
619 B
TypeScript
8 months ago
|
import { ErrorCallback, SerialPortStream, StreamOptions } from '@serialport/stream';
|
||
|
import { AutoDetectTypes, OpenOptionsFromBinding } from '@serialport/bindings-cpp';
|
||
|
export declare type SerialPortOpenOptions<T extends AutoDetectTypes> = Omit<StreamOptions<T>, 'binding'> & OpenOptionsFromBinding<T>;
|
||
|
export declare class SerialPort<T extends AutoDetectTypes = AutoDetectTypes> extends SerialPortStream<T> {
|
||
|
static list: () => Promise<import("@serialport/bindings-cpp").PortInfo[]>;
|
||
|
static readonly binding: AutoDetectTypes;
|
||
|
constructor(options: SerialPortOpenOptions<T>, openCallback?: ErrorCallback);
|
||
|
}
|