From c799ce19bfc4fcf24b178b9b7aa5824bff9920a5 Mon Sep 17 00:00:00 2001 From: lincoln <37287480+lincoln2018@users.noreply.github.com> Date: Tue, 16 Oct 2018 00:48:39 +0800 Subject: [PATCH] update to 14.2 (#29720) * fix bugs with types * fixed type errors * more type errors fixed * fixed errors and added missing type definitions * fix all typos and added all missing ones * change inappropriate names * Updated names to be more accurate. * adds EnumDWT_ConvertMode to make compatible with the old enum * update to 14.2 * add v13 * delete v13 for test not pass * remove base64 * fixed conflict * add back GetLicenseInfo * change header version to 14.2 --- types/dwt/addon.pdf.d.ts | 2 +- types/dwt/index.d.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/types/dwt/addon.pdf.d.ts b/types/dwt/addon.pdf.d.ts index 2e7b1d5a84..6a2a8636ee 100644 --- a/types/dwt/addon.pdf.d.ts +++ b/types/dwt/addon.pdf.d.ts @@ -6,7 +6,7 @@ * * Copyright 2018, Dynamsoft Corporation * Author: Dynamsoft Support Team -* Version: 13.4 +* Version: 14.2 */ declare enum EnumDWT_ConvertMode { diff --git a/types/dwt/index.d.ts b/types/dwt/index.d.ts index 0656236f08..12813a9b40 100644 --- a/types/dwt/index.d.ts +++ b/types/dwt/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for dwt 13.4 +// Type definitions for dwt 14.2 // Project: http://www.dynamsoft.com/Products/WebTWAIN_Overview.aspx // Definitions by: Xiao Ling // Josh Hall @@ -14,7 +14,7 @@ * * Copyright 2018, Dynamsoft Corporation * Author: Dynamsoft Support Team -* Version: 13.4 +* Version: 14.2 */ /** @@ -2889,12 +2889,12 @@ interface WebTwain { * @return {number} */ GetImageYResolution(sImageIndex: number): number; - + /** * Return the runtime license info. * @method WebTwain#GetLicenseInfo */ - GetLicenseInfo(): { Domain: string, Detail: LicenseDetailItem[] }; + GetLicenseInfo(optionalAsyncSuccessFunc?: (result: any) => void, optionalAsyncFailureFunc?: (errorCode: number, errorString: string) => void): boolean; /** * Returns the index of the selected image.