From a889f269cd525ec28ea48ad7ae6a148b4a02787a Mon Sep 17 00:00:00 2001 From: lincoln <37287480+lincoln2018@users.noreply.github.com> Date: Fri, 20 Sep 2019 02:52:58 +0800 Subject: [PATCH] upgrade to v15.2 (#38479) * 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 * Added definitions for new APIs as well as APIs whose definitions were missing before. Also adding APIs for addons * remove unused file * adding types for barcode reader and changing the copyright year * comment change, TS to 3.2.2 * adds more definitions to dwt barcode reader * rollback * update * update index.d.ts * Update Dynamsoft.d.ts It's ok * Update index.d.ts 1. update 2017 -> 2019 2. update parameters * Update index.d.ts rollback * Update index.d.ts rollback * Update addon.pdf.ts rollback * Update index.d.ts rollback * Update index.d.ts rollback * Update index.d.ts rollback * Update index.d.ts rollback * Update index.d.ts no changes but whites * Update index.d.ts TypeScript Version can be 3.2 2017 => 2019 * Update index.d.ts rollback * update * Update index.d.ts start new request * Update index.d.ts delete this file * Update delete this file * a a * rollback * update * remove package.json * add current version to v13 * 1) update to version 14.3.1 2) change index.d.ts declare Dynamsoft * update comments * remove WebTWAIN.d.ts * change v13 tsconfig.json * change to v14.3.1 * change to v14.3.1 * change to version 14.3 * change to version 14.3 * update * update * Update index.d.ts * Update index.d.ts * Update tsconfig.json * Update tsconfig.json * update * update * aa * a * a * update * remove dwt.d.ts * remove v12 * update1 * update * update * a * a * a * a * a * a * a * a * d * a * a * b * d * d * d * d * d * d * d * d * d * d * d * d * d * d * d * d * d * d * d * d * d * d * d * d * d * d * d * d * d * d * d * d * change to v15 * add enums * remove enums * Updating to v15.0.2 * roll back to 1 previous version * add back v15 APIs * fix errors * fix errors attempt 2 * update to 15.1 * upgrade to v15.2 add tag image --- types/dwt/Dynamsoft.d.ts | 8 ++++++++ types/dwt/index.d.ts | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/types/dwt/Dynamsoft.d.ts b/types/dwt/Dynamsoft.d.ts index ac2c7c8fb3..8ed3e24688 100644 --- a/types/dwt/Dynamsoft.d.ts +++ b/types/dwt/Dynamsoft.d.ts @@ -3812,6 +3812,14 @@ interface WebTwain { */ UnregisterEvent(name: string, evt: object): boolean; + TagImages(aryImageIndices: number[], tagName: string): boolean; + + SetDefaultTag(tagName: string): boolean; + + ClearImageTags(sImageIndex: number): boolean; + + FilterImagesByTag(tagName: string): boolean; + /*ignored checkErrorString first diff --git a/types/dwt/index.d.ts b/types/dwt/index.d.ts index 242ef5ec3e..a959cc1699 100644 --- a/types/dwt/index.d.ts +++ b/types/dwt/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for dwt 15.1 +// Type definitions for dwt 15.2 // Project: https://www.dynamsoft.com/products/webtwain_overview.aspx // Definitions by: Xiao Ling // Josh Hall @@ -23,7 +23,7 @@ * * Copyright 2019, Dynamsoft Corporation * Author: Dynamsoft Support Team -* Version: 15.1 +* Version: 15.2 */ declare const Dynamsoft: DynamsoftStatic;