vue-qrcode-reader
Version:
A set of Vue.js components for detecting and decoding QR codes.
34 lines (33 loc) • 1.38 kB
TypeScript
import { type BarcodeFormat, type DetectedBarcode } from 'barcode-detector/pure';
export interface QrcodeCaptureProps {
formats?: BarcodeFormat[];
}
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<QrcodeCaptureProps>, {
formats: () => string[];
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
detect: (detectedCodes: DetectedBarcode[]) => void;
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<QrcodeCaptureProps>, {
formats: () => string[];
}>>> & {
onDetect?: (detectedCodes: DetectedBarcode[]) => any;
}, {
formats: BarcodeFormat[];
}, {}>;
export default _default;
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
type __VLS_TypePropsToRuntimeProps<T> = {
[K in keyof T]-?: {} extends Pick<T, K> ? {
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
} : {
type: import('vue').PropType<T[K]>;
required: true;
};
};
type __VLS_WithDefaults<P, D> = {
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
default: D[K];
}> : P[K];
};
type __VLS_Prettify<T> = {
[K in keyof T]: T[K];
} & {};