@girs/caja-2.0 2.0.0-4.0.0-beta.21 → 2.0.0-4.0.0-beta.24

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 (3) hide show
  1. package/README.md +1 -1
  2. package/caja-2.0.d.ts +138 -11
  3. package/package.json +15 -15
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/caja-2.0)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for Caja-2.0, generated from library version 2.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.21.
8
+ GJS TypeScript type definitions for Caja-2.0, generated from library version 2.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.24.
9
9
 
10
10
 
11
11
  ## Install
package/caja-2.0.d.ts CHANGED
@@ -7,11 +7,13 @@
7
7
  * The based EJS template file is used for the generated .d.ts file of each GIR module like Gtk-4.0, GObject-2.0, ...
8
8
  */
9
9
 
10
+ import '@girs/gjs';
11
+
10
12
  // Module dependencies
11
13
  import type Gtk from '@girs/gtk-3.0';
12
14
  import type xlib from '@girs/xlib-2.0';
13
15
  import type Gdk from '@girs/gdk-3.0';
14
- import type cairo from '@girs/cairo-1.0';
16
+ import type cairo from 'cairo';
15
17
  import type GObject from '@girs/gobject-2.0';
16
18
  import type GLib from '@girs/glib-2.0';
17
19
  import type Pango from '@girs/pango-1.0';
@@ -67,6 +69,16 @@ export namespace Caja {
67
69
  (provider: InfoProvider, handle: OperationHandle, result: OperationResult): void;
68
70
  }
