From 8fb5b98ea2361343e356ac6fdd54092bab602dff Mon Sep 17 00:00:00 2001 From: yugasun Date: Wed, 17 Jul 2024 14:09:32 +0800 Subject: [PATCH] fix: add decode code result type --- TODO.md | 2 +- demo/camera.html | 2 +- demo/image.html | 2 +- demo/video.html | 2 +- package.json | 2 +- pnpm-lock.yaml | 10365 ++++++++++++++++++++++++++------------------- src/index.ts | 30 +- tsconfig.json | 5 +- 8 files changed, 5963 insertions(+), 4447 deletions(-) diff --git a/TODO.md b/TODO.md index 5a0521d..3c24479 100644 --- a/TODO.md +++ b/TODO.md @@ -2,4 +2,4 @@ Rewrite unit test. -- [] Rewrite unit test. +- [x] Rewrite unit test. diff --git a/demo/camera.html b/demo/camera.html index 52af747..d8730eb 100644 --- a/demo/camera.html +++ b/demo/camera.html @@ -20,7 +20,7 @@ var vConsole = new VConsole(); console.log('Hello world'); function main() { - var qr = new QrcodeDecoder(); + var qr = new QrcodeDecoder.default(); var video = document.querySelector('#video'); var start = document.querySelector('#start'); var stop = document.querySelector('#stop'); diff --git a/demo/image.html b/demo/image.html index 6bd36aa..e90067d 100644 --- a/demo/image.html +++ b/demo/image.html @@ -30,7 +30,7 @@

Different domain image