@girs/dex-1 1.0.0-3.2.6 → 1.0.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/dex-1)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for Dex-1, generated from library version 1.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.6.
8
+ GJS TypeScript type definitions for Dex-1, generated from library version 1.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.7.
9
9
 
10
10
 
11
11
  ## Install
package/dex-1.d.cts CHANGED
@@ -78,7 +78,7 @@ export function bus_get(bus_type: Gio.BusType): Future
78
78
  * @param timeout_msec
79
79
  * @returns a #DexFuture that resolves to a #GVariant or rejects with error.
80
80
  */
81
- export function dbus_connection_call(connection: Gio.DBusConnection, bus_name: string | null, object_path: string | null, interface_name: string | null, method_name: string | null, parameters: GLib.Variant, reply_type: GLib.VariantType, flags: Gio.DBusCallFlags, timeout_msec: number): Future
81
+ export function dbus_connection_call(connection: Gio.DBusConnection, bus_name: string, object_path: string, interface_name: string, method_name: string, parameters: GLib.Variant, reply_type: GLib.VariantType, flags: Gio.DBusCallFlags, timeout_msec: number): Future
82
82
  /**
83
83
  * Wrapper for g_dbus_connection_call_with_unix_fd_list().
84
84
  * @param connection
@@ -93,7 +93,7 @@ export function dbus_connection_call(connection: Gio.DBusConnection, bus_name: s
93
93
  * @param fd_list a #GUnixFDList
94
94
  * @returns a #DexFutureSet that resolves to a #GVariant. The #DexFuture containing the resulting #GUnixFDList can be retrieved with dex_future_set_get_future_at() with an index of 1.
95
95
  */
96
- export function dbus_connection_call_with_unix_fd_list(connection: Gio.DBusConnection, bus_name: string | null, object_path: string | null, interface_name: string | null, method_name: string | null, parameters: GLib.Variant, reply_type: GLib.VariantType, flags: Gio.DBusCallFlags, timeout_msec: number, fd_list: Gio.UnixFDList | null): Future
96
+ export function dbus_connection_call_with_unix_fd_list(connection: Gio.DBusConnection, bus_name: string, object_path: string, interface_name: string, method_name: string, parameters: GLib.Variant, reply_type: GLib.VariantType, flags: Gio.DBusCallFlags, timeout_msec: number, fd_list: Gio.UnixFDList | null): Future
97
97
  /**
98
98
  * Wrapper for g_dbus_connection_send_message_with_reply().
99
99
  * @param connection a #GDBusConnection
@@ -114,7 +114,7 @@ export function error_quark(): GLib.Quark
114
114
  * @returns a #DexFuture
115
115
  */
116
116
  export function file_copy(source: Gio.File, destination: Gio.File, flags: Gio.FileCopyFlags, io_priority: number): Future
117
- export function file_enumerate_children(file: Gio.File, attributes: string | null, flags: Gio.FileQueryInfoFlags, io_priority: number): Future
117
+ export function file_enumerate_children(file: Gio.File, attributes: string, flags: Gio.FileQueryInfoFlags, io_priority: number): Future
118
118
  export function file_enumerator_next_files(file_enumerator: Gio.FileEnumerator, num_files: number, io_priority: number): Future
119
119
  export function file_load_contents_bytes(file: Gio.File): Future
120
120
  /**
@@ -125,7 +125,7 @@ export function file_load_contents_bytes(file: Gio.File): Future
125
125
  * @returns a #DexFuture
126
126
  */
127
127
  export function file_make_directory(file: Gio.File, io_priority: number): Future
128
- export function file_query_info(file: Gio.File, attributes: string | null, flags: Gio.FileQueryInfoFlags, io_priority: number): Future
128
+ export function file_query_info(file: Gio.File, attributes: string, flags: Gio.FileQueryInfoFlags, io_priority: number): Future
129
129
  /**
130
130
  * Asynchronously opens a file for reading.
131
131
  * @param file a #GFile
@@ -133,7 +133,7 @@ export function file_query_info(file: Gio.File, attributes: string | null, flags
133
133
  * @returns a #DexFuture
134
134
  */
135
135
  export function file_read(file: Gio.File, io_priority: number): Future
136
- export function file_replace(file: Gio.File, etag: string | null, make_backup: boolean, flags: Gio.FileCreateFlags, io_priority: number): Future
136
+ export function file_replace(file: Gio.File, etag: string, make_backup: boolean, flags: Gio.FileCreateFlags, io_priority: number): Future
137
137
  export function get_min_stack_size(): number
138
138
  export function get_page_size(): number
139
139
  export function init(): void
@@ -146,7 +146,7 @@ export function output_stream_close(self: Gio.OutputStream, io_priority: number)
146
146
  export function output_stream_splice(output: Gio.OutputStream, input: Gio.InputStream, flags: Gio.OutputStreamSpliceFlags, io_priority: number): Future