69
71
  namespace Column {
72
+ // Signal signatures
73
+ interface SignalSignatures extends GObject.Object.SignalSignatures {
74
+ 'notify::attribute': (pspec: GObject.ParamSpec) => void;
75
+ 'notify::attribute-q': (pspec: GObject.ParamSpec) => void;
76
+ 'notify::description': (pspec: GObject.ParamSpec) => void;
77
+ 'notify::label': (pspec: GObject.ParamSpec) => void;
78
+ 'notify::name': (pspec: GObject.ParamSpec) => void;
79
+ 'notify::xalign': (pspec: GObject.ParamSpec) => void;
80
+ }
81
+
70
82
  // Constructor properties interface
71
83
 
72
84
  interface ConstructorProps extends GObject.Object.ConstructorProps {
@@ -97,6 +109,15 @@ export namespace Caja {
97
109
  get xalign(): number;
98
110
  set xalign(val: number);
99
111
 
112
+ /**
113
+ * Compile-time signal type information.
114
+ *
115
+ * This instance property is generated only for TypeScript type checking.
116
+ * It is not defined at runtime and should not be accessed in JS code.
117
+ * @internal
118
+ */
119
+ $signals: Column.SignalSignatures;
120
+
100
121
  // Constructors
101
122
 
102
123
  constructor(properties?: Partial<Column.ConstructorProps>, ...args: any[]);
@@ -104,9 +125,30 @@ export namespace Caja {
104
125
  _init(...args: any[]): void;
105
126
 
106
127
  static ['new'](name: string, attribute: string, label: string, description: string): Column;
128
+
129
+ // Signals
130
+
131
+ connect<K extends keyof Column.SignalSignatures>(
132
+ signal: K,
133
+ callback: GObject.SignalCallback<this, Column.SignalSignatures[K]>,
134
+ ): number;
135
+ connect(signal: string, callback: (...args: any[]) => any): number;
136
+ connect_after<K extends keyof Column.SignalSignatures>(
137
+ signal: K,
138
+ callback: GObject.SignalCallback<this, Column.SignalSignatures[K]>,
139
+ ): number;
140
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
141
+ emit<K extends keyof Column.SignalSignatures>(
142
+ signal: K,
143
+ ...args: GObject.GjsParameters<Column.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
144
+ ): void;
145
+ emit(signal: string, ...args: any[]): void;
107
146
  }
108
147
 
109
148
  namespace Menu {
149
+ // Signal signatures
150
+ interface SignalSignatures extends GObject.Object.SignalSignatures {}
151
+
110
152
  // Constructor properties interface
111
153
 
112
154
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -115,6 +157,15 @@ export namespace Caja {
115
157
  class Menu extends GObject.Object {
116
158
  static $gtype: GObject.GType<Menu>;
117
159
 
160
+ /**
161
+ * Compile-time signal type information.
162
+ *
163
+ * This instance property is generated only for TypeScript type checking.
164
+ * It is not defined at runtime and should not be accessed in JS code.
165
+ * @internal
166
+ */
167
+ $signals: Menu.SignalSignatures;
168
+
118
169
  // Constructors
119
170
 
120
171
  constructor(properties?: Partial<Menu.ConstructorProps>, ...args: any[]);
@@ -123,6 +174,24 @@ export namespace Caja {
123
174
 
124
175
  static ['new'](): Menu;
125
176
 
177
+ // Signals
178
+
179
+ connect<K extends keyof Menu.SignalSignatures>(
180
+ signal: K,
181
+ callback: GObject.SignalCallback<this, Menu.SignalSignatures[K]>,
182
+ ): number;
183
+ connect(signal: string, callback: (...args: any[]) => any): number;
184
+ connect_after<K extends keyof Menu.SignalSignatures>(
185
+ signal: K,
186
+ callback: GObject.SignalCallback<this, Menu.SignalSignatures[K]>,
187
+ ): number;
188
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
189
+ emit<K extends keyof Menu.SignalSignatures>(
190
+ signal: K,
191
+ ...args: GObject.GjsParameters<Menu.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
192
+ ): void;
193
+ emit(signal: string, ...args: any[]): void;
194
+
126
195
  // Methods
127
196
 
128
197
  append_item(item: MenuItem): void;
@@ -130,10 +199,16 @@ export namespace Caja {
130
199
  }
131
200
 
132
201
  namespace MenuItem {
133
- // Signal callback interfaces
134
-
135
- interface Activate {
136
- (): void;
202
+ // Signal signatures
203
+ interface SignalSignatures extends GObject.Object.SignalSignatures {
204
+ activate: () => void;
205
+ 'notify::icon': (pspec: GObject.ParamSpec) => void;
206
+ 'notify::label': (pspec: GObject.ParamSpec) => void;
207
+ 'notify::menu': (pspec: GObject.ParamSpec) => void;
208
+ 'notify::name': (pspec: GObject.ParamSpec) => void;
209
+ 'notify::priority': (pspec: GObject.ParamSpec) => void;
210
+ 'notify::sensitive': (pspec: GObject.ParamSpec) => void;
211
+ 'notify::tip': (pspec: GObject.ParamSpec) => void;
137
212
  }
138
213
 
139
214
  // Constructor properties interface
@@ -168,6 +243,15 @@ export namespace Caja {
168
243
  get tip(): string;
169
244
  set tip(val: string);
170
245
 
246
+ /**
247
+ * Compile-time signal type information.
248
+ *
249
+ * This instance property is generated only for TypeScript type checking.
250
+ * It is not defined at runtime and should not be accessed in JS code.
251
+ * @internal
252
+ */
253
+ $signals: MenuItem.SignalSignatures;
254
+
171
255
  // Constructors
172
256
 
173
257
  constructor(properties?: Partial<MenuItem.ConstructorProps>, ...args: any[]);
@@ -178,12 +262,21 @@ export namespace Caja {
178
262
 
179
263
  // Signals
180
264
 
181
- connect(id: string, callback: (...args: any[]) => any): number;
182
- connect_after(id: string, callback: (...args: any[]) => any): number;
183
- emit(id: string, ...args: any[]): void;
184
- connect(signal: 'activate', callback: (_source: this) => void): number;
185
- connect_after(signal: 'activate', callback: (_source: this) => void): number;
186
- emit(signal: 'activate'): void;
265
+ connect<K extends keyof MenuItem.SignalSignatures>(
266
+ signal: K,
267
+ callback: GObject.SignalCallback<this, MenuItem.SignalSignatures[K]>,
268
+ ): number;
269
+ connect(signal: string, callback: (...args: any[]) => any): number;
270
+ connect_after<K extends keyof MenuItem.SignalSignatures>(
271
+ signal: K,
272
+ callback: GObject.SignalCallback<this, MenuItem.SignalSignatures[K]>,
273
+ ): number;
274
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
275
+ emit<K extends keyof MenuItem.SignalSignatures>(
276
+ signal: K,
277
+ ...args: GObject.GjsParameters<MenuItem.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
278
+ ): void;
279
+ emit(signal: string, ...args: any[]): void;
187
280
 
188
281
  // Static methods
189
282
 
@@ -210,6 +303,13 @@ export namespace Caja {
210
303
  }
211
304
 
212
305
  namespace PropertyPage {
306
+ // Signal signatures
307
+ interface SignalSignatures extends GObject.Object.SignalSignatures {
308
+ 'notify::label': (pspec: GObject.ParamSpec) => void;
309
+ 'notify::name': (pspec: GObject.ParamSpec) => void;
310
+ 'notify::page': (pspec: GObject.ParamSpec) => void;
311
+ }
312
+
213
313
  // Constructor properties interface
214
314
 
215
315
  interface ConstructorProps extends GObject.Object.ConstructorProps {
@@ -230,6 +330,15 @@ export namespace Caja {
230
330
  get page(): Gtk.Widget;
231
331
  set page(val: Gtk.Widget);
232
332
 
333
+ /**
334
+ * Compile-time signal type information.
335
+ *
336
+ * This instance property is generated only for TypeScript type checking.
337
+ * It is not defined at runtime and should not be accessed in JS code.
338
+ * @internal
339
+ */
340
+ $signals: PropertyPage.SignalSignatures;
341
+
233
342
  // Constructors
234
343
 
235
344
  constructor(properties?: Partial<PropertyPage.ConstructorProps>, ...args: any[]);
@@ -237,6 +346,24 @@ export namespace Caja {
237
346
  _init(...args: any[]): void;
238
347
 
239
348
  static ['new'](name: string, label: Gtk.Widget, page: Gtk.Widget): PropertyPage;
349
+
350
+ // Signals
351
+
352
+ connect<K extends keyof PropertyPage.SignalSignatures>(
353
+ signal: K,
354
+ callback: GObject.SignalCallback<this, PropertyPage.SignalSignatures[K]>,
355
+ ): number;
356
+ connect(signal: string, callback: (...args: any[]) => any): number;
357
+ connect_after<K extends keyof PropertyPage.SignalSignatures>(
358
+ signal: K,
359
+ callback: GObject.SignalCallback<this, PropertyPage.SignalSignatures[K]>,
360
+ ): number;
361
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
362
+ emit<K extends keyof PropertyPage.SignalSignatures>(
363
+ signal: K,
364
+ ...args: GObject.GjsParameters<PropertyPage.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
365
+ ): void;
366
+ emit(signal: string, ...args: any[]): void;
240
367
  }
241
368
 
242
369
  type ColumnClass = typeof Column;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/caja-2.0",
3
- "version": "2.0.0-4.0.0-beta.21",
3
+ "version": "2.0.0-4.0.0-beta.24",
4
4
  "description": "GJS TypeScript type definitions for Caja-2.0, generated from library version 2.0.0",
5
5
  "type": "module",
6
6
  "module": "caja-2.0.js",
@@ -31,20 +31,20 @@
31
31
  "test": "tsc --project tsconfig.json"
32
32
  },
33
33
  "dependencies": {
34
- "@girs/atk-1.0": "^2.55.2-4.0.0-beta.21",
35
- "@girs/cairo-1.0": "^1.0.0-4.0.0-beta.21",
36
- "@girs/freetype2-2.0": "^2.0.0-4.0.0-beta.21",
37
- "@girs/gdk-3.0": "^3.24.48-4.0.0-beta.21",
38
- "@girs/gdkpixbuf-2.0": "^2.0.0-4.0.0-beta.21",
39
- "@girs/gio-2.0": "^2.83.3-4.0.0-beta.21",
40
- "@girs/gjs": "^4.0.0-beta.21",
41
- "@girs/glib-2.0": "^2.83.3-4.0.0-beta.21",
42
- "@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.21",
43
- "@girs/gobject-2.0": "^2.83.3-4.0.0-beta.21",
44
- "@girs/gtk-3.0": "^3.24.48-4.0.0-beta.21",
45
- "@girs/harfbuzz-0.0": "^9.0.0-4.0.0-beta.21",
46
- "@girs/pango-1.0": "^1.56.0-4.0.0-beta.21",
47
- "@girs/xlib-2.0": "^2.0.0-4.0.0-beta.21"
34
+ "@girs/atk-1.0": "^2.56.2-4.0.0-beta.24",
35
+ "@girs/cairo-1.0": "^1.0.0-4.0.0-beta.24",
36
+ "@girs/freetype2-2.0": "^2.0.0-4.0.0-beta.24",
37
+ "@girs/gdk-3.0": "^3.24.50-4.0.0-beta.24",
38
+ "@girs/gdkpixbuf-2.0": "^2.0.0-4.0.0-beta.24",
39
+ "@girs/gio-2.0": "^2.84.2-4.0.0-beta.24",
40
+ "@girs/gjs": "^4.0.0-beta.24",
41
+ "@girs/glib-2.0": "^2.84.2-4.0.0-beta.24",
42
+ "@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.24",
43
+ "@girs/gobject-2.0": "^2.84.2-4.0.0-beta.24",
44
+ "@girs/gtk-3.0": "^3.24.50-4.0.0-beta.24",
45
+ "@girs/harfbuzz-0.0": "^10.4.0-4.0.0-beta.24",
46
+ "@girs/pango-1.0": "^1.56.4-4.0.0-beta.24",
47
+ "@girs/xlib-2.0": "^2.0.0-4.0.0-beta.24"
48
48
  },
49
49
  "devDependencies": {
50
50
  "typescript": "*"