Skip to content

Commit 842f1e2

Browse files
authored
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

Lines changed: 5 additions & 0 deletions
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

Lines changed: 1 addition & 1 deletion
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

0 commit comments

Comments
 (0)