library icon indicating copy to clipboard operation
library copied to clipboard

DecodeContinuouslyCallback type incompatibile between @zxing/library and @zxing/browser

Open lovasoa opened this issue 4 years ago • 1 comments

The typescript types DecodeContinuouslyCallback exported by @zxing/library and @zxing/browser are not compatible :

Error: Argument of type 'import("node_modules/@zxing/library/esm/browser/DecodeContinuouslyCallback").DecodeContinuouslyCallback' is not assignable to parameter of type 'import("node_modules/@zxing/browser/esm/common/DecodeContinuouslyCallback").DecodeContinuouslyCallback'.
  Types of parameters 'result' and 'result' are incompatible.
    Type 'Result | undefined' is not assignable to type 'Result'.
      Type 'undefined' is not assignable to type 'Result'. (ts)

lovasoa avatar May 12 '21 16:05 lovasoa

Stale issue message

github-actions[bot] avatar Apr 29 '24 13:04 github-actions[bot]