scanbot-web-sdk 4.0.0-alpha.1 → 4.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -38,7 +38,7 @@ export default class DocumentScannerView extends ScannerView<DocumentScannerProp
38
38
  * Internal functions
39
39
  */
40
40
  componentDidMount(): Promise<void>;
41
- componentWillUnmount(): void;
41
+ componentWillUnmount(): Promise<void>;
42
42
  detect(): Promise<void>;
43
43
  getStatusString(detectionResult: any): string;
44
44
  detectInWebWorker(): Promise<any>;
@@ -1,10 +1,12 @@
1
1
  import { TextDataScannerResult } from "../generic-text-line-recognizer/text-data-scanner-result";
2
2
  import { ScannerConfiguration } from "./scanner-configuration";
3
3
  import { ViewFinderConfiguration } from "./view-finder-configuration";
4
+ export declare type ValidatorPreset = "VehicleIdentificationNumber";
4
5
  export declare class TextDataScannerConfiguration extends ScannerConfiguration {
5
6
  constructor();
6
7
  ocrResolutionLimit?: number;
7
8
  supportedLanguages?: string[];
9
+ validatorPreset?: ValidatorPreset;
8
10
  style?: ViewFinderConfiguration;
9
11
  onTextDetected?: (e: TextDataScannerResult) => void;
10
12
  static fromJson(json: any): TextDataScannerConfiguration;
@@ -65,5 +65,6 @@ export default class ScanbotSDK {
65
65
  */
66
66
  throwIfMissingBuffer(buffer: any): void;
67
67
  throwIfMissing(property: any, message: string): void;
68
+ release(object: any, source?: string): Promise<void>;
68
69
  private licenseCheck;
69
70
  }