Kaizen
Browse modulesQR codeqr-code/sharedSchemas and constants

Variable: qrCodeErrorCorrectionLevelSchema

const qrCodeErrorCorrectionLevelSchema: ZodEnum<{
  H: "H";
  L: "L";
  M: "M";
  Q: "Q";
}>;

Defined in: shared/qr-code/schemas.ts:37

Error-correction level. Higher levels survive more damage (a smudged ticket, a creased ID card) at the cost of a physically larger symbol.

  • L — recovers ~7% data loss
  • M — ~15% (the default; a good screen/print compromise)
  • Q — ~25%
  • H — ~30% (use for anything laminated, folded, or printed small)