12345678910111213141516171819202122 |
- /**
- * 请求参数。
- */
- export type ScanOptions = {
- scanType ?: string[]
- onlyFromCamera ?: boolean
- success ?: (res : ScanResult) => void
- fail ?: (res : ScanResult) => void
- complete ?: (res : ScanResult) => void
- }
- /**
- * 函数返回结果
- */
- export type ScanResult = {
- errCode : number,
- result : string,
- }
- /* 实现函数 */
- export type HmScanCode = (options ?: ScanOptions) => void
|