capacitor-community / barcode-scanner

A fast and efficient (QR) barcode scanner for Capacitor
MIT License
437 stars 167 forks source link

[ML-Kit] Result is not compatible with type ScanResult #251

Open iBobik opened 1 year ago

iBobik commented 1 year ago

Describe the bug BarcodeScanner.start's callback should return object compatible with ScanResult interface But actually it returns object like this:

{ hasContent: true, content: 'https://app.sarisskahradnacesta.sk/p/343583', bounds: '9 62 671 838' }

To Reproduce Steps to reproduce the behavior:

  1. Use BarcodeScanner.start on an Android
  2. console.log in a callback
  3. See what it returned

Expected behavior Result will be compatible with a typing.

Version 5.0.0-beta.2

Smartphone (please complete the following information):

thegnuu commented 1 year ago

You are right, I will fix this in the next release. There are still some debug outputs ;)