@girs/cmenu-3.0 4.8.0 → 5.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
@@ -4,7 +4,7 @@
4
4
  ![version](https://img.shields.io/npm/v/@girs/cmenu-3.0)
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/cmenu-3.0)
6
6
 
7
- GJS TypeScript type definitions for CMenu-3.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.8.0.
7
+ GJS TypeScript type definitions for CMenu-3.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v5.0.0.
8
8
 
9
9
  This package contains type declarations only. It ships no runtime code, so it adds
10
10
  nothing to your program and works with any bundler or none at all.
package/cmenu-3.0.d.ts CHANGED
@@ -99,15 +99,12 @@ export namespace CMenu {
99
99
  // Signals
100
100
  /** @signal */
101
101
  connect<K extends keyof DesktopAppInfo.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, DesktopAppInfo.SignalSignatures[K]>): number;
102
- connect(signal: string, callback: (...args: any[]) => any): number;
103
102
 
104
103
  /** @signal */
105
104
  connect_after<K extends keyof DesktopAppInfo.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, DesktopAppInfo.SignalSignatures[K]>): number;
106
- connect_after(signal: string, callback: (...args: any[]) => any): number;
107
105
 
108
106
  /** @signal */
109
- emit<K extends keyof DesktopAppInfo.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<DesktopAppInfo.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never): void;
110
- emit(signal: string, ...args: any[]): void;
107
+ emit<K extends keyof DesktopAppInfo.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<DesktopAppInfo.SignalSignatures[K]>): void;
111
108
 
112
109
  // Methods
113
110
  /**
@@ -891,15 +888,12 @@ export namespace CMenu {
891
888
  // Signals
892
889
  /** @signal */
893
890
  connect<K extends keyof Tree.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, Tree.SignalSignatures[K]>): number;
894
- connect(signal: string, callback: (...args: any[]) => any): number;
895
891
 
896
892
  /** @signal */
897
893
  connect_after<K extends keyof Tree.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, Tree.SignalSignatures[K]>): number;
898
- connect_after(signal: string, callback: (...args: any[]) => any): number;
899
894
 
900
895
  /** @signal */
901
- emit<K extends keyof Tree.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<Tree.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never): void;
902
- emit(signal: string, ...args: any[]): void;
896
+ emit<K extends keyof Tree.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<Tree.SignalSignatures[K]>): void;
903
897
 
904
898
  // Static methods
905
899
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/cmenu-3.0",
3
- "version": "4.8.0",
3
+ "version": "5.0.0",
4
4
  "description": "GJS TypeScript type definitions for CMenu-3.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.8.0",
35
- "@girs/gio-2.0": "^4.8.0",
36
- "@girs/gobject-2.0": "^4.8.0",
37
- "@girs/glib-2.0": "^4.8.0",
38
- "@girs/gmodule-2.0": "^4.8.0" },
34
+ "@girs/gjs": "^5.0.0",
35
+ "@girs/gio-2.0": "^5.0.0",
36
+ "@girs/gobject-2.0": "^5.0.0",
37
+ "@girs/glib-2.0": "^5.0.0",
38
+ "@girs/gmodule-2.0": "^5.0.0" },
39
39
  "devDependencies": {
40
40
  "typescript": "*"
41
41
  },