capacitor-plugin-scanbot-sdk
Version:
Scanbot Document and Barcode Scanner SDK for Capacitor
27 lines (26 loc) • 662 B
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;
};
/** Rotation of a page. */
export type PageRotation =
/** A 90 degree clockwise rotation is applied to the page. */
'CLOCKWISE_90'
/** A 180 degree rotation is applied to the page. */
| 'CLOCKWISE_180'
/** A 90 degree counter-clockwise rotation is applied to the page. */
| 'COUNTERCLOCKWISE_90';