mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 22:37:03 +00:00
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:
Vendored
+7
-1
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user