@wailsio/runtime 3.0.0-alpha.7 → 3.0.0-alpha.9
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 +12 -4
- package/{application.js → src/application.js} +1 -1
- package/{calls.js → src/calls.js} +2 -2
- package/{dialogs.js → src/dialogs.js} +1 -1
- package/{types.d.ts → src/index.d.ts} +1 -0
- package/{index.js → src/index.js} +11 -9
- package/tsconfig.json +20 -0
- package/types/application.d.ts +19 -0
- package/types/browser.d.ts +6 -0
- package/types/calls.d.ts +35 -0
- package/types/clipboard.d.ts +12 -0
- package/types/contextmenu.d.ts +1 -0
- package/types/dialogs.d.ts +28 -0
- package/types/drag.d.ts +4 -0
- package/types/events.d.ts +53 -0
- package/types/flags.d.ts +7 -0
- package/types/index.d.ts +48 -0
- package/types/runtime.d.ts +29 -0
- package/types/screens.d.ts +17 -0
- package/types/system.d.ts +72 -0
- package/types/window.d.ts +17 -0
- package/types/wml.d.ts +6 -0
- /package/{browser.js → src/browser.js} +0 -0
- /package/{clipboard.js → src/clipboard.js} +0 -0
- /package/{contextmenu.js → src/contextmenu.js} +0 -0
- /package/{drag.js → src/drag.js} +0 -0
- /package/{events.js → src/events.js} +0 -0
- /package/{flags.js → src/flags.js} +0 -0
- /package/{runtime.js → src/runtime.js} +0 -0
- /package/{screens.js → src/screens.js} +0 -0
- /package/{system.js → src/system.js} +0 -0
- /package/{window.js → src/window.js} +0 -0
- /package/{wml.js → src/wml.js} +0 -0
package/package.json
CHANGED
|
@@ -1,18 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wailsio/runtime",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.9",
|
|
4
4
|
"description": "Wails Runtime",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"types": "index.d.ts",
|
|
5
|
+
"main": "src/index.js",
|
|
6
|
+
"types": "types/index.d.ts",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "https://github.com/wailsapp/wails.git"
|
|
10
10
|
},
|
|
11
|
+
"scripts": {
|
|
12
|
+
"prebuild:types": "rimraf ./types",
|
|
13
|
+
"build:types": "npx -p typescript tsc src/index.js --declaration --allowJs --emitDeclarationOnly --outDir types"
|
|
14
|
+
},
|
|
11
15
|
"author": "The Wails Team",
|
|
12
16
|
"license": "MIT",
|
|
13
17
|
"bugs": {
|
|
14
18
|
"url": "https://github.com/wailsapp/wails/issues"
|
|
15
19
|
},
|
|
16
20
|
"homepage": "https://wails.io",
|
|
17
|
-
"private": false
|
|
21
|
+
"private": false,
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"rimraf": "^5.0.5",
|
|
24
|
+
"typescript": "^5.3.3"
|
|
25
|
+
}
|
|
18
26
|
}
|
|
@@ -11,7 +11,7 @@ The electron alternative for Go
|
|
|
11
11
|
/* jshint esversion: 9 */
|
|
12
12
|
|
|
13
13
|
import { newRuntimeCallerWithID, objectNames } from "./runtime";
|
|
14
|
-
const call = newRuntimeCallerWithID(objectNames.Application);
|
|
14
|
+
const call = newRuntimeCallerWithID(objectNames.Application, '');
|
|
15
15
|
|
|
16
16
|
const HideMethod = 0;
|
|
17
17
|
const ShowMethod = 1;
|
|
@@ -17,8 +17,8 @@ const call = newRuntimeCallerWithID(objectNames.Call, '');
|
|
|
17
17
|
let callResponses = new Map();
|
|
18
18
|
|
|
19
19
|
window._wails = window._wails || {};
|
|
20
|
-
window._wails.
|
|
21
|
-
window._wails.
|
|
20
|
+
window._wails.callResultHandler = resultHandler;
|
|
21
|
+
window._wails.callErrorHandler = errorHandler;
|
|
22
22
|
|
|
23
23
|
function generateID() {
|
|
24
24
|
let result;
|
|
@@ -15,15 +15,17 @@ import {Emit, Off, OffAll, On, Once, OnMultiple, WailsEvent} from './events';
|
|
|
15
15
|
import {ByID, ByName, Plugin} from "./calls";
|
|
16
16
|
import {Error, Info, OpenFile, Question, SaveFile, Warning} from "./dialogs";
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
18
|
+
import * as Application from "./application";
|
|
19
|
+
import * as Browser from "./browser";
|
|
20
|
+
import * as Clipboard from "./clipboard";
|
|
21
|
+
import * as ContextMenu from "./contextmenu";
|
|
22
|
+
import * as Flags from "./flags";
|
|
23
|
+
import * as Runtime from "./runtime";
|
|
24
|
+
import * as Screens from "./screens";
|
|
25
|
+
import * as System from "./system";
|
|
26
|
+
import * as Window from "./window";
|
|
27
|
+
|
|
28
|
+
export { Application, Browser, Clipboard, ContextMenu, Flags, Runtime, Screens, System, Window };
|
|
27
29
|
|
|
28
30
|
export const Events = {
|
|
29
31
|
On,
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"include": ["./src/**/*"],
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"lib": [
|
|
5
|
+
"dom",
|
|
6
|
+
"dom.iterable",
|
|
7
|
+
"esnext"
|
|
8
|
+
],
|
|
9
|
+
"allowJs": true,
|
|
10
|
+
"declaration": true,
|
|
11
|
+
"declarationMap": true,
|
|
12
|
+
"emitDeclarationOnly": true,
|
|
13
|
+
"esModuleInterop": true,
|
|
14
|
+
"module": "esnext",
|
|
15
|
+
"moduleResolution": "node",
|
|
16
|
+
"outDir": "dist",
|
|
17
|
+
"strict": true,
|
|
18
|
+
"target": "es6"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hides a certain method by calling the HideMethod function.
|
|
3
|
+
*
|
|
4
|
+
* @return {Promise<void>}
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
export function Hide(): Promise<void>;
|
|
8
|
+
/**
|
|
9
|
+
* Calls the ShowMethod and returns the result.
|
|
10
|
+
*
|
|
11
|
+
* @return {Promise<void>}
|
|
12
|
+
*/
|
|
13
|
+
export function Show(): Promise<void>;
|
|
14
|
+
/**
|
|
15
|
+
* Calls the QuitMethod to terminate the program.
|
|
16
|
+
*
|
|
17
|
+
* @return {Promise<void>}
|
|
18
|
+
*/
|
|
19
|
+
export function Quit(): Promise<void>;
|
package/types/calls.d.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export function resultHandler(id: any, data: any, isJSON: any): void;
|
|
2
|
+
export function errorHandler(id: any, message: any): void;
|
|
3
|
+
/**
|
|
4
|
+
* Call method.
|
|
5
|
+
*
|
|
6
|
+
* @param {Object} options - The options for the method.
|
|
7
|
+
* @returns {Object} - The result of the call.
|
|
8
|
+
*/
|
|
9
|
+
export function Call(options: any): any;
|
|
10
|
+
/**
|
|
11
|
+
* Executes a method by name.
|
|
12
|
+
*
|
|
13
|
+
* @param {string} name - The name of the method in the format 'package.struct.method'.
|
|
14
|
+
* @param {...*} args - The arguments to pass to the method.
|
|
15
|
+
* @throws {Error} If the name is not a string or is not in the correct format.
|
|
16
|
+
* @returns {*} The result of the method execution.
|
|
17
|
+
*/
|
|
18
|
+
export function ByName(name: string, ...args: any[]): any;
|
|
19
|
+
/**
|
|
20
|
+
* Calls a method by its ID with the specified arguments.
|
|
21
|
+
*
|
|
22
|
+
* @param {string} methodID - The ID of the method to call.
|
|
23
|
+
* @param {...*} args - The arguments to pass to the method.
|
|
24
|
+
* @return {*} - The result of the method call.
|
|
25
|
+
*/
|
|
26
|
+
export function ByID(methodID: string, ...args: any[]): any;
|
|
27
|
+
/**
|
|
28
|
+
* Calls a method on a plugin.
|
|
29
|
+
*
|
|
30
|
+
* @param {string} pluginName - The name of the plugin.
|
|
31
|
+
* @param {string} methodName - The name of the method to call.
|
|
32
|
+
* @param {...*} args - The arguments to pass to the method.
|
|
33
|
+
* @returns {*} - The result of the method call.
|
|
34
|
+
*/
|
|
35
|
+
export function Plugin(pluginName: string, methodName: string, ...args: any[]): any;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sets the text to the Clipboard.
|
|
3
|
+
*
|
|
4
|
+
* @param {string} text - The text to be set to the Clipboard.
|
|
5
|
+
* @return {Promise} - A Promise that resolves when the operation is successful.
|
|
6
|
+
*/
|
|
7
|
+
export function SetText(text: string): Promise<any>;
|
|
8
|
+
/**
|
|
9
|
+
* Get the Clipboard text
|
|
10
|
+
* @returns {Promise<string>} A promise that resolves with the text from the Clipboard.
|
|
11
|
+
*/
|
|
12
|
+
export function Text(): Promise<string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function setupContextMenus(): void;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Handles the callback from a dialog.
|
|
3
|
+
*
|
|
4
|
+
* @param {string} id - The ID of the dialog response.
|
|
5
|
+
* @param {string} data - The data received from the dialog.
|
|
6
|
+
* @param {boolean} isJSON - Flag indicating whether the data is in JSON format.
|
|
7
|
+
*
|
|
8
|
+
* @return {undefined}
|
|
9
|
+
*/
|
|
10
|
+
export function dialogResultCallback(id: string, data: string, isJSON: boolean): undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Callback function for handling errors in dialog.
|
|
13
|
+
*
|
|
14
|
+
* @param {string} id - The id of the dialog response.
|
|
15
|
+
* @param {string} message - The error message.
|
|
16
|
+
*
|
|
17
|
+
* @return {void}
|
|
18
|
+
*/
|
|
19
|
+
export function dialogErrorCallback(id: string, message: string): void;
|
|
20
|
+
export function Info(options: any): Promise<string>;
|
|
21
|
+
export function Warning(options: any): Promise<string>;
|
|
22
|
+
export function Error(options: any): Promise<string>;
|
|
23
|
+
export function Question(options: any): Promise<string>;
|
|
24
|
+
export function OpenFile(options: any): Promise<string[] | string>;
|
|
25
|
+
export function SaveFile(options: any): Promise<string>;
|
|
26
|
+
export type MessageDialogOptions = any;
|
|
27
|
+
export type OpenDialogOptions = any;
|
|
28
|
+
export type SaveDialogOptions = any;
|
package/types/drag.d.ts
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export function dispatchWailsEvent(event: any): void;
|
|
2
|
+
/**
|
|
3
|
+
* Register a callback function to be called multiple times for a specific event.
|
|
4
|
+
*
|
|
5
|
+
* @param {string} eventName - The name of the event to register the callback for.
|
|
6
|
+
* @param {function} callback - The callback function to be called when the event is triggered.
|
|
7
|
+
* @param {number} maxCallbacks - The maximum number of times the callback can be called for the event. Once the maximum number is reached, the callback will no longer be called.
|
|
8
|
+
*
|
|
9
|
+
@return {function} - A function that, when called, will unregister the callback from the event.
|
|
10
|
+
*/
|
|
11
|
+
export function OnMultiple(eventName: string, callback: Function, maxCallbacks: number): Function;
|
|
12
|
+
/**
|
|
13
|
+
* Registers a callback function to be executed when the specified event occurs.
|
|
14
|
+
*
|
|
15
|
+
* @param {string} eventName - The name of the event.
|
|
16
|
+
* @param {function} callback - The callback function to be executed. It takes no parameters.
|
|
17
|
+
* @return {function} - A function that, when called, will unregister the callback from the event. */
|
|
18
|
+
export function On(eventName: string, callback: Function): Function;
|
|
19
|
+
/**
|
|
20
|
+
* Registers a callback function to be executed only once for the specified event.
|
|
21
|
+
*
|
|
22
|
+
* @param {string} eventName - The name of the event.
|
|
23
|
+
* @param {function} callback - The function to be executed when the event occurs.
|
|
24
|
+
* @return {void@return {function} - A function that, when called, will unregister the callback from the event.
|
|
25
|
+
*/
|
|
26
|
+
export function Once(eventName: string, callback: Function): void;
|
|
27
|
+
/**
|
|
28
|
+
* Removes event listeners for the specified event names.
|
|
29
|
+
*
|
|
30
|
+
* @param {string} eventName - The name of the event to remove listeners for.
|
|
31
|
+
* @param {...string} additionalEventNames - Additional event names to remove listeners for.
|
|
32
|
+
* @return {undefined}
|
|
33
|
+
*/
|
|
34
|
+
export function Off(eventName: string, ...additionalEventNames: string[]): undefined;
|
|
35
|
+
/**
|
|
36
|
+
* Removes all event listeners.
|
|
37
|
+
*
|
|
38
|
+
* @function OffAll
|
|
39
|
+
* @returns {void}
|
|
40
|
+
*/
|
|
41
|
+
export function OffAll(): void;
|
|
42
|
+
/**
|
|
43
|
+
* Emits an event using the given event name.
|
|
44
|
+
*
|
|
45
|
+
* @param {WailsEvent} event - The name of the event to emit.
|
|
46
|
+
* @returns {any} - The result of the emitted event.
|
|
47
|
+
*/
|
|
48
|
+
export function Emit(event: WailsEvent): any;
|
|
49
|
+
export class WailsEvent {
|
|
50
|
+
constructor(name: any, data?: any);
|
|
51
|
+
name: any;
|
|
52
|
+
data: any;
|
|
53
|
+
}
|
package/types/flags.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Retrieves the value associated with the specified key from the flag map.
|
|
3
|
+
*
|
|
4
|
+
* @param {string} keyString - The key to retrieve the value for.
|
|
5
|
+
* @return {*} - The value associated with the specified key.
|
|
6
|
+
*/
|
|
7
|
+
export function GetFlag(keyString: string): any;
|
package/types/index.d.ts
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
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 { On } from './events';
|
|
33
|
+
import { Off } from './events';
|
|
34
|
+
import { OnMultiple } from './events';
|
|
35
|
+
import { WailsEvent } from './events';
|
|
36
|
+
import { OffAll } from './events';
|
|
37
|
+
import { Emit } from './events';
|
|
38
|
+
import { Once } from './events';
|
|
39
|
+
import { Plugin } from "./calls";
|
|
40
|
+
import { ByID } from "./calls";
|
|
41
|
+
import { ByName } from "./calls";
|
|
42
|
+
import { Info } from "./dialogs";
|
|
43
|
+
import { Error } from "./dialogs";
|
|
44
|
+
import { OpenFile } from "./dialogs";
|
|
45
|
+
import { Question } from "./dialogs";
|
|
46
|
+
import { Warning } from "./dialogs";
|
|
47
|
+
import { SaveFile } from "./dialogs";
|
|
48
|
+
export { Application, Browser, Clipboard, ContextMenu, Flags, Runtime, Screens, System, Window };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Creates a runtime caller function that invokes a specified method on a given object within a specified window context.
|
|
3
|
+
*
|
|
4
|
+
* @param {Object} object - The object on which the method is to be invoked.
|
|
5
|
+
* @param {string} windowName - The name of the window context in which the method should be called.
|
|
6
|
+
* @returns {Function} A runtime caller function that takes the method name and optionally arguments and invokes the method within the specified window context.
|
|
7
|
+
*/
|
|
8
|
+
export function newRuntimeCaller(object: any, windowName: string): Function;
|
|
9
|
+
/**
|
|
10
|
+
* Creates a new runtime caller with specified ID.
|
|
11
|
+
*
|
|
12
|
+
* @param {object} object - The object to invoke the method on.
|
|
13
|
+
* @param {string} windowName - The name of the window.
|
|
14
|
+
* @return {Function} - The new runtime caller function.
|
|
15
|
+
*/
|
|
16
|
+
export function newRuntimeCallerWithID(object: object, windowName: string): Function;
|
|
17
|
+
export namespace objectNames {
|
|
18
|
+
let Call: number;
|
|
19
|
+
let Clipboard: number;
|
|
20
|
+
let Application: number;
|
|
21
|
+
let Events: number;
|
|
22
|
+
let ContextMenu: number;
|
|
23
|
+
let Dialog: number;
|
|
24
|
+
let Window: number;
|
|
25
|
+
let Screens: number;
|
|
26
|
+
let System: number;
|
|
27
|
+
let Browser: number;
|
|
28
|
+
}
|
|
29
|
+
export let clientId: string;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Gets all screens.
|
|
3
|
+
* @returns {Promise<Screen[]>} A promise that resolves to an array of Screen objects.
|
|
4
|
+
*/
|
|
5
|
+
export function GetAll(): Promise<Screen[]>;
|
|
6
|
+
/**
|
|
7
|
+
* Gets the primary screen.
|
|
8
|
+
* @returns {Promise<Screen>} A promise that resolves to the primary screen.
|
|
9
|
+
*/
|
|
10
|
+
export function GetPrimary(): Promise<Screen>;
|
|
11
|
+
/**
|
|
12
|
+
* Gets the current active screen.
|
|
13
|
+
*
|
|
14
|
+
* @returns {Promise<Screen>} A promise that resolves with the current active screen.
|
|
15
|
+
*/
|
|
16
|
+
export function GetCurrent(): Promise<Screen>;
|
|
17
|
+
export type Screen = any;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @function
|
|
3
|
+
* Retrieves the system dark mode status.
|
|
4
|
+
* @returns {Promise<boolean>} - A promise that resolves to a boolean value indicating if the system is in dark mode.
|
|
5
|
+
*/
|
|
6
|
+
export function IsDarkMode(): Promise<boolean>;
|
|
7
|
+
/**
|
|
8
|
+
* Fetches the capabilities of the application from the server.
|
|
9
|
+
*
|
|
10
|
+
* @async
|
|
11
|
+
* @function Capabilities
|
|
12
|
+
* @returns {Promise<Object>} A promise that resolves to an object containing the capabilities.
|
|
13
|
+
*/
|
|
14
|
+
export function Capabilities(): Promise<any>;
|
|
15
|
+
/**
|
|
16
|
+
* @typedef {object} EnvironmentInfo
|
|
17
|
+
* @property {string} OS - The operating system in use.
|
|
18
|
+
* @property {string} Arch - The architecture of the system.
|
|
19
|
+
*/
|
|
20
|
+
/**
|
|
21
|
+
* @function
|
|
22
|
+
* Retrieves environment details.
|
|
23
|
+
* @returns {Promise<EnvironmentInfo>} - A promise that resolves to an object containing OS and system architecture.
|
|
24
|
+
*/
|
|
25
|
+
export function Environment(): Promise<EnvironmentInfo>;
|
|
26
|
+
/**
|
|
27
|
+
* Checks if the current operating system is Windows.
|
|
28
|
+
*
|
|
29
|
+
* @return {boolean} True if the operating system is Windows, otherwise false.
|
|
30
|
+
*/
|
|
31
|
+
export function IsWindows(): boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Checks if the current operating system is Linux.
|
|
34
|
+
*
|
|
35
|
+
* @returns {boolean} Returns true if the current operating system is Linux, false otherwise.
|
|
36
|
+
*/
|
|
37
|
+
export function IsLinux(): boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Checks if the current environment is a macOS operating system.
|
|
40
|
+
*
|
|
41
|
+
* @returns {boolean} True if the environment is macOS, false otherwise.
|
|
42
|
+
*/
|
|
43
|
+
export function IsMac(): boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Checks if the current environment architecture is AMD64.
|
|
46
|
+
* @returns {boolean} True if the current environment architecture is AMD64, false otherwise.
|
|
47
|
+
*/
|
|
48
|
+
export function IsAMD64(): boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Checks if the current architecture is ARM.
|
|
51
|
+
*
|
|
52
|
+
* @returns {boolean} True if the current architecture is ARM, false otherwise.
|
|
53
|
+
*/
|
|
54
|
+
export function IsARM(): boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Checks if the current environment is ARM64 architecture.
|
|
57
|
+
*
|
|
58
|
+
* @returns {boolean} - Returns true if the environment is ARM64 architecture, otherwise returns false.
|
|
59
|
+
*/
|
|
60
|
+
export function IsARM64(): boolean;
|
|
61
|
+
export function IsDebug(): boolean;
|
|
62
|
+
export let invoke: any;
|
|
63
|
+
export type EnvironmentInfo = {
|
|
64
|
+
/**
|
|
65
|
+
* - The operating system in use.
|
|
66
|
+
*/
|
|
67
|
+
OS: string;
|
|
68
|
+
/**
|
|
69
|
+
* - The architecture of the system.
|
|
70
|
+
*/
|
|
71
|
+
Arch: string;
|
|
72
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Gets the specified window.
|
|
3
|
+
*
|
|
4
|
+
* @param {string} windowName - The name of the window to get.
|
|
5
|
+
* @return {Object} - The specified window object.
|
|
6
|
+
*/
|
|
7
|
+
export function Get(windowName: string): any;
|
|
8
|
+
/**
|
|
9
|
+
* Returns a map of all methods in the current window.
|
|
10
|
+
* @returns {Map} - A map of window methods.
|
|
11
|
+
*/
|
|
12
|
+
export function WindowMethods(targetWindow: any): Map<any, any>;
|
|
13
|
+
declare const _default: any;
|
|
14
|
+
export default _default;
|
|
15
|
+
export type Size = any;
|
|
16
|
+
export type Position = any;
|
|
17
|
+
export type Screen = any;
|
package/types/wml.d.ts
ADDED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{drag.js → src/drag.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{wml.js → src/wml.js}
RENAMED
|
File without changes
|