@girs/notify-0.7 0.8.3-3.2.5 → 0.8.3-3.2.7

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/notify-0.7)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for Notify-0.7, generated from library version 0.8.3 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.5.
8
+ GJS TypeScript type definitions for Notify-0.7, generated from library version 0.8.3 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.7.
9
9
 
10
10
  libnotify is a library that sends desktop notifications to a notification daemon, as defined in the Desktop Notifications spec. These notifications can be used to inform the user about an event or display some form of information without getting in the user's way.
11
11
 
package/notify-0.7.d.cts CHANGED
@@ -87,7 +87,7 @@ export const VERSION_MINOR: number
87
87
  * Gets the application name registered.
88
88
  * @returns The registered application name, passed to [func@init].
89
89
  */
90
- export function get_app_name(): string | null
90
+ export function get_app_name(): string
91
91
  /**
92
92
  * Queries the server capabilities.
93
93
  *
@@ -104,7 +104,7 @@ export function get_server_caps(): string[]
104
104
  * that it is compliant with.
105
105
  * @returns %TRUE if successful, and the variables passed will be set, %FALSE on error. The returned strings must be freed with g_free
106
106
  */
107
- export function get_server_info(): [ /* returnType */ boolean, /* ret_name */ string | null, /* ret_vendor */ string | null, /* ret_version */ string | null, /* ret_spec_version */ string | null ]
107
+ export function get_server_info(): [ /* returnType */ boolean, /* ret_name */ string, /* ret_vendor */ string, /* ret_version */ string, /* ret_spec_version */ string ]
108
108
  /**
109
109
  * Initialized libnotify. This must be called before any other functions.
110
110
  *
@@ -124,7 +124,7 @@ export function is_initted(): boolean
124
124
  * Sets the application name.
125
125
  * @param app_name The name of the application
126
126
  */
127
- export function set_app_name(app_name: string | null): void
127
+ export function set_app_name(app_name: string): void
128
128
  /**
129
129
  * Uninitializes libnotify.
130
130
  *
@@ -179,6 +179,14 @@ export module Notification {
179
179
  * The summary of the notification.
180
180
  */
181
181
  summary?: string | null
182
+ /**
183
+ * The name of the application for the notification.
184
+ */
185
+ appName?: string | null
186
+ /**
187
+ * The icon-name of the icon to be displayed on the notification.
188
+ */
189
+ iconName?: string | null
182
190
  }
183
191
 
184
192
  }
