-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathindex.d.ts
More file actions
28 lines (25 loc) · 803 Bytes
/
index.d.ts
File metadata and controls
28 lines (25 loc) · 803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
export interface EscposPrinter {
name: string;
desc: string;
path: string;
service: string | 'usbprint' | 'usbccgp' | 'libusb0' |'winusb' | "Unknown";
}
export type PrintResult = {
success: boolean;
/*err is c/c++ GetLastError()'s result;*/
err: number
};
export type DeviceType = 'USB' |'LPT' | 'COM'
export function GetUsbDeviceList (): EscposPrinter[];
export function GetLptDeviceList(): EscposPrinter[];
export function GetComDeviceList(): EscposPrinter[];
export function GetDeviceList(type?:DeviceType): EscposPrinter[];
export function DisConnect(path:string): boolean;
/**
*
* @param {string} path
* @param {Buffer} rowBf
* @returns {PrintResult}
* @description ;
*/
export function PrintRaw (path: EscposPrinter['path'], rowBf: Buffer): PrintResult