qr-decoder-js 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -6,12 +6,15 @@ export interface DecodeResult {
6
6
  encoding?: string;
7
7
  /** Raw detection result from ced-wasm (e.g. "GBK"); may be empty. */
8
8
  detectedEncoding?: string | null;
9
- /** Preprocess version that matched: original / blue / green / red / gray / inverted. */
9
+ /** Preprocess version that matched: original / dot-matrix-healed-gray / dot-matrix-binary / red-channel / blue-enhanced / otsu-binary / blue / green / gray / inverted / clahe-gray / clahe-red / quiet-zone / quiet-zone-red / perspective-q* / shear-* (incl. shear-*-red). */
10
10
  version?: string;
11
11
  error?: string;
12
12
  }
13
13
 
14
14
  export interface ReaderOptions {
15
+ /** Rescue depth: fast = original only, balanced = + color/grayscale/Otsu rescues,
16
+ * aggressive (default) = + quiet-zone and shear compensation. Decoder-level. */
17
+ mode?: 'fast' | 'balanced' | 'aggressive';
15
18
  formats?: string[];
16
19
  tryRotate?: boolean;
17
20
  tryInvert?: boolean;