qrcode-svg-ts
Advanced tools
Comparing version 1.1.1 to 1.1.2
type QRCodeSVGSaveCallBack = (error:any, result:any) => void | ||
declare type QRCodeSVGSaveCallBack = (error:any, result:any) => void | ||
interface QRCodeSVGOptions { | ||
declare interface QRCodeSVGOptions { | ||
/** | ||
@@ -57,21 +57,21 @@ * 二维码内容 | ||
declare const QRCodeSVG: { | ||
new(options: QRCodeSVGOptions|string): QRCodeSVG; | ||
}; | ||
new(options: QRCodeSVGOptions|string): QRCodeSVGObject; | ||
} | ||
interface QRCodeSVG { | ||
/** | ||
declare interface QRCodeSVGObject { | ||
/** | ||
* 获取svg文件 | ||
*/ | ||
svg(): string | ||
/** | ||
* 转换为 data:image/svg+xml 格式 | ||
* 可以直接使用 img 标签展示 | ||
*/ | ||
dataURL(): string | ||
/** | ||
* 保存svg文件 | ||
* @param file 文件保存的路径 | ||
* @param callback 保存的结果 | ||
*/ | ||
save(file: string, callback: QRCodeSVGSaveCallBack): void | ||
svg(): string | ||
/** | ||
* 转换为 data:image/svg+xml 格式 | ||
* 可以直接使用 img 标签展示 | ||
*/ | ||
dataURL(): string | ||
/** | ||
* 保存svg文件 | ||
* @param file 文件保存的路径 | ||
* @param callback 保存的结果 | ||
*/ | ||
save(file: string, callback: QRCodeSVGSaveCallBack): void | ||
} | ||
@@ -78,0 +78,0 @@ |
{ | ||
"name": "qrcode-svg-ts", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "A simple QR Code generator in pure JavaScript", | ||
@@ -5,0 +5,0 @@ "author": "SHLYREN", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
67086