capacitor-plugin-scanbot-barcode-scanner-sdk
Version:
Scanbot Barcode Scanner SDK for Capacitor
15 lines (14 loc) • 312 B
TypeScript
import type { ImageRef } from '../core';
export type ResultWrapper<T> = {
status: 'CANCELED';
} | {
status: 'OK';
data: T;
};
export type ImageInput = string | ImageRef;
/**
* @hidden
*/
export type SerializedImageInput = {
imageFileUri: string;
} | Awaited<ReturnType<ImageRef['serialize']>>;