Skip to content

Commit

Permalink
fix(lib): build
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasGassmann committed Jun 15, 2020
1 parent ff18758 commit 1ca960b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/utils/qr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as qrcode from 'qrcode-generator'
export const getQrData = (payload: string, type?: 'data' | 'svg' | 'ascii'): string => {
const typeNumber: TypeNumber = 0
const errorCorrectionLevel: ErrorCorrectionLevel = 'L'
const qr = qrcode.default(typeNumber, errorCorrectionLevel)
const qr = qrcode(typeNumber, errorCorrectionLevel)
try {
qr.addData(payload)
qr.make()
Expand Down
2 changes: 0 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
"lib": ["es2015", "es2017.string", "dom"],
"module": "commonjs",
"declaration": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"outDir": "./dist",
"typeRoots": ["./node_modules/@types", "./src/typings"],
"sourceMap": true,
Expand Down

0 comments on commit 1ca960b

Please sign in to comment.