mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 14:20:12 +00:00
@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:
10
types/dwt/index.d.ts
vendored
10
types/dwt/index.d.ts
vendored
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user