UNPKG

@waiting/bankcard-reader-base

Version:
32 lines (31 loc) 812 B
import { FModel as FM } from 'win32-def'; export interface Config { /** base directory of this module */ appDir: string; } export declare type Options = Partial<DeviceOpts>; export interface DeviceOpts { cardType: CardType; dllTxt: string; dllSearchPath?: string; findCardRetryTimes: number; /** Default: false */ debug: boolean; /** 指定设备端口 默认0自动搜索 */ port: number; searchAll: boolean; } /** 设备配置参数 */ export interface Device { apib: FM.DllFuncsModel; deviceOpts: DeviceOpts; /** device in use */ inUse: boolean; openPort: number; } /** 读卡类型 接触,非接触,auto轮询 */ export declare type CardType = 'jc' | 'fj' | 'auto'; /** 读卡结果 */ export interface BankCardData { cardno: string; }