@girs/cmenu-3.0 3.0.0-4.0.0-rc.15 → 3.0.0-4.0.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.
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/cmenu-3.0)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for CMenu-3.0, generated from library version 3.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-rc.15.
8
+ GJS TypeScript type definitions for CMenu-3.0, generated from library version 3.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0.
9
9
 
10
10
  ## Install
11
11
 
package/cmenu-3.0.d.ts CHANGED
@@ -61,13 +61,10 @@ export namespace CMenu {
61
61
 
62
62
  namespace DesktopAppInfo {
63
63
  // Signal signatures
64
- interface SignalSignatures extends GObject.Object.SignalSignatures {
65
- }
64
+ interface SignalSignatures extends GObject.Object.SignalSignatures {}
66
65
 
67
66
  // Constructor properties interface
68
- interface ConstructorProps extends GObject.Object.ConstructorProps, Gio.AppInfo.ConstructorProps {
69
-
70
- }
67
+ interface ConstructorProps extends GObject.Object.ConstructorProps, Gio.AppInfo.ConstructorProps {}
71
68
  }
72
69
 
73
70
  /**
@@ -149,7 +146,7 @@ export namespace CMenu {
149
146
  * which contains the Flatpak App ID
150
147
  * @returns the flatpak app id or `null`
151
148
  */
152
- get_flatpak_app_id(): (string | null);
149
+ get_flatpak_app_id(): string | null;
153
150
 
154
151
  /**
155
152
  * Gets the generic name from the destkop file.
@@ -183,7 +180,7 @@ export namespace CMenu {
183
180
  * @param key the key to look up
184
181
  * @returns a newly allocated string, or `null` if the key is not found
185
182
  */
186
- get_locale_string(key: string): (string | null);
183
+ get_locale_string(key: string): string | null;
187
184
 
188
185
  /**
189
186
  * Gets the value of the NoDisplay key, which helps determine if the
@@ -208,7 +205,7 @@ export namespace CMenu {
208
205
  * @param desktop_env a string specifying a desktop name
209
206
  * @returns `true` if the `info` should be shown in `desktop_env` according to the `OnlyShowIn` and `NotShowIn` keys, `false` otherwise.
210
207
  */
211
- get_show_in(desktop_env: (string | null)): boolean;
208
+ get_show_in(desktop_env: string | null): boolean;
212
209
 
213
210
  /**
214
211
  * Retrieves the StartupWMClass field from `info`. This represents the
@@ -257,7 +254,7 @@ export namespace CMenu {
257
254
  * @param action_name the name of the action as from `g_desktop_app_info_list_actions()`
258
255
  * @param launch_context a {@link Gio.AppLaunchContext}
259
256
  */
260
- launch_action(action_name: string, launch_context: (Gio.AppLaunchContext | null)): void;
257
+ launch_action(action_name: string, launch_context: Gio.AppLaunchContext | null): void;
261
258
 
262
259
  /**
263
260
  * Returns the list of "additional application actions" supported on the
@@ -322,13 +319,13 @@ export namespace CMenu {
322
319
  * started.
323
320
  * @returns a string containing the `appinfo`’s commandline, or `NULL` if this information is not available
324
321
  */
325
- get_commandline(): (string | null);
322
+ get_commandline(): string | null;
326
323
 
327
324
  /**
328
325
  * Gets a human-readable description of an installed application.
329
326
  * @returns a string containing a description of the application `appinfo`, or `NULL` if none.
330
327
  */
331
- get_description(): (string | null);
328
+ get_description(): string | null;
332
329
 
333
330
  /**
334
331
  * Gets the display name of the application. The display name is often more
@@ -351,7 +348,7 @@ export namespace CMenu {
351
348
  * Gets the icon for the application.
352
349
  * @returns the default {@link Gio.Icon} for `appinfo` or `NULL` if there is no default icon.
353
350
  */
354
- get_icon(): (Gio.Icon | null);
351
+ get_icon(): Gio.Icon | null;
355
352
 
356
353
  /**
357
354
  * Gets the ID of an application. An id is a string that identifies the
@@ -362,7 +359,7 @@ export namespace CMenu {
362
359
  * been constructed.
363
360
  * @returns a string containing the application’s ID.
364
361
  */
365
- get_id(): (string | null);
362
+ get_id(): string | null;
366
363
 
367
364
  /**
368
365
  * Gets the installed name of the application.
@@ -414,7 +411,7 @@ export namespace CMenu {
414
411
  * @param context the launch context
415
412
  * @returns `TRUE` on successful launch, `FALSE` otherwise.
416
413
  */
417
- launch(files: (Gio.File[] | null), context: (Gio.AppLaunchContext | null)): boolean;
414
+ launch(files: Gio.File[] | null, context: Gio.AppLaunchContext | null): boolean;
418
415
 
419
416
  /**
420
417
  * Launches the application. This passes the `uris` to the launched application
@@ -433,7 +430,7 @@ export namespace CMenu {
433
430
  * @param context the launch context
434
431
  * @returns `TRUE` on successful launch, `FALSE` otherwise.
435
432
  */
436
- launch_uris(uris: (string[] | null), context: (Gio.AppLaunchContext | null)): boolean;
433
+ launch_uris(uris: string[] | null, context: Gio.AppLaunchContext | null): boolean;
437
434
 
438
435
  /**
439
436
  * Async version of {@link Gio.AppInfo.launch_uris}.
@@ -446,7 +443,7 @@ export namespace CMenu {
446
443
  * @param context the launch context
447
444
  * @param cancellable a {@link Gio.Cancellable}
448
445
  */
449
- launch_uris_async(uris: (string[] | null), context: (Gio.AppLaunchContext | null), cancellable: (Gio.Cancellable | null)): globalThis.Promise<boolean>;
446
+ launch_uris_async(uris: string[] | null, context: Gio.AppLaunchContext | null, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>;
450
447
 
451
448
  /**
452
449
  * Async version of {@link Gio.AppInfo.launch_uris}.
@@ -460,7 +457,7 @@ export namespace CMenu {
460
457
  * @param cancellable a {@link Gio.Cancellable}
461
458
  * @param callback a {@link Gio.AsyncReadyCallback} to call when the request is done
462
459
  */
463
- launch_uris_async(uris: (string[] | null), context: (Gio.AppLaunchContext | null), cancellable: (Gio.Cancellable | null), callback: (Gio.AsyncReadyCallback<this> | null)): void;
460
+ launch_uris_async(uris: string[] | null, context: Gio.AppLaunchContext | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void;
464
461
 
465
462
  /**
466
463
  * Async version of {@link Gio.AppInfo.launch_uris}.
@@ -474,7 +471,7 @@ export namespace CMenu {
474
471
  * @param cancellable a {@link Gio.Cancellable}
475
472
  * @param callback a {@link Gio.AsyncReadyCallback} to call when the request is done
476
473
  */
477
- launch_uris_async(uris: (string[] | null), context: (Gio.AppLaunchContext | null), cancellable: (Gio.Cancellable | null), callback?: (Gio.AsyncReadyCallback<this> | null)): (globalThis.Promise<boolean> | void);
474
+ launch_uris_async(uris: string[] | null, context: Gio.AppLaunchContext | null, cancellable: Gio.Cancellable | null, callback?: Gio.AsyncReadyCallback<this> | null): globalThis.Promise<boolean> | void;
478
475
 
479
476
  /**
480
477
  * Finishes a {@link Gio.AppInfo.launch_uris_async} operation.
@@ -586,13 +583,13 @@ export namespace CMenu {
586
583
  * started.
587
584
  * @virtual
588
585
  */
589
- vfunc_get_commandline(): (string | null);
586
+ vfunc_get_commandline(): string | null;
590
587
 
591
588
  /**
592
589
  * Gets a human-readable description of an installed application.
593
590
  * @virtual
594
591
  */
595
- vfunc_get_description(): (string | null);
592
+ vfunc_get_description(): string | null;
596
593
 
597
594
  /**
598
595
  * Gets the display name of the application. The display name is often more
@@ -615,7 +612,7 @@ export namespace CMenu {
615
612
  * Gets the icon for the application.
616
613
  * @virtual
617
614
  */
618
- vfunc_get_icon(): (Gio.Icon | null);
615
+ vfunc_get_icon(): Gio.Icon | null;
619
616
 
620
617
  /**
621
618
  * Gets the ID of an application. An id is a string that identifies the
@@ -626,7 +623,7 @@ export namespace CMenu {
626
623
  * been constructed.
627
624
  * @virtual
628
625
  */
629
- vfunc_get_id(): (string | null);
626
+ vfunc_get_id(): string | null;
630
627
 
631
628
  /**
632
629
  * Gets the installed name of the application.
@@ -678,7 +675,7 @@ export namespace CMenu {
678
675
  * @param context the launch context
679
676
  * @virtual
680
677
  */
681
- vfunc_launch(files: (Gio.File[] | null), context: (Gio.AppLaunchContext | null)): boolean;
678
+ vfunc_launch(files: Gio.File[] | null, context: Gio.AppLaunchContext | null): boolean;
682
679
 
683
680
  /**
684
681
  * Launches the application. This passes the `uris` to the launched application
@@ -697,7 +694,7 @@ export namespace CMenu {
697
694
  * @param context the launch context
698
695
  * @virtual
699
696
  */
700
- vfunc_launch_uris(uris: (string[] | null), context: (Gio.AppLaunchContext | null)): boolean;
697
+ vfunc_launch_uris(uris: string[] | null, context: Gio.AppLaunchContext | null): boolean;
701
698
 
702
699
  /**
703
700
  * Async version of {@link Gio.AppInfo.launch_uris}.
@@ -712,7 +709,7 @@ export namespace CMenu {
712
709
  * @param callback a {@link Gio.AsyncReadyCallback} to call when the request is done
713
710
  * @virtual
714
711
  */
715
- vfunc_launch_uris_async(uris: (string[] | null), context: (Gio.AppLaunchContext | null), cancellable: (Gio.Cancellable | null), callback: (Gio.AsyncReadyCallback<this> | null)): void;
712
+ vfunc_launch_uris_async(uris: string[] | null, context: Gio.AppLaunchContext | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void;
716
713
 
717
714
  /**
718
715
  * Finishes a {@link Gio.AppInfo.launch_uris_async} operation.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/cmenu-3.0",
3
- "version": "3.0.0-4.0.0-rc.15",
3
+ "version": "3.0.0-4.0.0",
4
4
  "description": "GJS TypeScript type definitions for CMenu-3.0, generated from library version 3.0.0",
5
5
  "type": "module",
6
6
  "module": "cmenu-3.0.js",
@@ -31,11 +31,11 @@
31
31
  "test": "tsc --project tsconfig.json"
32
32
  },
33
33
  "dependencies": {
34
- "@girs/gjs": "4.0.0-rc.15",
35
- "@girs/gio-2.0": "2.88.0-4.0.0-rc.15",
36
- "@girs/gobject-2.0": "2.88.0-4.0.0-rc.15",
37
- "@girs/glib-2.0": "2.88.0-4.0.0-rc.15",
38
- "@girs/gmodule-2.0": "2.0.0-4.0.0-rc.15" },
34
+ "@girs/gjs": "4.0.0",
35
+ "@girs/gio-2.0": "2.88.0-4.0.0",
36
+ "@girs/gobject-2.0": "2.88.0-4.0.0",
37
+ "@girs/glib-2.0": "2.88.0-4.0.0",
38
+ "@girs/gmodule-2.0": "2.0.0-4.0.0" },
39
39
  "devDependencies": {
40
40
  "typescript": "*"
41
41
  },