UNPKG

@forgesworn/qr

Version:

Dependency-free QR code encoder and decoder for TypeScript, browsers, workers and Node, with optional WebAssembly and tracked camera scanning.

7 lines (6 loc) • 276 B
/** * Corrects `block` (data codewords then `ecCount` check codewords) in place. * Returns the number of codewords corrected, or -1 when the block has more * errors than the code can correct. */ export declare function correct(block: Uint8Array, ecCount: number): number;