epii-types-rpa 1.2.2 → 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 +12 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "epii-types-rpa",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "rpa-types",
5
5
  "author": "MrRen",
6
6
  "license": "ISC",
package/rpa.d.ts CHANGED
@@ -50,7 +50,7 @@ namespace rpa {
50
50
  namespace console {
51
51
  function log(object: any): Promise;
52
52
  function error(error): Promise;
53
- function readline(tip:String = ""):Promise;
53
+ function readline(tip:String = "",dvalue=""):Promise;
54
54
  }
55
55
  namespace tools {
56
56
  function addRequestHandler(r: RequestHandler): Promise
@@ -130,6 +130,17 @@ namespace rpa {
130
130
  namespace process {
131
131
  function exit(): Promise;
132
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
+ }
133
144
  }
134
145
 
135
146
  declare function require(path: String): Promise;