UNPKG

qr-generate-ts

Version:

A TypeScript library for generating QR codes with customizable options

34 lines 1.18 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.OutputFormat = exports.ErrorCorrectionLevel = void 0; /** * QR Code error correction levels */ var ErrorCorrectionLevel; (function (ErrorCorrectionLevel) { /** Low error correction (7% recovery) */ ErrorCorrectionLevel["L"] = "L"; /** Medium error correction (15% recovery) */ ErrorCorrectionLevel["M"] = "M"; /** Quartile error correction (25% recovery) */ ErrorCorrectionLevel["Q"] = "Q"; /** High error correction (30% recovery) */ ErrorCorrectionLevel["H"] = "H"; })(ErrorCorrectionLevel || (exports.ErrorCorrectionLevel = ErrorCorrectionLevel = {})); /** * QR Code output formats */ var OutputFormat; (function (OutputFormat) { /** PNG image format */ OutputFormat["PNG"] = "png"; /** JPEG image format */ OutputFormat["JPEG"] = "jpeg"; /** SVG vector format */ OutputFormat["SVG"] = "svg"; /** UTF-8 terminal string */ OutputFormat["TERMINAL"] = "terminal"; /** Data URL format */ OutputFormat["DATA_URL"] = "dataurl"; })(OutputFormat || (exports.OutputFormat = OutputFormat = {})); //# sourceMappingURL=types.js.map