@types/nw.js 0.13.12 → 0.13.15

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 (4) hide show
  1. nw.js/LICENSE +0 -0
  2. nw.js/README.md +2 -2
  3. nw.js/index.d.ts +62 -62
  4. nw.js/package.json +7 -6
nw.js/LICENSE CHANGED
File without changes
nw.js/README.md CHANGED
@@ -8,9 +8,9 @@ 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: Fri, 12 Mar 2021 17:00:46 GMT
11
+ * Last updated: Wed, 13 Jul 2022 00:02:36 GMT
12
12
  * Dependencies: [@types/node](https://npmjs.com/package/@types/node)
13
13
  * Global values: none
14
14
 
15
15
  # Credits
16
- These definitions were written by [Alireza Dabiri Nejad](https://github.com/alirdn).
16
+ These definitions were written by [DefinitelyTyped](https://github.com/DefinitelyTyped).
nw.js/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  // Type definitions for nw.js 0.13
2
2
  // Project: http://nwjs.io
3
- // Definitions by: Alireza Dabiri Nejad <https://github.com/alirdn>
3
+ // Definitions by: DefinitelyTyped <https://github.com/DefinitelyTyped>
4
4
  // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
5
5
 
6
6
  /// <reference types="node" />
@@ -64,12 +64,12 @@ declare global {
64
64
  /**
65
65
  * {Boolean} (Optional) do not populate the Edit menu
66
66
  */
67
- hideEdit?: boolean;
67
+ hideEdit?: boolean | undefined;
68
68
 
69
69
  /**
70
70
  * {Boolean} (Optional) do not populate the Window menu
71
71
  */
72
- hideWindow?: boolean;
72
+ hideWindow?: boolean | undefined;
73
73
  }
74
74
 
75
75
  /**
@@ -79,52 +79,52 @@ declare global {
79
79
  /**
80
80
  * {string} (Optional) Label for normal item or checkbox
81
81
  */
82
- label?: string;
82
+ label?: string | undefined;
83
83
 
84
84
  /**
85
85
  * {string} (Optional) Icon for normal item or checkbox
86
86
  */
87
- icon?: string;
87
+ icon?: string | undefined;
88
88
 
89
89
  /**
90
90
  * {string} (Optional) Tooltip for normal item or checkbox
91
91
  */
92
- tooltip?: string;
92
+ tooltip?: string | undefined;
93
93
 
94
94
  /**
95
95
  * {string} (Optional) The type of the item. Three types are accepted: normal, checkbox, separator
96
96
  */
97
- type?: string | 'normal' | 'checkbox' | 'separator';
97
+ type?: string | 'normal' | 'checkbox' | 'separator' | undefined;
98
98
 
99
99
  /**
100
100
  * {Function} (Optional) The callback function when item is triggered by mouse click or keyboard shortcut
101
101
  */
102
- click?: Function;
102
+ click?: Function | undefined;
103
103
 
104
104
  /**
105
105
  * {boolean} (Optional) Whether the item is enabled or disabled. It"s set to true by default.
106
106
  */
107
- enabled?: boolean;
107
+ enabled?: boolean | undefined;
108
108
 
109
109
  /**
110
110
  * {boolean} (Optional) Whether the checkbox is checked or not. It"s set to false by default.
111
111
  */
112
- checked?: boolean;
112
+ checked?: boolean | undefined;
113
113
 
114
114
  /**
115
115
  * {nw.Menu} (Optional) A submenu
116
116
  */
117
- submenu?: nw.Menu;
117
+ submenu?: nw.Menu | undefined;
118
118
 
119
119
  /**
120
120
  * {string} (Optional) The key of the shortcut
121
121
  */
122
- key?: string;
122
+ key?: string | undefined;
123
123
 
124
124
  /**
125
125
  * {string} (Optional) The modifiers of the shortcut
126
126
  */
127
- modifiers?: string;
127
+ modifiers?: string | undefined;
128
128
  }
129
129
 
130
130
  /**
@@ -282,32 +282,32 @@ declare global {
282
282
  /**
283
283
  * {string} title
284
284
  */
285
- title?: string;
285
+ title?: string | undefined;
286
286
 
287
287
  /**
288
288
  * {string} tooltip
289
289
  */
290
- tooltip?: string;
290
+ tooltip?: string | undefined;
291
291
 
292
292
  /**
293
293
  * {string} icon
294
294
  */
295
- icon?: string;
295
+ icon?: string | undefined;
296
296
 
297
297
  /**
298
298
  * {string} alternate
299
299
  */
300
- alticon?: string;
300
+ alticon?: string | undefined;
301
301
 
302
302
  /**
303
303
  * {boolean} whether icons are templates
304
304
  */
305
- iconsAreTemplates?: boolean;
305
+ iconsAreTemplates?: boolean | undefined;
306
306
 
307
307
  /**
308
308
  * {Menu} popup menu
309
309
  */
310
- menu?: nw.Menu;
310
+ menu?: nw.Menu | undefined;
311
311
  }
312
312
 
313
313
  /**
@@ -353,12 +353,12 @@ declare global {
353
353
  /**
354
354
  * (Optional) The image format used to generate the image. It supports two formats: "png" and "jpeg". If ignored, it’s "jpeg" by default.
355
355
  */
356
- format?: string;
356
+ format?: string | undefined;
357
357
 
358
358
  /**
359
359
  * (Optional) It supports three types: "raw", "buffer" and "datauri". If ignored, it’s "datauri" by default.
360
360
  */
361
- datatype?: string;
361
+ datatype?: string | undefined;
362
362
  }
