Skip to content

Commit 842f1e2

Browse files
authoredJan 28, 2024
fix(qrcode): export QRCodeSegment as type (#179)
1 parent d97b1ca commit 842f1e2

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
 

‎.changeset/hip-beers-pay.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"vue-qrcode": patch
3+
---
4+
5+
fix: export `QRCodeSegment` as type

‎packages/vue-qrcode/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const MASK_PATTERNS = [0, 1, 2, 3, 4, 5, 6, 7] as const
2525

2626
export const MODES = ['alphanumeric', 'numeric', 'kanji', 'byte'] as const
2727

28-
export { QRCodeSegment } from 'qrcode'
28+
export type { QRCodeSegment } from 'qrcode'
2929

3030
export type QRCodeValue = QRCodeSegment[] | string
3131

1 commit comments

Comments
 (1)

vercel[bot] commented on Jan 28, 2024

@vercel[bot]
Please sign in to comment.