From c50244c6b2d3b35eb5b1ccbb1158b41d20ae44fa Mon Sep 17 00:00:00 2001 From: Troepster Date: Tue, 2 Oct 2018 20:00:57 +0200 Subject: [PATCH] Adding missing width option to QRCodeRenderersOptions for qrcode (#29363) * Adding missing width option to QRCodeRenderersOptions * Adding missing width option to QRCodeRenderersOptions for qrcode * Fixed version --- types/qrcode/index.d.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/types/qrcode/index.d.ts b/types/qrcode/index.d.ts index 5d607b2908..eb42fe1a90 100644 --- a/types/qrcode/index.d.ts +++ b/types/qrcode/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for qrcode 1.2 +// Type definitions for qrcode 1.3 // Project: https://github.com/soldair/node-qrcode // Definitions by: York Yao // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -79,6 +79,12 @@ export interface QRCodeRenderersOptions extends QRCodeOptions { * Default: 4 */ scale?: number; + /** + * Forces a specific width for the output image. + * If width is too small to contain the qr symbol, this option will be ignored. + * Takes precedence over scale. + */ + width?: number; color?: { /** * Color of dark module. Value must be in hex format (RGBA).