Skip to content

Commit

Permalink
fix: qrcode types missing #227
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Jacob authored and Andreas Jacob committed Dec 8, 2023
1 parent 3f8670c commit 2634c75
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
10 changes: 9 additions & 1 deletion projects/angularx-qrcode/src/lib/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
import { QRCodeErrorCorrectionLevel } from "qrcode"
export type QRCodeErrorCorrectionLevel =
| "L"
| "M"
| "Q"
| "H"
| "low"
| "medium"
| "quartile"
| "high"

export interface QRCodeConfigType {
color: {
Expand Down
4 changes: 1 addition & 3 deletions projects/demo-app/src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import { Component } from "@angular/core"
import { MatSnackBar } from "@angular/material/snack-bar"
import { SafeUrl } from "@angular/platform-browser"
import { QRCodeErrorCorrectionLevel } from "qrcode"
import { QRCodeElementType } from "dist/angularx-qrcode"
import { FixMeLater } from "projects/angularx-qrcode/src/public-api"
import { FixMeLater, QRCodeErrorCorrectionLevel, QRCodeElementType } from "projects/angularx-qrcode/src/public-api"

type ListType = { title: string; val: number }[]

Expand Down

0 comments on commit 2634c75

Please sign in to comment.