@girs/ebook-1.2 1.2.0-3.2.6 → 1.2.0-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/ebook-1.2)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for EBook-1.2, generated from library version 1.2.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.6.
8
+ GJS TypeScript type definitions for EBook-1.2, generated from library version 1.2.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.7.
9
9
 
10
10
  This package is a client library for evolution addressbooks.
11
11
 
package/ebook-1.2.d.cts CHANGED
@@ -107,7 +107,7 @@ export interface BookClient extends Gio.AsyncInitable, Gio.Initable {
107
107
  * @param result a #GAsyncResult
108
108
  * @returns %TRUE if successful, %FALSE otherwise.
109
109
  */
110
- add_contact_finish(result: Gio.AsyncResult): [ /* returnType */ boolean, /* out_added_uid */ string | null ]
110
+ add_contact_finish(result: Gio.AsyncResult): [ /* returnType */ boolean, /* out_added_uid */ string ]
111
111
  /**
112
112
  * Adds `contact` to `client` and
113
113
  * sets `out_added_uid` to a UID of a newly added contact.
@@ -120,7 +120,7 @@ export interface BookClient extends Gio.AsyncInitable, Gio.Initable {
120
120
  * @param cancellable a #GCancellable; can be %NULL
121
121
  * @returns %TRUE if successful, %FALSE otherwise.
122
122
  */
123
- add_contact_sync(contact: EBookContacts.Contact, opflags: EBookContacts.BookOperationFlags, cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_added_uid */ string | null ]
123
+ add_contact_sync(contact: EBookContacts.Contact, opflags: EBookContacts.BookOperationFlags, cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_added_uid */ string ]
124
124
  /**
125
125
  * Adds `contacts` to `client`.
126
126
  * The call is finished by e_book_client_add_contacts_finish()
@@ -172,14 +172,14 @@ export interface BookClient extends Gio.AsyncInitable, Gio.Initable {
172
172
  * @param cancellable a #GCancellable; can be %NULL
173
173
  * @param callback callback to call when a result is ready
174
174
  */
175
- contains_email(email_address: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
175
+ contains_email(email_address: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
176
176
  /**
177
177
  * Finishes previous call of e_book_client_contains_email().
178
178
  * @param result a #GAsyncResult
179
179
  * @returns %TRUE if successful, %FALSE otherwise.
180
180
  */
181
181
  contains_email_finish(result: Gio.AsyncResult): boolean
182
- contains_email_sync(email_address: string | null, cancellable: Gio.Cancellable | null): boolean
182
+ contains_email_sync(email_address: string, cancellable: Gio.Cancellable | null): boolean
183
183
  /**
184
184
  * Receive #EContact from the `client` for the gived `uid`.
185
185
  * The call is finished by e_book_client_get_contact_finish()
@@ -188,7 +188,7 @@ export interface BookClient extends Gio.AsyncInitable, Gio.Initable {
188
188
  * @param cancellable a #GCancellable; can be %NULL
189
189
  * @param callback callback to call when a result is ready
190
190
  */
191
- get_contact(uid: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
191
+ get_contact(uid: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
192
192
  /**
193
193
  * Finishes previous call of e_book_client_get_contact().
194
194
  * If successful, then the `out_contact` is set to newly allocated
@@ -205,7 +205,7 @@ export interface BookClient extends Gio.AsyncInitable, Gio.Initable {
205
205
  * @param cancellable a #GCancellable; can be %NULL
206
206
  * @returns %TRUE if successful, %FALSE otherwise.
207
207
  */
208
- get_contact_sync(uid: string | null, cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_contact */ EBookContacts.Contact ]
208
+ get_contact_sync(uid: string, cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_contact */ EBookContacts.Contact ]
209
209
  /**
210
210
  * Query `client` with `sexp,` receiving a list of contacts which
211
211
  * matched. The call is finished by e_book_client_get_contacts_finish()
@@ -217,7 +217,7 @@ export interface BookClient extends Gio.AsyncInitable, Gio.Initable {
217
217
  * @param cancellable a #GCancellable; can be %NULL
218
218
  * @param callback callback to call when a result is ready
219
219
  */
220
- get_contacts(sexp: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
220
+ get_contacts(sexp: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
221
221
  /**
222
222
  * Finishes previous call of e_book_client_get_contacts().
223
223
  * If successful, then the `out_contacts` is set to newly allocated list of
@@ -237,7 +237,7 @@ export interface BookClient extends Gio.AsyncInitable, Gio.Initable {
237
237
  * @param cancellable a #GCancellable; can be %NULL
238
238
  * @returns %TRUE if successful, %FALSE otherwise.
239
239
  */
240
- get_contacts_sync(sexp: string | null, cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_contacts */ EBookContacts.Contact[] ]
240
+ get_contacts_sync(sexp: string, cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_contacts */ EBookContacts.Contact[] ]
241
241
  /**
242
242
  * Query `client` with `sexp,` receiving a list of contacts UIDs which
243
243
  * matched. The call is finished by e_book_client_get_contacts_uids_finish()
@@ -249,7 +249,7 @@ export interface BookClient extends Gio.AsyncInitable, Gio.Initable {
249
249
  * @param cancellable a #GCancellable; can be %NULL
250
250
  * @param callback callback to call when a result is ready
251
251
  */
252
- get_contacts_uids(sexp: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
252
+ get_contacts_uids(sexp: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
253
253
  /**
254
254
  * Finishes previous call of e_book_client_get_contacts_uids().
255
255
  * If successful, then the `out_contact_uids` is set to newly allocated list
@@ -269,7 +269,7 @@ export interface BookClient extends Gio.AsyncInitable, Gio.Initable {
269
269
  * @param cancellable a #GCancellable; can be %NULL
270
270
  * @returns %TRUE if successful, %FALSE otherwise.
271
271
  */
272
- get_contacts_uids_sync(sexp: string | null, cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_contact_uids */ string[] ]
272
+ get_contacts_uids_sync(sexp: string, cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_contact_uids */ string[] ]
273
273
  /**
274
274
  * Create an #EBookClientCursor.
275
275
  * The call is finished by e_book_client_get_view_finish()
@@ -284,7 +284,7 @@ export interface BookClient extends Gio.AsyncInitable, Gio.Initable {
284
284
  * @param cancellable a #GCancellable; can be %NULL
285
285
  * @param callback callback to call when a result is ready
286
286
  */
287
- get_cursor(sexp: string | null, sort_fields: EBookContacts.ContactField, sort_types: EBookContacts.BookCursorSortType, n_fields: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
287
+ get_cursor(sexp: string, sort_fields: EBookContacts.ContactField, sort_types: EBookContacts.BookCursorSortType, n_fields: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
288
288
  /**
289
289
  * Finishes previous call of e_book_client_get_cursor().
290
290
  * If successful, then the `out_cursor` is set to newly create
@@ -308,7 +308,7 @@ export interface BookClient extends Gio.AsyncInitable, Gio.Initable {
308
308
  * @param cancellable a #GCancellable; can be %NULL
309
309
  * @returns %TRUE if successful, %FALSE otherwise.
310
310
  */
311
- get_cursor_sync(sexp: string | null, sort_fields: EBookContacts.ContactField, sort_types: EBookContacts.BookCursorSortType, n_fields: number, cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_cursor */ BookClientCursor ]
311
+ get_cursor_sync(sexp: string, sort_fields: EBookContacts.ContactField, sort_types: EBookContacts.BookCursorSortType, n_fields: number, cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_cursor */ BookClientCursor ]
312
312
  /**
313
313
  * Reports the locale in use for `client`. The addressbook might sort contacts
314
314
  * in different orders, or store and compare phone numbers in different ways
@@ -320,7 +320,7 @@ export interface BookClient extends Gio.AsyncInitable, Gio.Initable {
320
320
  * after a locale change is detected.
321
321
  * @returns The currently set locale for @client
322
322
  */
323
- get_locale(): string | null
323
+ get_locale(): string
324
324
  /**
325
325
  * Query `client` with `sexp,` creating an #EBookClientView.
326
326
  * The call is finished by e_book_client_get_view_finish()
@@ -332,7 +332,7 @@ export interface BookClient extends Gio.AsyncInitable, Gio.Initable {
332
332
  * @param cancellable a #GCancellable; can be %NULL
333
333
  * @param callback callback to call when a result is ready
334
334
  */
335
- get_view(sexp: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
335
+ get_view(sexp: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
336
336
  /**
337
337
  * Finishes previous call of e_book_client_get_view().
338
338
  * If successful, then the `out_view` is set to newly allocated
@@ -352,7 +352,7 @@ export interface BookClient extends Gio.AsyncInitable, Gio.Initable {
352
352
  * @param cancellable a #GCancellable; can be %NULL
353
353
  * @returns %TRUE if successful, %FALSE otherwise.
354
354
  */
355
- get_view_sync(sexp: string | null, cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_view */ BookClientView ]
355
+ get_view_sync(sexp: string, cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_view */ BookClientView ]
356
356
  /**
357
357
  * Applies the changes made to `contact` to the stored version in `client`.
358
358
  * The call is finished by e_book_client_modify_contact_finish()
@@ -420,7 +420,7 @@ export interface BookClient extends Gio.AsyncInitable, Gio.Initable {
420
420
  * @param cancellable a #GCancellable; can be %NULL
421
421
  * @param callback callback to call when a result is ready
422
422
  */
423
- remove_contact_by_uid(uid: string | null, opflags: EBookContacts.BookOperationFlags, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
423
+ remove_contact_by_uid(uid: string, opflags: EBookContacts.BookOperationFlags, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
424
424
  /**
425
425
  * Finishes previous call of e_book_client_remove_contact_by_uid().
426
426
  * @param result a #GAsyncResult
@@ -434,7 +434,7 @@ export interface BookClient extends Gio.AsyncInitable, Gio.Initable {
434
434
  * @param cancellable a #GCancellable; can be %NULL
435
435
  * @returns %TRUE if successful, %FALSE otherwise.
436
436
  */
437
- remove_contact_by_uid_sync(uid: string | null, opflags: EBookContacts.BookOperationFlags, cancellable: Gio.Cancellable | null): boolean
437
+ remove_contact_by_uid_sync(uid: string, opflags: EBookContacts.BookOperationFlags, cancellable: Gio.Cancellable | null): boolean
438
438
  /**
439
439
  * Finishes previous call of e_book_client_remove_contact().
440
440
  * @param result a #GAsyncResult
@@ -964,7 +964,7 @@ export interface BookClientCursor extends Gio.Initable {
964
964
  * @param cancellable a #GCancellable to optionally cancel this operation while in progress
965
965
  * @param callback callback to call when a result is ready
966
966
  */
967
- set_sexp(sexp: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
967
+ set_sexp(sexp: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
968
968
  /**
969
969
  * Completes an asynchronous call initiated by e_book_client_cursor_set_sexp(), reporting
970
970
  * whether the new search expression was accepted.
@@ -992,7 +992,7 @@ export interface BookClientCursor extends Gio.Initable {
992
992
  * @param cancellable a #GCancellable to optionally cancel this operation while in progress
993
993
  * @returns %TRUE on success, otherwise %FALSE is returned and @error is set.
994
994
  */
995
- set_sexp_sync(sexp: string | null, cancellable: Gio.Cancellable | null): boolean
995
+ set_sexp_sync(sexp: string, cancellable: Gio.Cancellable | null): boolean
996
996
  /**
997
997
  * <link linkend="cursor-iteration">Steps the cursor through the results</link> by
998
998
  * a maximum of `count` and fetch the results traversed.
@@ -1273,7 +1273,7 @@ export interface BookClientView extends Gio.Initable {
1273
1273
  * Returns the object path used to create the D-Bus proxy.
1274
1274
  * @returns the object path
1275
1275
  */
1276
- get_object_path(): string | null
1276
+ get_object_path(): string
1277
1277
  is_running(): boolean
1278
1278
  /**
1279
1279
  * Returns the #EBookClientView:client associated with `client_view`.
@@ -1331,7 +1331,7 @@ export interface BookClientView extends Gio.Initable {
1331
1331
  // Own virtual methods of EBook-1.2.EBook.BookClientView
1332
1332
 
1333
1333
  vfunc_complete(error: GLib.Error): void
1334
- vfunc_progress(percent: number, message: string | null): void
1334
+ vfunc_progress(percent: number, message: string): void
1335
1335
 
1336
1336
  // Own signals of EBook-1.2.EBook.BookClientView
1337
1337
 
@@ -1471,7 +1471,7 @@ export interface Destination {
1471
1471
  * Gets the e-mail address of `dest'`s addressee.
1472
1472
  * @returns An e-mail address, or an empty string if none was set.
1473
1473
  */
1474
- get_email(): string | null
1474
+ get_email(): string
1475
1475
  /**
1476
1476
  * Gets the index of the e-mail address of the contact that
1477
1477
  * `dest` is pointing to, if any.
@@ -1503,7 +1503,7 @@ export interface Destination {
1503
1503
  * @param include_email whether to include the e-mail address
1504
1504
  * @returns A textual representation of the destination.
1505
1505
  */
1506
- get_textrep(include_email: boolean): string | null
1506
+ get_textrep(include_email: boolean): string
1507
1507
  /**
1508
1508
  * Checks if `dest` is flagged as an automatic recipient, meaning
1509
1509
  * it was not explicitly specified by the user. This can be used
@@ -1567,12 +1567,12 @@ export interface Destination {
1567
1567
  * @param uid a unique contact ID
1568
1568
  * @param email_num an email index
1569
1569
  */
1570
- set_contact_uid(uid: string | null, email_num: number): void
1570
+ set_contact_uid(uid: string, email_num: number): void
1571
1571
  /**
1572
1572
  * Sets the e-mail address of `dest'`s addressee.
1573
1573
  * @param email the destination's e-mail address
1574
1574
  */
1575
- set_email(email: string | null): void
1575
+ set_email(email: string): void
1576
1576
  /**
1577
1577
  * Specifies whether `dest` wants to get mail formatted as HTML.
1578
1578
  * @param flag whether the destination wants HTML mail
@@ -1587,13 +1587,13 @@ export interface Destination {
1587
1587
  * Sets the full name of `dest'`s addressee.
1588
1588
  * @param name the destination's full name
1589
1589
  */
1590
- set_name(name: string | null): void
1590
+ set_name(name: string): void
1591
1591
  /**
1592
1592
  * Sets `dest` to point to the name and e-mail address resulting from
1593
1593
  * parsing the supplied string. Useful for user input.
1594
1594
  * @param raw an unparsed string
1595
1595
  */
1596
- set_raw(raw: string | null): void
1596
+ set_raw(raw: string): void
1597
1597
 
1598
1598
  // Own virtual methods of EBook-1.2.EBook.Destination
1599
1599
 
@@ -1659,14 +1659,14 @@ export class Destination extends GObject.Object {
1659
1659
  * @param str an XML string
1660
1660
  * @returns An #EDestination, or %NULL if the document was not well-formed.
1661
1661
  */
1662
- static import(str: string | null): Destination | null
1662
+ static import(str: string): Destination | null
1663
1663
  /**
1664
1664
  * Creates an array of pointers to #EDestination elements
1665
1665
  * from an XML document.
1666
1666
  * @param str an XML string
1667
1667
  * @returns A %NULL-terminated array of pointers to #EDestination elements.
1668
1668
  */
1669
- static importv(str: string | null): Destination[]
1669
+ static importv(str: string): Destination[]
1670
1670
  }
1671
1671
 
1672
1672
  export interface BookClientClass {
@@ -1725,7 +1725,7 @@ export interface BookClientViewClass {
1725
1725
 
1726
1726
  // Own fields of EBook-1.2.EBook.BookClientViewClass
1727
1727
 
1728
- progress: (client_view: BookClientView, percent: number, message: string | null) => void
1728
+ progress: (client_view: BookClientView, percent: number, message: string) => void
1729
1729
  complete: (client_view: BookClientView, error: GLib.Error) => void
1730
1730
  }
1731
1731
 
package/ebook-1.2.d.ts CHANGED
@@ -109,7 +109,7 @@ interface BookClient extends Gio.AsyncInitable, Gio.Initable {
109
109
  * @param result a #GAsyncResult
110
110
  * @returns %TRUE if successful, %FALSE otherwise.
111
111
  */
112
- add_contact_finish(result: Gio.AsyncResult): [ /* returnType */ boolean, /* out_added_uid */ string | null ]
112
+ add_contact_finish(result: Gio.AsyncResult): [ /* returnType */ boolean, /* out_added_uid */ string ]
113
113
  /**
114
114
  * Adds `contact` to `client` and
115
115
  * sets `out_added_uid` to a UID of a newly added contact.
@@ -122,7 +122,7 @@ interface BookClient extends Gio.AsyncInitable, Gio.Initable {
122
122
  * @param cancellable a #GCancellable; can be %NULL
123
123
  * @returns %TRUE if successful, %FALSE otherwise.
124
124
  */
125
- add_contact_sync(contact: EBookContacts.Contact, opflags: EBookContacts.BookOperationFlags, cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_added_uid */ string | null ]
125
+ add_contact_sync(contact: EBookContacts.Contact, opflags: EBookContacts.BookOperationFlags, cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_added_uid */ string ]
126
126
  /**
127
127
  * Adds `contacts` to `client`.
128
128
  * The call is finished by e_book_client_add_contacts_finish()
@@ -174,14 +174,14 @@ interface BookClient extends Gio.AsyncInitable, Gio.Initable {
174
174
  * @param cancellable a #GCancellable; can be %NULL
175
175
  * @param callback callback to call when a result is ready
176
176
  */
177
- contains_email(email_address: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
177
+ contains_email(email_address: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
178
178
  /**
179
179
  * Finishes previous call of e_book_client_contains_email().
180
180
  * @param result a #GAsyncResult
181
181
  * @returns %TRUE if successful, %FALSE otherwise.
182
182
  */
183
183
  contains_email_finish(result: Gio.AsyncResult): boolean
184
- contains_email_sync(email_address: string | null, cancellable: Gio.Cancellable | null): boolean
184
+ contains_email_sync(email_address: string, cancellable: Gio.Cancellable | null): boolean
185
185
  /**
186
186
  * Receive #EContact from the `client` for the gived `uid`.
187
187
  * The call is finished by e_book_client_get_contact_finish()
@@ -190,7 +190,7 @@ interface BookClient extends Gio.AsyncInitable, Gio.Initable {
190
190
  * @param cancellable a #GCancellable; can be %NULL
191
191
  * @param callback callback to call when a result is ready
192
192
  */
193
- get_contact(uid: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
193
+ get_contact(uid: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
194
194
  /**
195
195
  * Finishes previous call of e_book_client_get_contact().
196
196
  * If successful, then the `out_contact` is set to newly allocated
@@ -207,7 +207,7 @@ interface BookClient extends Gio.AsyncInitable, Gio.Initable {
207
207
  * @param cancellable a #GCancellable; can be %NULL
208
208
  * @returns %TRUE if successful, %FALSE otherwise.
209
209
  */
210
- get_contact_sync(uid: string | null, cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_contact */ EBookContacts.Contact ]
210
+ get_contact_sync(uid: string, cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_contact */ EBookContacts.Contact ]
211
211
  /**
212
212
  * Query `client` with `sexp,` receiving a list of contacts which
213
213
  * matched. The call is finished by e_book_client_get_contacts_finish()
@@ -219,7 +219,7 @@ interface BookClient extends Gio.AsyncInitable, Gio.Initable {
219
219
  * @param cancellable a #GCancellable; can be %NULL
220
220
  * @param callback callback to call when a result is ready
221
221
  */
222
- get_contacts(sexp: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
222
+ get_contacts(sexp: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
223
223
  /**
224
224
  * Finishes previous call of e_book_client_get_contacts().
225
225
  * If successful, then the `out_contacts` is set to newly allocated list of
@@ -239,7 +239,7 @@ interface BookClient extends Gio.AsyncInitable, Gio.Initable {
239
239
  * @param cancellable a #GCancellable; can be %NULL
240
240
  * @returns %TRUE if successful, %FALSE otherwise.
241
241
  */
242
- get_contacts_sync(sexp: string | null, cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_contacts */ EBookContacts.Contact[] ]
242
+ get_contacts_sync(sexp: string, cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_contacts */ EBookContacts.Contact[] ]
243
243
  /**
244
244
  * Query `client` with `sexp,` receiving a list of contacts UIDs which
245
245
  * matched. The call is finished by e_book_client_get_contacts_uids_finish()
@@ -251,7 +251,7 @@ interface BookClient extends Gio.AsyncInitable, Gio.Initable {
251
251
  * @param cancellable a #GCancellable; can be %NULL
252
252
  * @param callback callback to call when a result is ready
253
253
  */
254
- get_contacts_uids(sexp: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
254
+ get_contacts_uids(sexp: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
255
255
  /**
256
256
  * Finishes previous call of e_book_client_get_contacts_uids().
257
257
  * If successful, then the `out_contact_uids` is set to newly allocated list
@@ -271,7 +271,7 @@ interface BookClient extends Gio.AsyncInitable, Gio.Initable {
271
271
  * @param cancellable a #GCancellable; can be %NULL
272
272
  * @returns %TRUE if successful, %FALSE otherwise.
273
273
  */
274
- get_contacts_uids_sync(sexp: string | null, cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_contact_uids */ string[] ]
274
+ get_contacts_uids_sync(sexp: string, cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_contact_uids */ string[] ]
275
275
  /**
276
276
  * Create an #EBookClientCursor.
277
277
  * The call is finished by e_book_client_get_view_finish()
@@ -286,7 +286,7 @@ interface BookClient extends Gio.AsyncInitable, Gio.Initable {
286
286
  * @param cancellable a #GCancellable; can be %NULL
287
287
  * @param callback callback to call when a result is ready
288
288
  */
289
- get_cursor(sexp: string | null, sort_fields: EBookContacts.ContactField, sort_types: EBookContacts.BookCursorSortType, n_fields: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
289
+ get_cursor(sexp: string, sort_fields: EBookContacts.ContactField, sort_types: EBookContacts.BookCursorSortType, n_fields: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
290
290
  /**
291
291
  * Finishes previous call of e_book_client_get_cursor().
292
292
  * If successful, then the `out_cursor` is set to newly create
@@ -310,7 +310,7 @@ interface BookClient extends Gio.AsyncInitable, Gio.Initable {
310
310
  * @param cancellable a #GCancellable; can be %NULL
311
311
  * @returns %TRUE if successful, %FALSE otherwise.
312
312
  */
313
- get_cursor_sync(sexp: string | null, sort_fields: EBookContacts.ContactField, sort_types: EBookContacts.BookCursorSortType, n_fields: number, cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_cursor */ BookClientCursor ]
313
+ get_cursor_sync(sexp: string, sort_fields: EBookContacts.ContactField, sort_types: EBookContacts.BookCursorSortType, n_fields: number, cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_cursor */ BookClientCursor ]
314
314
  /**
315
315
  * Reports the locale in use for `client`. The addressbook might sort contacts
316
316
  * in different orders, or store and compare phone numbers in different ways
@@ -322,7 +322,7 @@ interface BookClient extends Gio.AsyncInitable, Gio.Initable {
322
322
  * after a locale change is detected.
323
323
  * @returns The currently set locale for @client
324
324
  */
325
- get_locale(): string | null
325
+ get_locale(): string
326
326
  /**
327
327
  * Query `client` with `sexp,` creating an #EBookClientView.
328
328
  * The call is finished by e_book_client_get_view_finish()
@@ -334,7 +334,7 @@ interface BookClient extends Gio.AsyncInitable, Gio.Initable {
334
334
  * @param cancellable a #GCancellable; can be %NULL
335
335
  * @param callback callback to call when a result is ready
336
336
  */
337
- get_view(sexp: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
337
+ get_view(sexp: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
338
338
  /**
339
339
  * Finishes previous call of e_book_client_get_view().
340
340
  * If successful, then the `out_view` is set to newly allocated
@@ -354,7 +354,7 @@ interface BookClient extends Gio.AsyncInitable, Gio.Initable {
354
354
  * @param cancellable a #GCancellable; can be %NULL
355
355
  * @returns %TRUE if successful, %FALSE otherwise.
356
356
  */
357
- get_view_sync(sexp: string | null, cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_view */ BookClientView ]
357
+ get_view_sync(sexp: string, cancellable: Gio.Cancellable | null): [ /* returnType */ boolean, /* out_view */ BookClientView ]
358
358
  /**
359
359
  * Applies the changes made to `contact` to the stored version in `client`.
360
360
  * The call is finished by e_book_client_modify_contact_finish()
@@ -422,7 +422,7 @@ interface BookClient extends Gio.AsyncInitable, Gio.Initable {
422
422
  * @param cancellable a #GCancellable; can be %NULL
423
423
  * @param callback callback to call when a result is ready
424
424
  */
425
- remove_contact_by_uid(uid: string | null, opflags: EBookContacts.BookOperationFlags, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
425
+ remove_contact_by_uid(uid: string, opflags: EBookContacts.BookOperationFlags, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
426
426
  /**
427
427
  * Finishes previous call of e_book_client_remove_contact_by_uid().
428
428
  * @param result a #GAsyncResult
@@ -436,7 +436,7 @@ interface BookClient extends Gio.AsyncInitable, Gio.Initable {
436
436
  * @param cancellable a #GCancellable; can be %NULL
437
437
  * @returns %TRUE if successful, %FALSE otherwise.
438
438
  */
439
- remove_contact_by_uid_sync(uid: string | null, opflags: EBookContacts.BookOperationFlags, cancellable: Gio.Cancellable | null): boolean
439
+ remove_contact_by_uid_sync(uid: string, opflags: EBookContacts.BookOperationFlags, cancellable: Gio.Cancellable | null): boolean
440
440
  /**
441
441
  * Finishes previous call of e_book_client_remove_contact().
442
442
  * @param result a #GAsyncResult
@@ -966,7 +966,7 @@ interface BookClientCursor extends Gio.Initable {
966
966
  * @param cancellable a #GCancellable to optionally cancel this operation while in progress
967
967
  * @param callback callback to call when a result is ready
968
968
  */
969
- set_sexp(sexp: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
969
+ set_sexp(sexp: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
970
970
  /**
971
971
  * Completes an asynchronous call initiated by e_book_client_cursor_set_sexp(), reporting
972
972
  * whether the new search expression was accepted.
@@ -994,7 +994,7 @@ interface BookClientCursor extends Gio.Initable {
994
994
  * @param cancellable a #GCancellable to optionally cancel this operation while in progress
995
995
  * @returns %TRUE on success, otherwise %FALSE is returned and @error is set.
996
996
  */
997
- set_sexp_sync(sexp: string | null, cancellable: Gio.Cancellable | null): boolean
997
+ set_sexp_sync(sexp: string, cancellable: Gio.Cancellable | null): boolean
998
998
  /**
999
999
  * <link linkend="cursor-iteration">Steps the cursor through the results</link> by
1000
1000
  * a maximum of `count` and fetch the results traversed.
@@ -1275,7 +1275,7 @@ interface BookClientView extends Gio.Initable {
1275
1275
  * Returns the object path used to create the D-Bus proxy.
1276
1276
  * @returns the object path
1277
1277
  */
1278
- get_object_path(): string | null
1278
+ get_object_path(): string
1279
1279
  is_running(): boolean
1280
1280
  /**
1281
1281
  * Returns the #EBookClientView:client associated with `client_view`.
@@ -1333,7 +1333,7 @@ interface BookClientView extends Gio.Initable {
1333
1333
  // Own virtual methods of EBook-1.2.EBook.BookClientView
1334
1334
 
1335
1335
  vfunc_complete(error: GLib.Error): void
1336
- vfunc_progress(percent: number, message: string | null): void
1336
+ vfunc_progress(percent: number, message: string): void
1337
1337
 
1338
1338
  // Own signals of EBook-1.2.EBook.BookClientView
1339
1339
 
@@ -1473,7 +1473,7 @@ interface Destination {
1473
1473
  * Gets the e-mail address of `dest'`s addressee.
1474
1474
  * @returns An e-mail address, or an empty string if none was set.
1475
1475
  */
1476
- get_email(): string | null
1476
+ get_email(): string
1477
1477
  /**
1478
1478
  * Gets the index of the e-mail address of the contact that
1479
1479
  * `dest` is pointing to, if any.
@@ -1505,7 +1505,7 @@ interface Destination {
1505
1505
  * @param include_email whether to include the e-mail address
1506
1506
  * @returns A textual representation of the destination.
1507
1507
  */
1508
- get_textrep(include_email: boolean): string | null
1508
+ get_textrep(include_email: boolean): string
1509
1509
  /**
1510
1510
  * Checks if `dest` is flagged as an automatic recipient, meaning
1511
1511
  * it was not explicitly specified by the user. This can be used
@@ -1569,12 +1569,12 @@ interface Destination {
1569
1569
  * @param uid a unique contact ID
1570
1570
  * @param email_num an email index
1571
1571
  */
1572
- set_contact_uid(uid: string | null, email_num: number): void
1572
+ set_contact_uid(uid: string, email_num: number): void
1573
1573
  /**
1574
1574
  * Sets the e-mail address of `dest'`s addressee.
1575
1575
  * @param email the destination's e-mail address
1576
1576
  */
1577
- set_email(email: string | null): void
1577
+ set_email(email: string): void
1578
1578
  /**
1579
1579
  * Specifies whether `dest` wants to get mail formatted as HTML.
1580
1580
  * @param flag whether the destination wants HTML mail
@@ -1589,13 +1589,13 @@ interface Destination {
1589
1589
  * Sets the full name of `dest'`s addressee.
1590
1590
  * @param name the destination's full name
1591
1591
  */
1592
- set_name(name: string | null): void
1592
+ set_name(name: string): void
1593
1593
  /**
1594
1594
  * Sets `dest` to point to the name and e-mail address resulting from
1595
1595
  * parsing the supplied string. Useful for user input.
1596
1596
  * @param raw an unparsed string
1597
1597
  */
1598
- set_raw(raw: string | null): void
1598
+ set_raw(raw: string): void
1599
1599
 
1600
1600
  // Own virtual methods of EBook-1.2.EBook.Destination
1601
1601
 
@@ -1661,14 +1661,14 @@ class Destination extends GObject.Object {
1661
1661
  * @param str an XML string
1662
1662
  * @returns An #EDestination, or %NULL if the document was not well-formed.
1663
1663
  */
1664
- static import(str: string | null): Destination | null
1664
+ static import(str: string): Destination | null
1665
1665
  /**
1666
1666
  * Creates an array of pointers to #EDestination elements
1667
1667
  * from an XML document.
1668
1668
  * @param str an XML string
1669
1669
  * @returns A %NULL-terminated array of pointers to #EDestination elements.
1670
1670
  */
1671
- static importv(str: string | null): Destination[]
1671
+ static importv(str: string): Destination[]
1672
1672
  }
1673
1673
 
1674
1674
  interface BookClientClass {
@@ -1727,7 +1727,7 @@ interface BookClientViewClass {
1727
1727
 
1728
1728
  // Own fields of EBook-1.2.EBook.BookClientViewClass
1729
1729
 
1730
- progress: (client_view: BookClientView, percent: number, message: string | null) => void
1730
+ progress: (client_view: BookClientView, percent: number, message: string) => void
1731
1731
  complete: (client_view: BookClientView, error: GLib.Error) => void
1732
1732
  }
1733
1733
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/ebook-1.2",
3
- "version": "1.2.0-3.2.6",
3
+ "version": "1.2.0-3.2.7",
4
4
  "description": "GJS TypeScript type definitions for EBook-1.2, generated from library version 1.2.0",
5
5
  "type": "module",
6
6
  "module": "ebook-1.2.js",
@@ -25,16 +25,16 @@
25
25
  "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit ebook-1.2.d.cts"
26
26
  },
27
27
  "dependencies": {
28
- "@girs/camel-1.2": "^1.2.0-3.2.6",
29
- "@girs/ebookcontacts-1.2": "^1.2.0-3.2.6",
30
- "@girs/edataserver-1.2": "^1.2.0-3.2.6",
31
- "@girs/gio-2.0": "^2.78.0-3.2.6",
32
- "@girs/gjs": "^3.2.6",
33
- "@girs/glib-2.0": "^2.78.0-3.2.6",
34
- "@girs/gobject-2.0": "^2.78.0-3.2.6",
35
- "@girs/json-1.0": "^1.7.1-3.2.6",
36
- "@girs/libxml2-2.0": "^2.0.0-3.2.6",
37
- "@girs/soup-3.0": "^3.4.4-3.2.6"
28
+ "@girs/camel-1.2": "^1.2.0-3.2.7",
29
+ "@girs/ebookcontacts-1.2": "^1.2.0-3.2.7",
30
+ "@girs/edataserver-1.2": "^1.2.0-3.2.7",
31
+ "@girs/gio-2.0": "^2.78.0-3.2.7",
32
+ "@girs/gjs": "^3.2.7",
33
+ "@girs/glib-2.0": "^2.78.0-3.2.7",
34
+ "@girs/gobject-2.0": "^2.78.0-3.2.7",
35
+ "@girs/json-1.0": "^1.7.1-3.2.7",
36
+ "@girs/libxml2-2.0": "^2.0.0-3.2.7",
37
+ "@girs/soup-3.0": "^3.4.4-3.2.7"
38
38
  },
39
39
  "devDependencies": {
40
40
  "typescript": "*"