363
363
 
364
364
  /**
@@ -467,7 +467,7 @@ declare global {
467
467
  /**
468
468
  * (Optional) The expiration date of the cookie as the number of seconds since the UNIX epoch. Not provided for session cookies.
469
469
  */
470
- expirationDate?: number;
470
+ expirationDate?: number | undefined;
471
471
 
472
472
  /**
473
473
  * The ID of the cookie store containing this cookie.
@@ -502,27 +502,27 @@ declare global {
502
502
  /**
503
503
  * Restricts the retrieved cookies to those that would match the given URL.
504
504
  */
505
- url?: string;
505
+ url?: string | undefined;
506
506
 
507
507
  /**
508
508
  * Filters the cookies by name.
509
509
  */
510
- name?: string;
510
+ name?: string | undefined;
511
511
 
512
512
  /**
513
513
  * Restricts the retrieved cookies to those whose domains match or are subdomains of this one.
514
514
  */
515
- domain?: string;
515
+ domain?: string | undefined;
516
516
 
517
517
  /**
518
518
  * Restricts the retrieved cookies to those whose path exactly matches this string.
519
519
  */
520
- path?: string;
520
+ path?: string | undefined;
521
521
 
522
522
  /**
523
523
  * Filters the cookies by their Secure property.
524
524
  */
525
- secure?: boolean;
525
+ secure?: boolean | undefined;
526
526
 
527
527
  /**
528
528
  * Filters out session vs. persistent cookies.
@@ -532,7 +532,7 @@ declare global {
532
532
  /**
533
533
  * The cookie store to retrieve cookies from. If omitted, the current execution context's cookie store will be used.
534
534
  */
535
- storeId?: string;
535
+ storeId?: string | undefined;
536
536
  }
537
537
 
538
538
  /**
@@ -547,47 +547,47 @@ declare global {
547
547
  /**
548
548
  * The name of the cookie. Empty by default if omitted.
549
549
  */
550
- name?: string;
550
+ name?: string | undefined;
551
551
 
552
552
  /**
553
553
  * The value of the cookie. Empty by default if omitted.
554
554
  */
