epii-types-rpa 1.3.0 → 1.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/rpa.d.ts +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "epii-types-rpa",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "description": "rpa-types",
5
5
  "author": "MrRen",
6
6
  "license": "ISC",
package/rpa.d.ts CHANGED
@@ -108,6 +108,7 @@ namespace rpa {
108
108
  function waitForSelector(selectorOrFunction: String | Function): Promise<Element>;
109
109
  function waitForSelectors(selectorOrFunction: String | Function): Promise<Array<Element>>
110
110
  function getAppDataDir(subDir:string):Promise<string>;
111
+ function unlink(filepath:string):Promise<string>;
111
112
  }
112
113
  namespace page {
113
114
 
@@ -140,7 +141,7 @@ namespace rpa {
140
141
  function getNextWindowOpenUrl(beforFunc: Function, cancel: boolean): Promise;
141
142
  function getNextWindowOpenUrl(beforFunc: Function): Promise;
142
143
  function newIncognitoPageAndEvaluate(url: String, func: Function, data: Object = {}): Promise;
143
- function download(invokeFun, toFilePathOrExt = null) : Promise;
144
+ function download(invokeFun:Function, toFilePathOrExt:string|null = null,timeout:string=20000) : Promise;
144
145
 
145
146
  }
146
147
  namespace runtime {