Skip to content

Commit

Permalink
fix(types): export type BarcodeFormat
Browse files Browse the repository at this point in the history
  • Loading branch information
Sec-ant authored and gruhn committed Oct 24, 2023
1 parent 4554490 commit e395245
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import QrcodeStream from './components/QrcodeStream.vue'
import QrcodeCapture from './components/QrcodeCapture.vue'
import QrcodeDropZone from './components/QrcodeDropZone.vue'

import { setZXingModuleOverrides } from 'barcode-detector/pure'

// Install the components
export function install(app: App) {
app.component('qrcode-stream', QrcodeStream)
Expand All @@ -14,7 +12,10 @@ export function install(app: App) {
}

// Expose the components
export { QrcodeStream, QrcodeCapture, QrcodeDropZone, setZXingModuleOverrides }
export { QrcodeStream, QrcodeCapture, QrcodeDropZone }

// Expose some exports from "barcode-detector"
export { setZXingModuleOverrides, type BarcodeFormat } from 'barcode-detector/pure'

// Plugin definition
const plugin: Plugin = { install }
Expand Down

0 comments on commit e395245

Please sign in to comment.