555
- value?: string;
555
+ value?: string | undefined;
556
556
 
557
557
  /**
558
558
  * The domain of the cookie. If omitted, the cookie becomes a host-only cookie.
559
559
  */
560
- domain?: string;
560
+ domain?: string | undefined;
561
561
 
562
562
  /**
563
563
  * The path of the cookie. Defaults to the path portion of the url parameter.
564
564
  */
565
- path?: string;
565
+ path?: string | undefined;
566
566
 
567
567
  /**
568
568
  * Whether the cookie should be marked as Secure. Defaults to false.
569
569
  */
570
- secure?: boolean;
570
+ secure?: boolean | undefined;
571
571
 
572
572
  /**
573
573
  * Whether the cookie should be marked as HttpOnly. Defaults to false.
574
574
  */
575
- httpOnly?: boolean;
575
+ httpOnly?: boolean | undefined;
576
576
 
577
577
  /**
578
578
  * The cookie's same-site status: defaults to 'no_restriction'.
579
579
  */
580
- sameSite?: string | 'no_restriction' | 'lax' | 'strict';
580
+ sameSite?: string | 'no_restriction' | 'lax' | 'strict' | undefined;
581
581
 
582
582
  /**
583
583
  * The expiration date of the cookie as the number of seconds since the UNIX epoch. If omitted, the cookie becomes a session cookie.
584
584
  */
585
- expirationDate?: number;
585
+ expirationDate?: number | undefined;
586
586
 
587
587
  /**
588
588
  * The ID of the cookie store in which to set the cookie. By default, the cookie is set in the current execution context's cookie store.
589
589
  */
590
- storeId?: string;
590
+ storeId?: string | undefined;
591
591
  }
592
592
 
593
593
  /**
@@ -694,124 +694,124 @@ declare global {
694
694
  /**
695
695
  * The id used to identify the window.
696
696
  */
697
- id?: string;
697
+ id?: string | undefined;
698
698
 
699
699
  /**
700
700
  * The default title of window created by NW.js
701
701
  */
702
- title?: string;
702
+ title?: string | undefined;
703
703
 
704
704
  /**
705
705
  * The initial width of the main window.
706
706
  */
707
- width?: number;
707
+ width?: number | undefined;
708
708
 
709
709
  /**
710
710
  * The initial height of the main window.
711
711
  */
712
- height?: number;
712
+ height?: number | undefined;
713
713
 
714
714
  /**
715
715
  * Path to window’s icon
716
716
  */
717
- icon?: string;
717
+ icon?: string | undefined;
718
718
 
719
719
  /**
720
720
  * Controls where window will be put, be `null` or `center` or `mouse`
721
721
  */
722
- position?: string;
722
+ position?: string | undefined;
723
723
 
724
724
  /**
725
725
  * Minimum width of window
726
726
  */
727
- min_width?: number;
727
+ min_width?: number | undefined;
728
728
 
729
729
  /**
730
730
  * Minimum height of window
731
731
  */
732
- min_height?: number;
732
+ min_height?: number | undefined;
733
733
 
734
734
  /**
735
735
  * Maximum width of window
736
736
  */
737
- max_width?: number;
737
+ max_width?: number | undefined;
738
738
 
739
739
  /**
740
740
  * Maximum height of window
741
741
  */
742
- max_height?: number;
742
+ max_height?: number | undefined;
743
743
 
744
744
  /**
745
745
  * Show as desktop background window under X11 environment
746
746
  */
747
- as_desktop?: boolean;
747
+ as_desktop?: boolean | undefined;
748
748
 
749
749
  /**
750
750
  * Whether window is resizable
751
751
  */
752
- resizable?: boolean;
752
+ resizable?: boolean | undefined;
753
753
 
754
754
  /**
755
755
  * Whether the window should always stay on top of other windows.
756
756
  */
757
- always_on_top?: boolean;
757
+ always_on_top?: boolean | undefined;
758
758
 
