capacitor-plugin-scanbot-sdk
Version:
Scanbot Document and Barcode Scanner SDK for Capacitor
20 lines (19 loc) • 398 B
TypeScript
export type Status = 'OK' | 'CANCELED';
export type ResultWrapper<T> = {
status: 'CANCEL';
} | {
status: 'OK';
data: T;
};
export type ResultWrapperWithMetadata<T, K> = {
status: 'CANCEL';
} | {
status: 'OK';
data: T;
metadata?: K;
};
export type DocumentScannerMetadata = {
autoSnappingEnabled: boolean;
flashEnabled: boolean;
multiPageEnabled: boolean;
};