@types/nw.js 0.90.1 → 0.92.0
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.
- nw.js/README.md +1 -1
- nw.js/index.d.ts +15 -13
- nw.js/package.json +2 -2
nw.js/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for nw.js (http://nwjs.io).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/nw.js.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Thu, 26 Sep 2024 13:12:43 GMT
|
|
12
12
|
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)
|
|
13
13
|
|
|
14
14
|
# Credits
|
nw.js/index.d.ts
CHANGED
|
@@ -195,16 +195,16 @@ declare global {
|
|
|
195
195
|
* Emit when a new source was added.
|
|
196
196
|
*
|
|
197
197
|
* @param event {string} Event name
|
|
198
|
-
* @param listener {Function(id
|
|
199
|
-
* -
|
|
200
|
-
* -
|
|
201
|
-
* -
|
|
202
|
-
* -
|
|
203
|
-
* -
|
|
198
|
+
* @param listener {Function(id,name,order,type,primary)} The callback that handles the `added` event.
|
|
199
|
+
* - id {string} Is the media id.
|
|
200
|
+
* - name {string} Is the title of the window or screen.
|
|
201
|
+
* - order {number} Is the z-order of the windows, if screens are selected they will appear first.
|
|
202
|
+
* - type {string} Type of the stream: "screen", "window", "other" or "unknown".
|
|
203
|
+
* - primary {boolean} This will be true if the source is the primary monitor. (Windows OS only)
|
|
204
204
|
*/
|
|
205
205
|
on(
|
|
206
206
|
event: "added",
|
|
207
|
-
listener: (id
|
|
207
|
+
listener: (id: string, name: string, order: number, type: string, primary: boolean) => any,
|
|
208
208
|
): this;
|
|
209
209
|
|
|
210
210
|
/**
|
|
@@ -1025,8 +1025,10 @@ declare global {
|
|
|
1025
1025
|
|
|
1026
1026
|
/**
|
|
1027
1027
|
* Query the status of devtools window.
|
|
1028
|
+
*
|
|
1029
|
+
* @since v0.92.0
|
|
1028
1030
|
*/
|
|
1029
|
-
isDevToolsOpen():
|
|
1031
|
+
isDevToolsOpen(callback: (status: boolean) => void): void;
|
|
1030
1032
|
|
|
1031
1033
|
/**
|
|
1032
1034
|
* Print the web contents in the window without the need for user’s interaction.
|
|
@@ -1280,13 +1282,13 @@ declare global {
|
|
|
1280
1282
|
*
|
|
1281
1283
|
* @param event {string} Event name
|
|
1282
1284
|
* @param listener {function(byCommandQ?)} The callback that handles the `new-win-policy` event.
|
|
1283
|
-
* -
|
|
1284
|
-
* -
|
|
1285
|
-
* -
|
|
1285
|
+
* - frame {HTMLIFrameElement | null} Is the object of the child iframe where the request is from, or null if it’s from the top window.
|
|
1286
|
+
* - url {string} Is the address of the requested link
|
|
1287
|
+
* - policy {Object} Is an object contain window policy.
|
|
1286
1288
|
*/
|
|
1287
1289
|
on(
|
|
1288
1290
|
event: "new-win-policy",
|
|
1289
|
-
listener: (frame
|
|
1291
|
+
listener: (frame: HTMLIFrameElement | null, url: string, policy: WinPolicy) => any,
|
|
1290
1292
|
): this;
|
|
1291
1293
|
|
|
1292
1294
|
/**
|
|
@@ -1850,7 +1852,7 @@ declare global {
|
|
|
1850
1852
|
open(
|
|
1851
1853
|
url: string,
|
|
1852
1854
|
option?: NWJS_Helpers.WindowOpenOption,
|
|
1853
|
-
callback?: (new_win
|
|
1855
|
+
callback?: (new_win: NWJS_Helpers.win) => void,
|
|
1854
1856
|
): void;
|
|
1855
1857
|
}
|
|
1856
1858
|
|
nw.js/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/nw.js",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.92.0",
|
|
4
4
|
"description": "TypeScript definitions for nw.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/nw.js",
|
|
6
6
|
"license": "MIT",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@types/node": "*"
|
|
29
29
|
},
|
|
30
|
-
"typesPublisherContentHash": "
|
|
30
|
+
"typesPublisherContentHash": "f24f6d7dc3db21a17f1e65bc6e95aa563ff80edf902e29800f2b57a8600b5ec8",
|
|
31
31
|
"typeScriptVersion": "4.8",
|
|
32
32
|
"nonNpm": true
|
|
33
33
|
}
|