147
147
  export function output_stream_write(self: Gio.OutputStream, buffer: any | null, count: number, io_priority: number): Future
148
148
  export function output_stream_write_bytes(self: Gio.OutputStream, bytes: GLib.Bytes, io_priority: number): Future
149
- export function resolver_lookup_by_name(resolver: Gio.Resolver, address: string | null): Future
149
+ export function resolver_lookup_by_name(resolver: Gio.Resolver, address: string): Future
150
150
  export function socket_client_connect(socket_client: Gio.SocketClient, socket_connectable: Gio.SocketConnectable): Future
151
151
  export function socket_listener_accept(listener: Gio.SocketListener): Future
152
152
  /**
@@ -307,14 +307,14 @@ export interface AsyncResult extends Gio.AsyncResult {
307
307
  * @returns a #DexFuture or %NULL
308
308
  */
309
309
  dup_future(): Future | null
310
- get_name(): string | null
310
+ get_name(): string
311
311
  propagate_boolean(): boolean
312
312
  propagate_double(): number
313
313
  propagate_int(): number
314
314
  propagate_pointer(): any | null
315
- set_name(name: string | null): void
315
+ set_name(name: string): void
316
316
  set_priority(priority: number): void
317
- set_static_name(name: string | null): void
317
+ set_static_name(name: string): void
318
318
 
319
319
  // Class property signals of Dex-1.Dex.AsyncResult
320
320
 
@@ -623,7 +623,7 @@ export interface Future {
623
623
  * be no observer interested in the futures completion or rejection.
624
624
  */
625
625
  disown(): void
626
- get_name(): string | null
626
+ get_name(): string
627
627
  get_status(): FutureStatus
628
628
  get_value(): any
629
629
  }
