Add barcode-detector-api-polyfill dependency and update environment variable declarations in SvelteKit project
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
import type { IDetectedBarcode, IBarcodeDetector } from './models';
|
||||
export declare class BarcodeDetector implements IBarcodeDetector {
|
||||
private reader;
|
||||
constructor(options?: {
|
||||
formats: string[];
|
||||
});
|
||||
static getSupportedFormats(): Promise<string[]>;
|
||||
detect(imageSource: ImageBitmapSource): Promise<IDetectedBarcode[]>;
|
||||
private blobToImage;
|
||||
private imageDataSourceToCanvas;
|
||||
}
|
||||
Reference in New Issue
Block a user