34 lines
1.5 KiB
TypeScript
34 lines
1.5 KiB
TypeScript
import { type PropType } from 'vue';
|
|
import { type BarcodeFormat, type DetectedBarcode } from 'barcode-detector/pure';
|
|
declare function __VLS_template(): {
|
|
default?(_: {}): any;
|
|
};
|
|
declare const __VLS_component: import("vue").DefineComponent<{
|
|
formats: {
|
|
type: PropType<BarcodeFormat[]>;
|
|
default: () => BarcodeFormat[];
|
|
};
|
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
detect: (detectedCodes: DetectedBarcode[]) => void;
|
|
dragover: (isDraggingOver: boolean) => void;
|
|
error: (error: EmmitedError) => void;
|
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
formats: {
|
|
type: PropType<BarcodeFormat[]>;
|
|
default: () => BarcodeFormat[];
|
|
};
|
|
}>> & {
|
|
onError?: (error: EmmitedError) => any;
|
|
onDetect?: (detectedCodes: DetectedBarcode[]) => any;
|
|
onDragover?: (isDraggingOver: boolean) => any;
|
|
}, {
|
|
formats: ("aztec" | "code_128" | "code_39" | "code_93" | "codabar" | "databar" | "databar_expanded" | "data_matrix" | "dx_film_edge" | "ean_13" | "ean_8" | "itf" | "maxi_code" | "micro_qr_code" | "pdf417" | "qr_code" | "rm_qr_code" | "upc_a" | "upc_e" | "linear_codes" | "matrix_codes" | "unknown")[];
|
|
}, {}>;
|
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
export default _default;
|
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
new (): {
|
|
$slots: S;
|
|
};
|
|
};
|