@@ -786,7 +786,7 @@ export class Future extends Object {
786
786
  * @param string the resolved value for the future
787
787
  * @returns a resolved #DexFuture
788
788
  */
789
- static new_for_string(string: string | null): Future
789
+ static new_for_string(string: string): Future
790
790
  /**
791
791
  * Creates a new #DexFuture and resolves it with `v_uint`.
792
792
  * @constructor
package/dex-1.d.ts CHANGED
@@ -80,7 +80,7 @@ function bus_get(bus_type: Gio.BusType): Future
80
80
  * @param timeout_msec
81
81
  * @returns a #DexFuture that resolves to a #GVariant or rejects with error.
82
82
  */
83
- function dbus_connection_call(connection: Gio.DBusConnection, bus_name: string | null, object_path: string | null, interface_name: string | null, method_name: string | null, parameters: GLib.Variant, reply_type: GLib.VariantType, flags: Gio.DBusCallFlags, timeout_msec: number): Future
83
+ function dbus_connection_call(connection: Gio.DBusConnection, bus_name: string, object_path: string, interface_name: string, method_name: string, parameters: GLib.Variant, reply_type: GLib.VariantType, flags: Gio.DBusCallFlags, timeout_msec: number): Future
84
84
  /**
85
85
  * Wrapper for g_dbus_connection_call_with_unix_fd_list().
86
86
  * @param connection
@@ -95,7 +95,7 @@ function dbus_connection_call(connection: Gio.DBusConnection, bus_name: string |
95
95
  * @param fd_list a #GUnixFDList
96
96
  * @returns a #DexFutureSet that resolves to a #GVariant. The #DexFuture containing the resulting #GUnixFDList can be retrieved with dex_future_set_get_future_at() with an index of 1.
97
97
  */
98
- function dbus_connection_call_with_unix_fd_list(connection: Gio.DBusConnection, bus_name: string | null, object_path: string | null, interface_name: string | null, method_name: string | null, parameters: GLib.Variant, reply_type: GLib.VariantType, flags: Gio.DBusCallFlags, timeout_msec: number, fd_list: Gio.UnixFDList | null): Future
98
+ function dbus_connection_call_with_unix_fd_list(connection: Gio.DBusConnection, bus_name: string, object_path: string, interface_name: string, method_name: string, parameters: GLib.Variant, reply_type: GLib.VariantType, flags: Gio.DBusCallFlags, timeout_msec: number, fd_list: Gio.UnixFDList | null): Future
99
99
  /**
100
100
  * Wrapper for g_dbus_connection_send_message_with_reply().
101
101
  * @param connection a #GDBusConnection
@@ -116,7 +116,7 @@ function error_quark(): GLib.Quark
116
116
  * @returns a #DexFuture
117
117
  */
118
118
  function file_copy(source: Gio.File, destination: Gio.File, flags: Gio.FileCopyFlags, io_priority: number): Future
119
- function file_enumerate_children(file: Gio.File, attributes: string | null, flags: Gio.FileQueryInfoFlags, io_priority: number): Future
119
+ function file_enumerate_children(file: Gio.File, attributes: string, flags: Gio.FileQueryInfoFlags, io_priority: number): Future
120
120
  function file_enumerator_next_files(file_enumerator: Gio.FileEnumerator, num_files: number, io_priority: number): Future
121
121
  function file_load_contents_bytes(file: Gio.File): Future
122
122
  /**
@@ -127,7 +127,7 @@ function file_load_contents_bytes(file: Gio.File): Future
127
127
  * @returns a #DexFuture
128
128
  */
129
129
  function file_make_directory(file: Gio.File, io_priority: number): Future
130
- function file_query_info(file: Gio.File, attributes: string | null, flags: Gio.FileQueryInfoFlags, io_priority: number): Future
130
+ function file_query_info(file: Gio.File, attributes: string, flags: Gio.FileQueryInfoFlags, io_priority: number): Future
131
131
  /**
132
132
  * Asynchronously opens a file for reading.
133
133
  * @param file a #GFile
@@ -135,7 +135,7 @@ function file_query_info(file: Gio.File, attributes: string | null, flags: Gio.F
135
135
  * @returns a #DexFuture
136
136
  */
137
137
  function file_read(file: Gio.File, io_priority: number): Future
138
- function file_replace(file: Gio.File, etag: string | null, make_backup: boolean, flags: Gio.FileCreateFlags, io_priority: number): Future
138
+ function file_replace(file: Gio.File, etag: string, make_backup: boolean, flags: Gio.FileCreateFlags, io_priority: number): Future
139
139
  function get_min_stack_size(): number
140
140
  function get_page_size(): number
141
141
  function init(): void
@@ -148,7 +148,7 @@ function output_stream_close(self: Gio.OutputStream, io_priority: number): Futur
148
148
  function output_stream_splice(output: Gio.OutputStream, input: Gio.InputStream, flags: Gio.OutputStreamSpliceFlags, io_priority: number): Future
149
149
  function output_stream_write(self: Gio.OutputStream, buffer: any | null, count: number, io_priority: number): Future
150
150
  function output_stream_write_bytes(self: Gio.OutputStream, bytes: GLib.Bytes, io_priority: number): Future
151
- function resolver_lookup_by_name(resolver: Gio.Resolver, address: string | null): Future
151
+ function resolver_lookup_by_name(resolver: Gio.Resolver, address: string): Future
152
152
  function socket_client_connect(socket_client: Gio.SocketClient, socket_connectable: Gio.SocketConnectable): Future
153
153
  function socket_listener_accept(listener: Gio.SocketListener): Future
154
154
  /**
@@ -309,14 +309,14 @@ interface AsyncResult extends Gio.AsyncResult {
309
309
  * @returns a #DexFuture or %NULL
310
310
  */
311
311
  dup_future(): Future | null
312
- get_name(): string | null
312
+ get_name(): string
313
313
  propagate_boolean(): boolean
314
314
  propagate_double(): number
315
315
  propagate_int(): number
316
316
  propagate_pointer(): any | null
317
- set_name(name: string | null): void
317
+ set_name(name: string): void
318
318
  set_priority(priority: number): void
319
- set_static_name(name: string | null): void
319
+ set_static_name(name: string): void
320
320
 
321
321
  // Class property signals of Dex-1.Dex.AsyncResult
322
322
 
@@ -625,7 +625,7 @@ interface Future {
625
625
  * be no observer interested in the futures completion or rejection.
626
626
  */
627
627
  disown(): void
628
- get_name(): string | null
628
+ get_name(): string
629
629
  get_status(): FutureStatus
630
630
  get_value(): any
631
631
  }
@@ -788,7 +788,7 @@ class Future extends Object {
788
788
  * @param string the resolved value for the future
789
789
  * @returns a resolved #DexFuture
790
790
  */
791
- static new_for_string(string: string | null): Future
791
+ static new_for_string(string: string): Future
792
792
  /**
793
793
  * Creates a new #DexFuture and resolves it with `v_uint`.
794
794
  * @constructor
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/dex-1",
3
- "version": "1.0.0-3.2.6",
3
+ "version": "1.0.0-3.2.7",
4
4
  "description": "GJS TypeScript type definitions for Dex-1, generated from library version 1.0.0",
5
5
  "type": "module",
6
6
  "module": "dex-1.js",
@@ -25,10 +25,10 @@
25
25
  "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit dex-1.d.cts"
26
26
  },
27
27
  "dependencies": {
28
- "@girs/gio-2.0": "^2.78.0-3.2.6",
29
- "@girs/gjs": "^3.2.6",
30
- "@girs/glib-2.0": "^2.78.0-3.2.6",
31
- "@girs/gobject-2.0": "^2.78.0-3.2.6"
28
+ "@girs/gio-2.0": "^2.78.0-3.2.7",
29
+ "@girs/gjs": "^3.2.7",
30
+ "@girs/glib-2.0": "^2.78.0-3.2.7",
31
+ "@girs/gobject-2.0": "^2.78.0-3.2.7"
32
32
  },
33
33
  "devDependencies": {
34
34
  "typescript": "*"