react-native-scanbot-sdk
Version:
Scanbot Document and Barcode Scanner SDK React Native Plugin for Android and iOS
11 lines (9 loc) • 330 B
text/typescript
export type ResultWrapper<T> = { status: 'CANCELED' } | { status: 'OK'; data: T };
export type ResultWrapperWithMetadata<T, K> =
| { status: 'CANCELED' }
| { status: 'OK'; data: T; metadata: K };
export type DocumentScannerMetadata = {
autoSnappingEnabled: boolean;
flashEnabled: boolean;
multiPageEnabled: boolean;
};