mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
[@types/dwt] Adding missing type definitions (#36784)
* 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
This commit is contained in:
parent
15455188b2
commit
a870106497
36
types/dwt/Dynamsoft.d.ts
vendored
36
types/dwt/Dynamsoft.d.ts
vendored
@ -57,6 +57,10 @@ interface dwtEnv {
|
||||
UseDefaultInstallUI: boolean;
|
||||
initQueue: any[];
|
||||
inited: boolean;
|
||||
|
||||
IfAddMD5InUploadHeader: boolean;
|
||||
IfConfineMaskWithinTheViewer: boolean;
|
||||
CustomizableDisplayInfo: any;
|
||||
}
|
||||
|
||||
interface DynamsoftLib {
|
||||
@ -3199,6 +3203,24 @@ interface WebTwain {
|
||||
*/
|
||||
HTTPUploadThroughPutEx(HTTPServer: string, sImageIndex: number, RemoteFileName: string, lImageType: EnumDWT_ImageType, optionalAsyncSuccessFunc?: () => void, optionalAsyncFailureFunc?: (errorCode: number, errorString: string) => void): boolean;
|
||||
|
||||
/**
|
||||
* Converts the image ID of an image to its index.
|
||||
* [Version] Added in v15.0
|
||||
* @method WebTwain#ImageIDToIndex
|
||||
* @param {number} sImageID specifies the imageID.
|
||||
* @return {number}
|
||||
*/
|
||||
ImageIDToIndex(sImageID: number): number;
|
||||
|
||||
/**
|
||||
* Converts the index of an image to its image ID.
|
||||
* [Version] Added in v15.0
|
||||
* @method WebTwain#IndexToImageID
|
||||
* @param {number} sImageIndex specifies the index.
|
||||
* @return {number}
|
||||
*/
|
||||
IndexToImageID(sImageIndex: number): number;
|
||||
|
||||
/**
|
||||
* [Deprecated.] Detects whether an image is blank.
|
||||
* @method WebTwain#IsBlankImage
|
||||
@ -3740,9 +3762,13 @@ interface WebTwain {
|
||||
/**
|
||||
* Shows the GUI of Image Editor.
|
||||
* @method WebTwain#ShowImageEditor
|
||||
* @param {string} elEditorDIV Specifies a DIV by its ID to put the editor in
|
||||
* @param {number} width Specifies the width of the DIV
|
||||
* @param {number} height Specifies the height of the DIV
|
||||
* @param {boolean} bHideToolBar Specifies whether to show the toolbar or not
|
||||
* @return {boolean}
|
||||
*/
|
||||
ShowImageEditor(): boolean;
|
||||
ShowImageEditor(elEditorDIV?: string, width?: number, height?: number, bHideToolBar?: boolean): boolean;
|
||||
|
||||
/**
|
||||
* [Deprecated.] Shows the GUI of Image Editor with custom settings.
|
||||
@ -3759,6 +3785,14 @@ interface WebTwain {
|
||||
/*ingored
|
||||
SourceNameItems
|
||||
*/
|
||||
|
||||
/**
|
||||
* Shows the GUI of Image Editor.
|
||||
* @method WebTwain#startScan
|
||||
* @return {Promise}
|
||||
* @param {any} scanSetup Specifies how images are scanned and outputed
|
||||
*/
|
||||
startScan(scanSetup: any): Promise<any>;
|
||||
|
||||
/**
|
||||
* Switchs two images of specified indices in buffer.
|
||||
|
||||
17
types/dwt/addon.pdf.d.ts
vendored
17
types/dwt/addon.pdf.d.ts
vendored
@ -26,7 +26,10 @@ declare enum EnumDWT_ConverMode {
|
||||
interface PDF {
|
||||
/**
|
||||
* Download and install pdf rasterizer add-on on the local system.
|
||||
* @method Dynamsoft.WebTwain#Download
|
||||
|
||||
* [Deprecated] Starting in v14.2, the PDF module is installed with Dynamsoft Service.
|
||||
* @method Dynamsoft.WebTwain.Addon.PDF#Download
|
||||
|
||||
* @param {string} remoteFile specifies the value of which frame to get.
|
||||
* @param {function} optionalAsyncSuccessFunc optional.
|
||||
* The function to call when the download succeeds. Please refer to the function prototype OnSuccess.
|
||||
@ -69,6 +72,18 @@ interface PDF {
|
||||
* @return {boolean}
|
||||
*/
|
||||
IsTextBasedPDF(localFile: string): boolean;
|
||||
|
||||
Write: PDFWrite;
|
||||
}
|
||||
|
||||
interface PDFWrite {
|
||||
/**
|
||||
* Configures how the PDF generating is done
|
||||
* @method Dynamsoft.WebTwain.Addon.PDF.Write#jsonWriteSetting
|
||||
* @param {any} jsonWriteSetting detailed settings for PDF writing.
|
||||
* @return {boolean}
|
||||
*/
|
||||
Setup(jsonWriteSetting: any): void;
|
||||
}
|
||||
|
||||
interface DynamsoftWebTwainAddon {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user