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
This commit is contained in:
Troepster
2018-10-02 11:00:57 -07:00
committed by Wesley Wigham
parent 3f13be3957
commit c50244c6b2
+7 -1
View File
@@ -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 <https://github.com/plantain-00>
// 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).