759
759
  /**
760
760
  * Whether the window should be visible on all workspaces simultaneously (on platforms that support multiple workspaces, currently Mac OS X and Linux).
761
761
  */
762
- visible_on_all_workspaces?: boolean;
762
+ visible_on_all_workspaces?: boolean | undefined;
763
763
 
764
764
  /**
765
765
  * Whether window is fullscreen
766
766
  */
767
- fullscreen?: boolean;
767
+ fullscreen?: boolean | undefined;
768
768
 
769
769
  /**
770
770
  * Whether the window is shown in taskbar or dock. The default is true.
771
771
  */
772
- show_in_taskbar?: boolean;
772
+ show_in_taskbar?: boolean | undefined;
773
773
 
774
774
  /**
775
775
  * Specify it to false to make the window frameless
776
776
  */
777
- frame?: boolean;
777
+ frame?: boolean | undefined;
778
778
 
779
779
  /**
780
780
  * Specify it to false if you want your app to be hidden on startup
781
781
  */
782
- show?: boolean;
782
+ show?: boolean | undefined;
783
783
 
784
784
  /**
785
785
  * Whether to use Kiosk mode.
786
786
  */
787
- kiosk?: boolean;
787
+ kiosk?: boolean | undefined;
788
788
 
789
789
  /**
790
790
  * Whether to turn on transparent window mode.
791
791
  */
792
- transparent?: boolean;
792
+ transparent?: boolean | undefined;
793
793
  }
794
794
 
795
795
  interface WindowOpenOption extends WindowOption {
796
796
  /**
797
797
  * (Optional) Whether to open a new window in a separate render process.
798
798
  */
799
- new_instance?: boolean;
799
+ new_instance?: boolean | undefined;
800
800
 
801
801
  /**
802
802
  * (Optional) The script to be injected before document loaded.
803
803
  */
804
- inject_js_start?: string;
804
+ inject_js_start?: string | undefined;
805
805
 
806
806
  /**
807
807
  * (Optional) The script to be injected before document unloaded.
808
808
  */
809
- inject_js_end?: string;
809
+ inject_js_end?: string | undefined;
810
810
 
811
811
  /**
812
812
  * (Optional) The id used to identify the window.
813
813
  */
814
- id?: string;
814
+ id?: string | undefined;
815
815
  }
816
816
 
817
817
  /**
@@ -828,7 +828,7 @@ declare global {
828
828
  /**
829
829
  * Get the corresponding DOM window object of the native window.
830
830
  */
831
- window: Object;
831
+ window: Window;
832
832
 
833
833
  /**
834
834
  * Get or set left offset from window to screen.
nw.js/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "@types/nw.js",
3
- "version": "0.13.12",
3
+ "version": "0.13.15",
4
4
  "description": "TypeScript definitions for nw.js",
5
+ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/nw.js",
5
6
  "license": "MIT",
6
7
  "contributors": [
7
8
  {
8
- "name": "Alireza Dabiri Nejad",
9
- "url": "https://github.com/alirdn",
10
- "githubUsername": "alirdn"
9
+ "name": "DefinitelyTyped",
10
+ "url": "https://github.com/DefinitelyTyped",
11
+ "githubUsername": "DefinitelyTyped"
11
12
  }
12
13
  ],
13
14
  "main": "",
@@ -21,6 +22,6 @@
21
22
  "dependencies": {
22
23
  "@types/node": "*"
23
24
  },
24
- "typesPublisherContentHash": "e86a98e56c5de0a1e3f6d7a7fc9414101adf96bfbf82af9362a294d7ea2ad008",
25
- "typeScriptVersion": "3.5"
25
+ "typesPublisherContentHash": "e7386211efc593be2f2d64a72b5fca0df09ebaf8df884c29cd5011d86c0e9bb1",
26
+ "typeScriptVersion": "4.0"
26
27
  }