@wailsio/runtime 3.0.0-alpha.12 → 3.0.0-alpha.13
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.
- package/package.json +1 -1
- package/src/calls.js +1 -1
- package/types/calls.d.ts +2 -2
- package/types/index.d.ts +49 -49
- package/types/wml.d.ts +6 -6
package/package.json
CHANGED
package/src/calls.js
CHANGED
|
@@ -94,7 +94,7 @@ export function ByName(name, ...args) {
|
|
|
94
94
|
/**
|
|
95
95
|
* Calls a method by its ID with the specified arguments.
|
|
96
96
|
*
|
|
97
|
-
* @param {
|
|
97
|
+
* @param {number} methodID - The ID of the method to call.
|
|
98
98
|
* @param {...*} args - The arguments to pass to the method.
|
|
99
99
|
* @return {*} - The result of the method call.
|
|
100
100
|
*/
|
package/types/calls.d.ts
CHANGED
|
@@ -19,11 +19,11 @@ export function ByName(name: string, ...args: any[]): any;
|
|
|
19
19
|
/**
|
|
20
20
|
* Calls a method by its ID with the specified arguments.
|
|
21
21
|
*
|
|
22
|
-
* @param {
|
|
22
|
+
* @param {number} methodID - The ID of the method to call.
|
|
23
23
|
* @param {...*} args - The arguments to pass to the method.
|
|
24
24
|
* @return {*} - The result of the method call.
|
|
25
25
|
*/
|
|
26
|
-
export function ByID(methodID:
|
|
26
|
+
export function ByID(methodID: number, ...args: any[]): any;
|
|
27
27
|
/**
|
|
28
28
|
* Calls a method on a plugin.
|
|
29
29
|
*
|
package/types/index.d.ts
CHANGED
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
export namespace Events {
|
|
2
|
-
export { On };
|
|
3
|
-
export { Off };
|
|
4
|
-
export { OnMultiple };
|
|
5
|
-
export { WailsEvent };
|
|
6
|
-
export { OffAll };
|
|
7
|
-
export { Emit };
|
|
8
|
-
export { Once };
|
|
9
|
-
}
|
|
10
|
-
export namespace Call {
|
|
11
|
-
export { Plugin };
|
|
12
|
-
export { ByID };
|
|
13
|
-
export { ByName };
|
|
14
|
-
}
|
|
15
|
-
export namespace Dialogs {
|
|
16
|
-
export { Info };
|
|
17
|
-
export { Error };
|
|
18
|
-
export { OpenFile };
|
|
19
|
-
export { Question };
|
|
20
|
-
export { Warning };
|
|
21
|
-
export { SaveFile };
|
|
22
|
-
}
|
|
23
|
-
import * as Application from "./application";
|
|
24
|
-
import * as Browser from "./browser";
|
|
25
|
-
import * as Clipboard from "./clipboard";
|
|
26
|
-
import * as ContextMenu from "./contextmenu";
|
|
27
|
-
import * as Flags from "./flags";
|
|
28
|
-
import * as Runtime from "./runtime";
|
|
29
|
-
import * as Screens from "./screens";
|
|
30
|
-
import * as System from "./system";
|
|
31
|
-
import * as Window from "./window";
|
|
32
|
-
import * as WML from "./wml";
|
|
33
|
-
import { On } from './events';
|
|
34
|
-
import { Off } from './events';
|
|
35
|
-
import { OnMultiple } from './events';
|
|
36
|
-
import { WailsEvent } from './events';
|
|
37
|
-
import { OffAll } from './events';
|
|
38
|
-
import { Emit } from './events';
|
|
39
|
-
import { Once } from './events';
|
|
40
|
-
import { Plugin } from "./calls";
|
|
41
|
-
import { ByID } from "./calls";
|
|
42
|
-
import { ByName } from "./calls";
|
|
43
|
-
import { Info } from "./dialogs";
|
|
44
|
-
import { Error } from "./dialogs";
|
|
45
|
-
import { OpenFile } from "./dialogs";
|
|
46
|
-
import { Question } from "./dialogs";
|
|
47
|
-
import { Warning } from "./dialogs";
|
|
48
|
-
import { SaveFile } from "./dialogs";
|
|
49
|
-
export { Application, Browser, Clipboard, ContextMenu, Flags, Runtime, Screens, System, Window, WML };
|
|
1
|
+
export namespace Events {
|
|
2
|
+
export { On };
|
|
3
|
+
export { Off };
|
|
4
|
+
export { OnMultiple };
|
|
5
|
+
export { WailsEvent };
|
|
6
|
+
export { OffAll };
|
|
7
|
+
export { Emit };
|
|
8
|
+
export { Once };
|
|
9
|
+
}
|
|
10
|
+
export namespace Call {
|
|
11
|
+
export { Plugin };
|
|
12
|
+
export { ByID };
|
|
13
|
+
export { ByName };
|
|
14
|
+
}
|
|
15
|
+
export namespace Dialogs {
|
|
16
|
+
export { Info };
|
|
17
|
+
export { Error };
|
|
18
|
+
export { OpenFile };
|
|
19
|
+
export { Question };
|
|
20
|
+
export { Warning };
|
|
21
|
+
export { SaveFile };
|
|
22
|
+
}
|
|
23
|
+
import * as Application from "./application";
|
|
24
|
+
import * as Browser from "./browser";
|
|
25
|
+
import * as Clipboard from "./clipboard";
|
|
26
|
+
import * as ContextMenu from "./contextmenu";
|
|
27
|
+
import * as Flags from "./flags";
|
|
28
|
+
import * as Runtime from "./runtime";
|
|
29
|
+
import * as Screens from "./screens";
|
|
30
|
+
import * as System from "./system";
|
|
31
|
+
import * as Window from "./window";
|
|
32
|
+
import * as WML from "./wml";
|
|
33
|
+
import { On } from './events';
|
|
34
|
+
import { Off } from './events';
|
|
35
|
+
import { OnMultiple } from './events';
|
|
36
|
+
import { WailsEvent } from './events';
|
|
37
|
+
import { OffAll } from './events';
|
|
38
|
+
import { Emit } from './events';
|
|
39
|
+
import { Once } from './events';
|
|
40
|
+
import { Plugin } from "./calls";
|
|
41
|
+
import { ByID } from "./calls";
|
|
42
|
+
import { ByName } from "./calls";
|
|
43
|
+
import { Info } from "./dialogs";
|
|
44
|
+
import { Error } from "./dialogs";
|
|
45
|
+
import { OpenFile } from "./dialogs";
|
|
46
|
+
import { Question } from "./dialogs";
|
|
47
|
+
import { Warning } from "./dialogs";
|
|
48
|
+
import { SaveFile } from "./dialogs";
|
|
49
|
+
export { Application, Browser, Clipboard, ContextMenu, Flags, Runtime, Screens, System, Window, WML };
|
package/types/wml.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Reloads the WML system by adding necessary event listeners and browser listeners.
|
|
3
|
-
*
|
|
4
|
-
* @return {void}
|
|
5
|
-
*/
|
|
6
|
-
export function Reload(): void;
|
|
1
|
+
/**
|
|
2
|
+
* Reloads the WML system by adding necessary event listeners and browser listeners.
|
|
3
|
+
*
|
|
4
|
+
* @return {void}
|
|
5
|
+
*/
|
|
6
|
+
export function Reload(): void;
|