epii-types-rpa 1.2.1 → 1.2.3

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 +13 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "epii-types-rpa",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "description": "rpa-types",
5
5
  "author": "MrRen",
6
6
  "license": "ISC",
package/rpa.d.ts CHANGED
@@ -49,6 +49,8 @@ namespace rpa {
49
49
 
50
50
  namespace console {
51
51
  function log(object: any): Promise;
52
+ function error(error): Promise;
53
+ function readline(tip:String = "",dvalue=""):Promise;
52
54
  }
53
55
  namespace tools {
54
56
  function addRequestHandler(r: RequestHandler): Promise
@@ -128,6 +130,17 @@ namespace rpa {
128
130
  namespace process {
129
131
  function exit(): Promise;
130
132
  }
133
+ namespace cross{
134
+ function newIframeContextAndEvaluate(host:String, func: Function, data = {}, removeOnFinish: Boolean = true): Promise;
135
+ function newIframeAndEvaluate(urlOrFunction:String|Function, func: Function, data = {}, removeOnFinish: Boolean = true): Promise;
136
+ namespace ajax {
137
+ function post(url: String, data: Object | String = "", headers: Object = {}): Promise;
138
+ function get(url: String, headers: Object = {}): Promise;
139
+ function getBase64(url: String, headers: Object = {}): Promise;
140
+ function download(url: String, path: String): Promise
141
+ }
142
+
143
+ }
131
144
  }
132
145
 
133
146
  declare function require(path: String): Promise;