fix: add ImageData type assertion for barcode reader typecheck

This commit is contained in:
SnapOtter
2026-05-08 19:08:38 +08:00
parent 56a9bf7f6d
commit e7001df047
+1 -1
View File
@@ -159,7 +159,7 @@ export function registerBarcodeRead(app: FastifyInstance) {
data: new Uint8ClampedArray(rawData.buffer, rawData.byteOffset, rawData.length),
width,
height,
};
} as ImageData;
const results = await readBarcodes(imageData, {
tryHarder,