init commit

This commit is contained in:
iqudoo
2026-04-30 17:31:08 +08:00
parent 46da9edfb4
commit 1215b6eea6
11 changed files with 132 additions and 37 deletions

6
types/index.d.ts vendored
View File

@@ -2,6 +2,10 @@
* 扫码初始化选项
*/
interface ScanConfigOptions {
/**
* 扫码重启延迟单位毫秒默认500ms
*/
scanRestartDelay?: number,
/**
* 桥接是否启用,默认启用
*/
@@ -138,7 +142,7 @@ interface ScanListenerInfo {
/**
* 监听状态
*/
type ScanStatus = "scanning" | "closed";
type ScanStatus = "scanning" | "ready";
/**
* 监听结果回调