epii-types-rpa 1.0.6 → 1.0.7

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 +5 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "epii-types-rpa",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "rpa-types",
5
5
  "author": "MrRen",
6
6
  "license": "ISC",
package/rpa.d.ts CHANGED
@@ -16,6 +16,7 @@ namespace rpa {
16
16
  function post(url:String, data:Object|String = "", headers:Object = {}):Promise;
17
17
  function get(url:String, headers:Object = {}):Promise;
18
18
  function getBase64(url:String, headers:Object = {}):Promise;
19
+ function download(url:String, path:String):Promise
19
20
  }
20
21
 
21
22
  namespace console {
@@ -33,7 +34,9 @@ namespace rpa {
33
34
  function download(url:String, path:String):Promise;
34
35
  function sleep(time:Number):Promise;
35
36
  function setInterval(callback:Function,interval:Number):Promise;
36
- function writeFile(filePath, content, isBase64 = false)
37
+ function writeFile(filePath:String, content:String, isBase64 :boolean= false):Promise;
38
+ function forEach(list:Array, callback:Function):Promise;
39
+ function mkdir(path:String):Promise
37
40
  }
38
41
  namespace page {
39
42
 
@@ -46,6 +49,7 @@ namespace rpa {
46
49
  function waitForTimeout(timeout);
47
50
  function script(func, data = {});
48
51
  function newIframeAndEvaluate(url:String,func:Function):Promise;
52
+ function download(url:String, path:String):Promise
49
53
 
50
54
  }
51
55
  namespace browser {