Closed isiah-lloyd closed 5 years ago
It seems like the package on npm is out of date with this repo. By installing it from the git, I was able to get the updated index.d.ts
"jsqr": "https://github.com/cozmo/jsQR",
Ah good call it seems like we never bumped the version after adding that option. Just published v1.2.0
which should have that. Let me know if you still have this issue.
When trying to use the jsQR function with Typescript configured in vscode, you'll get the warning "expected 3 parameters, got 4", if you try to change the
inversionAttempts
option. A temporary fix was to add the following to theindex.d.ts
fileand edit the function to this: