@types/dwt: Add methods and properties to WebTwainEnv (#20506)

* Add Unload method to WebTwainEnv

* Add Containers property to WebTwainEnv

* Define arguments for RegisterEvent callback function

* Add Container interface

* Use correct syntax for Containers array definition
This commit is contained in:
Josh Hall
2017-10-12 03:46:23 -05:00
committed by Wesley Wigham
parent 87e5366901
commit cc47a2e4e1

10
types/dwt/index.d.ts vendored
View File

@@ -21,9 +21,11 @@
declare namespace Dynamsoft {
namespace WebTwainEnv {
function GetWebTwain (cid: string): WebTwain;
function RegisterEvent(event: string, fn: () => void): void;
function RegisterEvent(event: string, fn: (...args: any[]) => void): void;
function Load(): void;
function Unload(): void;
let AutoLoad: boolean;
let Containers: Container[];
}
}
@@ -1253,6 +1255,12 @@ declare enum EnumDWT_MouseShape {
Zoom = 3
}
interface Container {
ContainerId: string;
Width: string | number;
Height: string | number;
}
/**
* @class
*/