From df0a3fb4f7a2c26f53d223cc8e8e0051d6ec3f1c Mon Sep 17 00:00:00 2001 From: Denys Kozak Date: Sat, 29 May 2021 13:10:30 +0300 Subject: [PATCH] #45 add margin and type to Option ts type --- package-lock.json | 2 +- package.json | 2 +- src/core/QROptions.ts | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 335eaa22..9c082f20 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "qr-code-styling", - "version": "1.4.0", + "version": "1.4.2", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 1a0773e4..08793a6c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "qr-code-styling", - "version": "1.4.1", + "version": "1.4.2", "description": "Add a style and an image to your QR code", "main": "lib/qr-code-styling.js", "types": "lib/index.d.ts", diff --git a/src/core/QROptions.ts b/src/core/QROptions.ts index dac17aff..d22b5caf 100644 --- a/src/core/QROptions.ts +++ b/src/core/QROptions.ts @@ -22,8 +22,10 @@ export type Gradient = { }; export type Options = { + type?: DrawType; width?: number; height?: number; + margin?: number; data?: string; image?: string; qrOptions?: {