@@ -191,6 +199,10 @@ export interface Notification {
191
199
  * The name of the application for the notification.
192
200
  */
193
201
  app_name: string | null
202
+ /**
203
+ * The name of the application for the notification.
204
+ */
205
+ appName: string | null
194
206
  /**
195
207
  * The body of the notification.
196
208
  */
@@ -201,10 +213,20 @@ export interface Notification {
201
213
  * See [signal`Notification:`:closed].
202
214
  */
203
215
  readonly closed_reason: number
216
+ /**
217
+ * The closed reason of the notification.
218
+ *
219
+ * See [signal`Notification:`:closed].
220
+ */
221
+ readonly closedReason: number
204
222
  /**
205
223
  * The icon-name of the icon to be displayed on the notification.
206
224
  */
207
225
  icon_name: string | null
226
+ /**
227
+ * The icon-name of the icon to be displayed on the notification.
228
+ */
229
+ iconName: string | null
208
230
  /**
209
231
  * The Id of the notification.
210
232
  */
@@ -225,7 +247,7 @@ export interface Notification {
225
247
  * @param label The human-readable action label.
226
248
  * @param callback The action's callback function.
227
249
  */
228
- add_action(action: string | null, label: string | null, callback: ActionCallback): void
250
+ add_action(action: string, label: string, callback: ActionCallback): void
229
251
  /**
230
252
  * Clears all actions from the notification.
231
253
  */
@@ -274,7 +296,7 @@ export interface Notification {
274
296
  * a certain way.
275
297
  * @param category The category.
276
298
  */
277
- set_category(category: string | null): void
299
+ set_category(category: string): void
278
300
  /**
279
301
  * Sets a hint for `key` with value `value`.
280
302
  *
@@ -284,13 +306,13 @@ export interface Notification {
284
306
  * @param key the hint key
285
307
  * @param value the hint value
286
308
  */
287
- set_hint(key: string | null, value: GLib.Variant | null): void
309
+ set_hint(key: string, value: GLib.Variant | null): void
288
310
  /**
289
311
  * Sets a hint with a byte value.
290
312
  * @param key The hint.
291
313
  * @param value The hint's value.
292
314
  */
293
- set_hint_byte(key: string | null, value: number): void
315
+ set_hint_byte(key: string, value: number): void
294
316
  /**
295
317
  * Sets a hint with a byte array value.
296
318
  *
@@ -298,31 +320,31 @@ export interface Notification {
298
320
  * @param key The hint.
299
321
  * @param value The hint's value.
300
322
  */
301
- set_hint_byte_array(key: string | null, value: Uint8Array): void
323
+ set_hint_byte_array(key: string, value: Uint8Array): void
302
324
  /**
303
325
  * Sets a hint with a double value.
304
326
  * @param key The hint.
305
327
  * @param value The hint's value.
306
328
  */
307
- set_hint_double(key: string | null, value: number): void
329
+ set_hint_double(key: string, value: number): void
308
330
  /**
309
331
  * Sets a hint with a 32-bit integer value.
310
332
  * @param key The hint.
311
333
  * @param value The hint's value.
312
334
  */
313
- set_hint_int32(key: string | null, value: number): void
335
+ set_hint_int32(key: string, value: number): void
314
336
  /**
315
337
  * Sets a hint with a string value.
316
338
  * @param key The hint.
317
339
  * @param value The hint's value.
318
340
  */
319
- set_hint_string(key: string | null, value: string | null): void
341
+ set_hint_string(key: string, value: string): void
320
342
  /**
321
343
  * Sets a hint with an unsigned 32-bit integer value.
322
344
  * @param key The hint.
323
345
  * @param value The hint's value.
324
346
  */
325
- set_hint_uint32(key: string | null, value: number): void
347
+ set_hint_uint32(key: string, value: number): void
326
348
  /**
327
349
  * Sets the icon in the notification from a #GdkPixbuf.
328
350
  * @param icon The icon.
@@ -363,7 +385,7 @@ export interface Notification {
363
385
  * @param icon The optional icon theme icon name or filename.
364
386
  * @returns %TRUE, unless an invalid parameter was passed.
365
387
  */
366
- update(summary: string | null, body: string | null, icon: string | null): boolean
388
+ update(summary: string, body: string | null, icon: string | null): boolean
367
389
 
368
390
  // Own virtual methods of Notify-0.7.Notify.Notification
369
391
 
@@ -432,7 +454,7 @@ export class Notification extends GObject.Object {
432
454
  * @param icon The optional icon theme icon name or filename.
433
455
  * @returns The new #NotifyNotification.
434
456
  */
435
- constructor(summary: string | null, body: string | null, icon: string | null)
457
+ constructor(summary: string, body: string | null, icon: string | null)
436
458
  /**
437
459
  * Creates a new #NotifyNotification.
438
460
  *
@@ -443,7 +465,7 @@ export class Notification extends GObject.Object {
443
465
  * @param icon The optional icon theme icon name or filename.
444
466
  * @returns The new #NotifyNotification.
445
467
  */
446
- static new(summary: string | null, body: string | null, icon: string | null): Notification
468
+ static new(summary: string, body: string | null, icon: string | null): Notification
447
469
  _init(config?: Notification.ConstructorProperties): void
448
470
  }
449
471
 
package/notify-0.7.d.ts CHANGED
@@ -89,7 +89,7 @@ const VERSION_MINOR: number
89
89
  * Gets the application name registered.
90
90
  * @returns The registered application name, passed to [func@init].
91
91
  */
92
- function get_app_name(): string | null
92
+ function get_app_name(): string
93
93
  /**
94
94
  * Queries the server capabilities.
95
95
  *
@@ -106,7 +106,7 @@ function get_server_caps(): string[]
106
106
  * that it is compliant with.
107
107
  * @returns %TRUE if successful, and the variables passed will be set, %FALSE on error. The returned strings must be freed with g_free
108
108
  */
109
- function get_server_info(): [ /* returnType */ boolean, /* ret_name */ string | null, /* ret_vendor */ string | null, /* ret_version */ string | null, /* ret_spec_version */ string | null ]
109
+ function get_server_info(): [ /* returnType */ boolean, /* ret_name */ string, /* ret_vendor */ string, /* ret_version */ string, /* ret_spec_version */ string ]
110
110
  /**
111
111
  * Initialized libnotify. This must be called before any other functions.
112
112
  *
@@ -126,7 +126,7 @@ function is_initted(): boolean
126
126
  * Sets the application name.
127
127
  * @param app_name The name of the application
128
128
  */
129
- function set_app_name(app_name: string | null): void
129
+ function set_app_name(app_name: string): void
130
130
  /**
131
131
  * Uninitializes libnotify.
132
132
  *
@@ -181,6 +181,14 @@ module Notification {
181
181
  * The summary of the notification.
182
182
  */
183
183
  summary?: string | null
184
+ /**
185
+ * The name of the application for the notification.
186
+ */
187
+ appName?: string | null
188
+ /**
189
+ * The icon-name of the icon to be displayed on the notification.
190
+ */
191
+ iconName?: string | null
184
192
  }
185
193
 
186
194
  }
@@ -193,6 +201,10 @@ interface Notification {
193
201
  * The name of the application for the notification.
194
202
  */
195
203
  app_name: string | null
204
+ /**
205
+ * The name of the application for the notification.
206
+ */
207
+ appName: string | null
196
208
  /**
197
209
  * The body of the notification.
198
210
  */
@@ -203,10 +215,20 @@ interface Notification {
203
215
  * See [signal`Notification:`:closed].
204
216
  */
205
217
  readonly closed_reason: number
218
+ /**
219
+ * The closed reason of the notification.
220
+ *
221
+ * See [signal`Notification:`:closed].
222
+ */
223
+ readonly closedReason: number
206
224
  /**
207
225
  * The icon-name of the icon to be displayed on the notification.
208
226
  */
209
227
  icon_name: string | null
228
+ /**
229
+ * The icon-name of the icon to be displayed on the notification.
230
+ */
231
+ iconName: string | null
210
232
  /**
211
233
  * The Id of the notification.
212
234
  */
@@ -227,7 +249,7 @@ interface Notification {
227
249
  * @param label The human-readable action label.
228
250
  * @param callback The action's callback function.
229
251
  */
230
- add_action(action: string | null, label: string | null, callback: ActionCallback): void
252
+ add_action(action: string, label: string, callback: ActionCallback): void
231
253
  /**
232
254
  * Clears all actions from the notification.
233
255
  */
@@ -276,7 +298,7 @@ interface Notification {
276
298
  * a certain way.
277
299
  * @param category The category.
278
300
  */
279
- set_category(category: string | null): void
301
+ set_category(category: string): void
280
302
  /**
281
303
  * Sets a hint for `key` with value `value`.
282
304
  *
@@ -286,13 +308,13 @@ interface Notification {
286
308
  * @param key the hint key
287
309
  * @param value the hint value
288
310
  */
289
- set_hint(key: string | null, value: GLib.Variant | null): void
311
+ set_hint(key: string, value: GLib.Variant | null): void
290
312
  /**
291
313
  * Sets a hint with a byte value.
292
314
  * @param key The hint.
293
315
  * @param value The hint's value.
294
316
  */
295
- set_hint_byte(key: string | null, value: number): void
317
+ set_hint_byte(key: string, value: number): void
296
318
  /**
297
319
  * Sets a hint with a byte array value.
298
320
  *
@@ -300,31 +322,31 @@ interface Notification {
300
322
  * @param key The hint.
301
323
  * @param value The hint's value.
302
324
  */
303
- set_hint_byte_array(key: string | null, value: Uint8Array): void
325
+ set_hint_byte_array(key: string, value: Uint8Array): void
304
326
  /**
305
327
  * Sets a hint with a double value.
306
328
  * @param key The hint.
307
329
  * @param value The hint's value.
308
330
  */
309
- set_hint_double(key: string | null, value: number): void
331
+ set_hint_double(key: string, value: number): void
310
332
  /**
311
333
  * Sets a hint with a 32-bit integer value.
312
334
  * @param key The hint.
313
335
  * @param value The hint's value.
314
336
  */
315
- set_hint_int32(key: string | null, value: number): void
337
+ set_hint_int32(key: string, value: number): void
316
338
  /**
317
339
  * Sets a hint with a string value.
318
340
  * @param key The hint.
319
341
  * @param value The hint's value.
320
342
  */
321
- set_hint_string(key: string | null, value: string | null): void
343
+ set_hint_string(key: string, value: string): void
322
344
  /**
323
345
  * Sets a hint with an unsigned 32-bit integer value.
324
346
  * @param key The hint.
325
347
  * @param value The hint's value.
326
348
  */
327
- set_hint_uint32(key: string | null, value: number): void
349
+ set_hint_uint32(key: string, value: number): void
328
350
  /**
329
351
  * Sets the icon in the notification from a #GdkPixbuf.
330
352
  * @param icon The icon.
@@ -365,7 +387,7 @@ interface Notification {
365
387
  * @param icon The optional icon theme icon name or filename.
366
388
  * @returns %TRUE, unless an invalid parameter was passed.
367
389
  */
368
- update(summary: string | null, body: string | null, icon: string | null): boolean
390
+ update(summary: string, body: string | null, icon: string | null): boolean
369
391
 
370
392
  // Own virtual methods of Notify-0.7.Notify.Notification
371
393
 
@@ -434,7 +456,7 @@ class Notification extends GObject.Object {
434
456
  * @param icon The optional icon theme icon name or filename.
435
457
  * @returns The new #NotifyNotification.
436
458
  */
437
- constructor(summary: string | null, body: string | null, icon: string | null)
459
+ constructor(summary: string, body: string | null, icon: string | null)
438
460
  /**
439
461
  * Creates a new #NotifyNotification.
440
462
  *
@@ -445,7 +467,7 @@ class Notification extends GObject.Object {
445
467
  * @param icon The optional icon theme icon name or filename.
446
468
  * @returns The new #NotifyNotification.
447
469
  */
448
- static new(summary: string | null, body: string | null, icon: string | null): Notification
470
+ static new(summary: string, body: string | null, icon: string | null): Notification
449
471
  _init(config?: Notification.ConstructorProperties): void
450
472
  }
451
473
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/notify-0.7",
3
- "version": "0.8.3-3.2.5",
3
+ "version": "0.8.3-3.2.7",
4
4
  "description": "GJS TypeScript type definitions for Notify-0.7, generated from library version 0.8.3",
5
5
  "type": "module",
6
6
  "module": "notify-0.7.js",
@@ -25,12 +25,12 @@
25
25
  "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit notify-0.7.d.cts"
26
26
  },
27
27
  "dependencies": {
28
- "@girs/gdkpixbuf-2.0": "^2.0.0-3.2.5",
29
- "@girs/gio-2.0": "^2.78.0-3.2.5",
30
- "@girs/gjs": "^3.2.5",
31
- "@girs/glib-2.0": "^2.78.0-3.2.5",
32
- "@girs/gmodule-2.0": "^2.0.0-3.2.5",
33
- "@girs/gobject-2.0": "^2.78.0-3.2.5"
28
+ "@girs/gdkpixbuf-2.0": "^2.0.0-3.2.7",
29
+ "@girs/gio-2.0": "^2.78.0-3.2.7",
30
+ "@girs/gjs": "^3.2.7",
31
+ "@girs/glib-2.0": "^2.78.0-3.2.7",
32
+ "@girs/gmodule-2.0": "^2.0.0-3.2.7",
33
+ "@girs/gobject-2.0": "^2.78.0-3.2.7"
34
34
  },
35
35
  "devDependencies": {
36
36
  "typescript": "*"