@girs/gio-2.0 2.78.0-3.2.9 → 2.78.0-3.3.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 +1 -1
- package/gio-2.0.d.cts +20 -20
- package/gio-2.0.d.ts +20 -20
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for Gio-2.0, generated from library version 2.78.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.
|
|
8
|
+
GJS TypeScript type definitions for Gio-2.0, generated from library version 2.78.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.3.0.
|
|
9
9
|
|
|
10
10
|
GIO provides a modern and easy-to-use VFS API. It provides a file system abstraction which allows applications to access local and remote files with a single consistent API.
|
|
11
11
|
|
package/gio-2.0.d.cts
CHANGED
|
@@ -5418,7 +5418,7 @@ export function unix_mount_points_changed_since(time: number): boolean
|
|
|
5418
5418
|
* If `time_read` is set, it will be filled with the mount timestamp,
|
|
5419
5419
|
* allowing for checking if the mounts have changed with
|
|
5420
5420
|
* g_unix_mount_points_changed_since().
|
|
5421
|
-
* @returns
|
|
5421
|
+
* @returns a #GList of the UNIX mountpoints.
|
|
5422
5422
|
*/
|
|
5423
5423
|
export function unix_mount_points_get(): [ /* returnType */ UnixMountPoint[], /* time_read */ number ]
|
|
5424
5424
|
/**
|
|
@@ -5432,7 +5432,7 @@ export function unix_mounts_changed_since(time: number): boolean
|
|
|
5432
5432
|
* If `time_read` is set, it will be filled with the mount
|
|
5433
5433
|
* timestamp, allowing for checking if the mounts have changed
|
|
5434
5434
|
* with g_unix_mounts_changed_since().
|
|
5435
|
-
* @returns
|
|
5435
|
+
* @returns a #GList of the UNIX mounts.
|
|
5436
5436
|
*/
|
|
5437
5437
|
export function unix_mounts_get(): [ /* returnType */ UnixMountEntry[], /* time_read */ number ]
|
|
5438
5438
|
/**
|
|
@@ -7211,7 +7211,7 @@ export interface AppInfo {
|
|
|
7211
7211
|
* This function does not take in consideration associations added with
|
|
7212
7212
|
* g_app_info_add_supports_type(), but only those exported directly by
|
|
7213
7213
|
* the application.
|
|
7214
|
-
* @returns
|
|
7214
|
+
* @returns a list of content types.
|
|
7215
7215
|
*/
|
|
7216
7216
|
get_supported_types(): string[]
|
|
7217
7217
|
/**
|
|
@@ -7458,7 +7458,7 @@ export interface AppInfo {
|
|
|
7458
7458
|
* g_app_info_add_supports_type(), but only those exported directly by
|
|
7459
7459
|
* the application.
|
|
7460
7460
|
* @virtual
|
|
7461
|
-
* @returns
|
|
7461
|
+
* @returns a list of content types.
|
|
7462
7462
|
*/
|
|
7463
7463
|
vfunc_get_supported_types(): string[]
|
|
7464
7464
|
/**
|
|
@@ -11239,7 +11239,7 @@ export interface File {
|
|
|
11239
11239
|
* @param flags set of #GFileCopyFlags
|
|
11240
11240
|
* @param io_priority the [I/O priority][io-priority] of the request
|
|
11241
11241
|
* @param cancellable optional #GCancellable object, %NULL to ignore
|
|
11242
|
-
* @param progress_callback
|
|
11242
|
+
* @param progress_callback function to callback with progress information, or %NULL if progress information is not needed
|
|
11243
11243
|
* @param callback a #GAsyncReadyCallback to call when the request is satisfied
|
|
11244
11244
|
*/
|
|
11245
11245
|
copy_async(destination: File, flags: FileCopyFlags, io_priority: number, cancellable: Cancellable | null, progress_callback: FileProgressCallback | null, callback: AsyncReadyCallback<this> | null): void
|
|
@@ -11263,7 +11263,7 @@ export interface File {
|
|
|
11263
11263
|
* @param flags set of #GFileCopyFlags
|
|
11264
11264
|
* @param io_priority the [I/O priority][io-priority] of the request
|
|
11265
11265
|
* @param cancellable optional #GCancellable object, %NULL to ignore
|
|
11266
|
-
* @param progress_callback
|
|
11266
|
+
* @param progress_callback function to callback with progress information, or %NULL if progress information is not needed
|
|
11267
11267
|
* @returns A Promise of: a %TRUE on success, %FALSE on error.
|
|
11268
11268
|
*/
|
|
11269
11269
|
copy_async(destination: File, flags: FileCopyFlags, io_priority: number, cancellable: Cancellable | null, progress_callback: FileProgressCallback | null): globalThis.Promise<boolean>
|
|
@@ -12265,7 +12265,7 @@ export interface File {
|
|
|
12265
12265
|
* @param flags set of #GFileCopyFlags
|
|
12266
12266
|
* @param io_priority the [I/O priority][io-priority] of the request
|
|
12267
12267
|
* @param cancellable optional #GCancellable object, %NULL to ignore
|
|
12268
|
-
* @param progress_callback
|
|
12268
|
+
* @param progress_callback #GFileProgressCallback function for updates
|
|
12269
12269
|
* @param callback a #GAsyncReadyCallback to call when the request is satisfied
|
|
12270
12270
|
*/
|
|
12271
12271
|
move_async(destination: File, flags: FileCopyFlags, io_priority: number, cancellable: Cancellable | null, progress_callback: FileProgressCallback | null, callback: AsyncReadyCallback<this> | null): void
|
|
@@ -12288,7 +12288,7 @@ export interface File {
|
|
|
12288
12288
|
* @param flags set of #GFileCopyFlags
|
|
12289
12289
|
* @param io_priority the [I/O priority][io-priority] of the request
|
|
12290
12290
|
* @param cancellable optional #GCancellable object, %NULL to ignore
|
|
12291
|
-
* @param progress_callback
|
|
12291
|
+
* @param progress_callback #GFileProgressCallback function for updates
|
|
12292
12292
|
* @returns A Promise of: %TRUE on successful file move, %FALSE otherwise.
|
|
12293
12293
|
*/
|
|
12294
12294
|
move_async(destination: File, flags: FileCopyFlags, io_priority: number, cancellable: Cancellable | null, progress_callback: FileProgressCallback | null): globalThis.Promise<boolean>
|
|
@@ -13495,7 +13495,7 @@ export interface File {
|
|
|
13495
13495
|
* @param flags set of #GFileCopyFlags
|
|
13496
13496
|
* @param io_priority the [I/O priority][io-priority] of the request
|
|
13497
13497
|
* @param cancellable optional #GCancellable object, %NULL to ignore
|
|
13498
|
-
* @param progress_callback
|
|
13498
|
+
* @param progress_callback function to callback with progress information, or %NULL if progress information is not needed
|
|
13499
13499
|
* @param callback a #GAsyncReadyCallback to call when the request is satisfied
|
|
13500
13500
|
*/
|
|
13501
13501
|
vfunc_copy_async(destination: File, flags: FileCopyFlags, io_priority: number, cancellable: Cancellable | null, progress_callback: FileProgressCallback | null, callback: AsyncReadyCallback<this> | null): void
|
|
@@ -14196,7 +14196,7 @@ export interface File {
|
|
|
14196
14196
|
* @param flags set of #GFileCopyFlags
|
|
14197
14197
|
* @param io_priority the [I/O priority][io-priority] of the request
|
|
14198
14198
|
* @param cancellable optional #GCancellable object, %NULL to ignore
|
|
14199
|
-
* @param progress_callback
|
|
14199
|
+
* @param progress_callback #GFileProgressCallback function for updates
|
|
14200
14200
|
* @param callback a #GAsyncReadyCallback to call when the request is satisfied
|
|
14201
14201
|
*/
|
|
14202
14202
|
vfunc_move_async(destination: File, flags: FileCopyFlags, io_priority: number, cancellable: Cancellable | null, progress_callback: FileProgressCallback | null, callback: AsyncReadyCallback<this> | null): void
|
|
@@ -19344,7 +19344,7 @@ export interface AppLaunchContext {
|
|
|
19344
19344
|
* the child process when `context` is used to launch an application.
|
|
19345
19345
|
* This is a %NULL-terminated array of strings, where each string has
|
|
19346
19346
|
* the form `KEY=VALUE`.
|
|
19347
|
-
* @returns
|
|
19347
|
+
* @returns the child's environment
|
|
19348
19348
|
*/
|
|
19349
19349
|
get_environment(): string[]
|
|
19350
19350
|
/**
|
|
@@ -19970,7 +19970,7 @@ export interface Application extends ActionGroup, ActionMap {
|
|
|
19970
19970
|
* should not be used from applications like editors that need precise
|
|
19971
19971
|
* control over when processes invoked via the commandline will exit and
|
|
19972
19972
|
* what their exit status will be.
|
|
19973
|
-
* @param argv
|
|
19973
|
+
* @param argv the argv from main(), or %NULL
|
|
19974
19974
|
* @returns the exit status
|
|
19975
19975
|
*/
|
|
19976
19976
|
run(argv: string[] | null): number
|
|
@@ -20546,7 +20546,7 @@ export interface ApplicationCommandLine {
|
|
|
20546
20546
|
*
|
|
20547
20547
|
* The return value is %NULL-terminated and should be freed using
|
|
20548
20548
|
* g_strfreev().
|
|
20549
|
-
* @returns
|
|
20549
|
+
* @returns the string array containing the arguments (the argv)
|
|
20550
20550
|
*/
|
|
20551
20551
|
get_arguments(): string[]
|
|
20552
20552
|
/**
|
|
@@ -20577,7 +20577,7 @@ export interface ApplicationCommandLine {
|
|
|
20577
20577
|
*
|
|
20578
20578
|
* See g_application_command_line_getenv() if you are only interested
|
|
20579
20579
|
* in the value of a single environment variable.
|
|
20580
|
-
* @returns
|
|
20580
|
+
* @returns the environment strings, or %NULL if they were not sent
|
|
20581
20581
|
*/
|
|
20582
20582
|
get_environ(): string[]
|
|
20583
20583
|
/**
|
|
@@ -21014,7 +21014,7 @@ export interface BufferedInputStream extends Seekable {
|
|
|
21014
21014
|
* Returns the buffer with the currently available bytes. The returned
|
|
21015
21015
|
* buffer must not be modified and will become invalid when reading from
|
|
21016
21016
|
* the stream or filling the buffer.
|
|
21017
|
-
* @returns
|
|
21017
|
+
* @returns read-only buffer
|
|
21018
21018
|
*/
|
|
21019
21019
|
peek_buffer(): Uint8Array
|
|
21020
21020
|
/**
|
|
@@ -25947,7 +25947,7 @@ export interface DataInputStream extends Seekable {
|
|
|
25947
25947
|
* triggering the cancellable object from another thread. If the operation
|
|
25948
25948
|
* was cancelled, the error %G_IO_ERROR_CANCELLED will be returned.
|
|
25949
25949
|
* @param cancellable optional #GCancellable object, %NULL to ignore.
|
|
25950
|
-
* @returns
|
|
25950
|
+
* @returns a NUL terminated byte array with the line that was read in (without the newlines). Set @length to a #gsize to get the length of the read line. On an error, it will return %NULL and @error will be set. If there's no content to read, it will still return %NULL, but @error won't be set.
|
|
25951
25951
|
*/
|
|
25952
25952
|
read_line(cancellable: Cancellable | null): [ /* returnType */ Uint8Array | null, /* length */ number ]
|
|
25953
25953
|
/**
|
|
@@ -25976,7 +25976,7 @@ export interface DataInputStream extends Seekable {
|
|
|
25976
25976
|
* the result of the operation.
|
|
25977
25977
|
* @param io_priority the [I/O priority][io-priority] of the request
|
|
25978
25978
|
* @param cancellable optional #GCancellable object, %NULL to ignore.
|
|
25979
|
-
* @returns A Promise of:
|
|
25979
|
+
* @returns A Promise of: a NUL-terminated byte array with the line that was read in (without the newlines). Set @length to a #gsize to get the length of the read line. On an error, it will return %NULL and @error will be set. If there's no content to read, it will still return %NULL, but @error won't be set.
|
|
25980
25980
|
*/
|
|
25981
25981
|
read_line_async(io_priority: number, cancellable: Cancellable | null): globalThis.Promise</* length */ number>
|
|
25982
25982
|
/**
|
|
@@ -25985,7 +25985,7 @@ export interface DataInputStream extends Seekable {
|
|
|
25985
25985
|
* string encoding in g_data_input_stream_read_line() applies here as
|
|
25986
25986
|
* well.
|
|
25987
25987
|
* @param result the #GAsyncResult that was provided to the callback.
|
|
25988
|
-
* @returns
|
|
25988
|
+
* @returns a NUL-terminated byte array with the line that was read in (without the newlines). Set @length to a #gsize to get the length of the read line. On an error, it will return %NULL and @error will be set. If there's no content to read, it will still return %NULL, but @error won't be set.
|
|
25989
25989
|
*/
|
|
25990
25990
|
read_line_finish(result: AsyncResult): [ /* returnType */ Uint8Array | null, /* length */ number ]
|
|
25991
25991
|
/**
|
|
@@ -26798,7 +26798,7 @@ export interface DesktopAppInfo extends AppInfo {
|
|
|
26798
26798
|
*
|
|
26799
26799
|
* The `key` is looked up in the "Desktop Entry" group.
|
|
26800
26800
|
* @param key the key to look up
|
|
26801
|
-
* @returns
|
|
26801
|
+
* @returns a %NULL-terminated string array or %NULL if the specified key cannot be found. The array should be freed with g_strfreev().
|
|
26802
26802
|
*/
|
|
26803
26803
|
get_string_list(key: string): string[]
|
|
26804
26804
|
/**
|
|
@@ -41616,7 +41616,7 @@ export interface SubprocessLauncher {
|
|
|
41616
41616
|
*
|
|
41617
41617
|
* On UNIX, all strings in this array can be arbitrary byte strings.
|
|
41618
41618
|
* On Windows, they should be in UTF-8.
|
|
41619
|
-
* @param env
|
|
41619
|
+
* @param env the replacement environment
|
|
41620
41620
|
*/
|
|
41621
41621
|
set_environ(env: string[]): void
|
|
41622
41622
|
/**
|
package/gio-2.0.d.ts
CHANGED
|
@@ -5420,7 +5420,7 @@ function unix_mount_points_changed_since(time: number): boolean
|
|
|
5420
5420
|
* If `time_read` is set, it will be filled with the mount timestamp,
|
|
5421
5421
|
* allowing for checking if the mounts have changed with
|
|
5422
5422
|
* g_unix_mount_points_changed_since().
|
|
5423
|
-
* @returns
|
|
5423
|
+
* @returns a #GList of the UNIX mountpoints.
|
|
5424
5424
|
*/
|
|
5425
5425
|
function unix_mount_points_get(): [ /* returnType */ UnixMountPoint[], /* time_read */ number ]
|
|
5426
5426
|
/**
|
|
@@ -5434,7 +5434,7 @@ function unix_mounts_changed_since(time: number): boolean
|
|
|
5434
5434
|
* If `time_read` is set, it will be filled with the mount
|
|
5435
5435
|
* timestamp, allowing for checking if the mounts have changed
|
|
5436
5436
|
* with g_unix_mounts_changed_since().
|
|
5437
|
-
* @returns
|
|
5437
|
+
* @returns a #GList of the UNIX mounts.
|
|
5438
5438
|
*/
|
|
5439
5439
|
function unix_mounts_get(): [ /* returnType */ UnixMountEntry[], /* time_read */ number ]
|
|
5440
5440
|
/**
|
|
@@ -7213,7 +7213,7 @@ interface AppInfo {
|
|
|
7213
7213
|
* This function does not take in consideration associations added with
|
|
7214
7214
|
* g_app_info_add_supports_type(), but only those exported directly by
|
|
7215
7215
|
* the application.
|
|
7216
|
-
* @returns
|
|
7216
|
+
* @returns a list of content types.
|
|
7217
7217
|
*/
|
|
7218
7218
|
get_supported_types(): string[]
|
|
7219
7219
|
/**
|
|
@@ -7460,7 +7460,7 @@ interface AppInfo {
|
|
|
7460
7460
|
* g_app_info_add_supports_type(), but only those exported directly by
|
|
7461
7461
|
* the application.
|
|
7462
7462
|
* @virtual
|
|
7463
|
-
* @returns
|
|
7463
|
+
* @returns a list of content types.
|
|
7464
7464
|
*/
|
|
7465
7465
|
vfunc_get_supported_types(): string[]
|
|
7466
7466
|
/**
|
|
@@ -11241,7 +11241,7 @@ interface File {
|
|
|
11241
11241
|
* @param flags set of #GFileCopyFlags
|
|
11242
11242
|
* @param io_priority the [I/O priority][io-priority] of the request
|
|
11243
11243
|
* @param cancellable optional #GCancellable object, %NULL to ignore
|
|
11244
|
-
* @param progress_callback
|
|
11244
|
+
* @param progress_callback function to callback with progress information, or %NULL if progress information is not needed
|
|
11245
11245
|
* @param callback a #GAsyncReadyCallback to call when the request is satisfied
|
|
11246
11246
|
*/
|
|
11247
11247
|
copy_async(destination: File, flags: FileCopyFlags, io_priority: number, cancellable: Cancellable | null, progress_callback: FileProgressCallback | null, callback: AsyncReadyCallback<this> | null): void
|
|
@@ -11265,7 +11265,7 @@ interface File {
|
|
|
11265
11265
|
* @param flags set of #GFileCopyFlags
|
|
11266
11266
|
* @param io_priority the [I/O priority][io-priority] of the request
|
|
11267
11267
|
* @param cancellable optional #GCancellable object, %NULL to ignore
|
|
11268
|
-
* @param progress_callback
|
|
11268
|
+
* @param progress_callback function to callback with progress information, or %NULL if progress information is not needed
|
|
11269
11269
|
* @returns A Promise of: a %TRUE on success, %FALSE on error.
|
|
11270
11270
|
*/
|
|
11271
11271
|
copy_async(destination: File, flags: FileCopyFlags, io_priority: number, cancellable: Cancellable | null, progress_callback: FileProgressCallback | null): globalThis.Promise<boolean>
|
|
@@ -12267,7 +12267,7 @@ interface File {
|
|
|
12267
12267
|
* @param flags set of #GFileCopyFlags
|
|
12268
12268
|
* @param io_priority the [I/O priority][io-priority] of the request
|
|
12269
12269
|
* @param cancellable optional #GCancellable object, %NULL to ignore
|
|
12270
|
-
* @param progress_callback
|
|
12270
|
+
* @param progress_callback #GFileProgressCallback function for updates
|
|
12271
12271
|
* @param callback a #GAsyncReadyCallback to call when the request is satisfied
|
|
12272
12272
|
*/
|
|
12273
12273
|
move_async(destination: File, flags: FileCopyFlags, io_priority: number, cancellable: Cancellable | null, progress_callback: FileProgressCallback | null, callback: AsyncReadyCallback<this> | null): void
|
|
@@ -12290,7 +12290,7 @@ interface File {
|
|
|
12290
12290
|
* @param flags set of #GFileCopyFlags
|
|
12291
12291
|
* @param io_priority the [I/O priority][io-priority] of the request
|
|
12292
12292
|
* @param cancellable optional #GCancellable object, %NULL to ignore
|
|
12293
|
-
* @param progress_callback
|
|
12293
|
+
* @param progress_callback #GFileProgressCallback function for updates
|
|
12294
12294
|
* @returns A Promise of: %TRUE on successful file move, %FALSE otherwise.
|
|
12295
12295
|
*/
|
|
12296
12296
|
move_async(destination: File, flags: FileCopyFlags, io_priority: number, cancellable: Cancellable | null, progress_callback: FileProgressCallback | null): globalThis.Promise<boolean>
|
|
@@ -13497,7 +13497,7 @@ interface File {
|
|
|
13497
13497
|
* @param flags set of #GFileCopyFlags
|
|
13498
13498
|
* @param io_priority the [I/O priority][io-priority] of the request
|
|
13499
13499
|
* @param cancellable optional #GCancellable object, %NULL to ignore
|
|
13500
|
-
* @param progress_callback
|
|
13500
|
+
* @param progress_callback function to callback with progress information, or %NULL if progress information is not needed
|
|
13501
13501
|
* @param callback a #GAsyncReadyCallback to call when the request is satisfied
|
|
13502
13502
|
*/
|
|
13503
13503
|
vfunc_copy_async(destination: File, flags: FileCopyFlags, io_priority: number, cancellable: Cancellable | null, progress_callback: FileProgressCallback | null, callback: AsyncReadyCallback<this> | null): void
|
|
@@ -14198,7 +14198,7 @@ interface File {
|
|
|
14198
14198
|
* @param flags set of #GFileCopyFlags
|
|
14199
14199
|
* @param io_priority the [I/O priority][io-priority] of the request
|
|
14200
14200
|
* @param cancellable optional #GCancellable object, %NULL to ignore
|
|
14201
|
-
* @param progress_callback
|
|
14201
|
+
* @param progress_callback #GFileProgressCallback function for updates
|
|
14202
14202
|
* @param callback a #GAsyncReadyCallback to call when the request is satisfied
|
|
14203
14203
|
*/
|
|
14204
14204
|
vfunc_move_async(destination: File, flags: FileCopyFlags, io_priority: number, cancellable: Cancellable | null, progress_callback: FileProgressCallback | null, callback: AsyncReadyCallback<this> | null): void
|
|
@@ -19346,7 +19346,7 @@ interface AppLaunchContext {
|
|
|
19346
19346
|
* the child process when `context` is used to launch an application.
|
|
19347
19347
|
* This is a %NULL-terminated array of strings, where each string has
|
|
19348
19348
|
* the form `KEY=VALUE`.
|
|
19349
|
-
* @returns
|
|
19349
|
+
* @returns the child's environment
|
|
19350
19350
|
*/
|
|
19351
19351
|
get_environment(): string[]
|
|
19352
19352
|
/**
|
|
@@ -19972,7 +19972,7 @@ interface Application extends ActionGroup, ActionMap {
|
|
|
19972
19972
|
* should not be used from applications like editors that need precise
|
|
19973
19973
|
* control over when processes invoked via the commandline will exit and
|
|
19974
19974
|
* what their exit status will be.
|
|
19975
|
-
* @param argv
|
|
19975
|
+
* @param argv the argv from main(), or %NULL
|
|
19976
19976
|
* @returns the exit status
|
|
19977
19977
|
*/
|
|
19978
19978
|
run(argv: string[] | null): number
|
|
@@ -20548,7 +20548,7 @@ interface ApplicationCommandLine {
|
|
|
20548
20548
|
*
|
|
20549
20549
|
* The return value is %NULL-terminated and should be freed using
|
|
20550
20550
|
* g_strfreev().
|
|
20551
|
-
* @returns
|
|
20551
|
+
* @returns the string array containing the arguments (the argv)
|
|
20552
20552
|
*/
|
|
20553
20553
|
get_arguments(): string[]
|
|
20554
20554
|
/**
|
|
@@ -20579,7 +20579,7 @@ interface ApplicationCommandLine {
|
|
|
20579
20579
|
*
|
|
20580
20580
|
* See g_application_command_line_getenv() if you are only interested
|
|
20581
20581
|
* in the value of a single environment variable.
|
|
20582
|
-
* @returns
|
|
20582
|
+
* @returns the environment strings, or %NULL if they were not sent
|
|
20583
20583
|
*/
|
|
20584
20584
|
get_environ(): string[]
|
|
20585
20585
|
/**
|
|
@@ -21016,7 +21016,7 @@ interface BufferedInputStream extends Seekable {
|
|
|
21016
21016
|
* Returns the buffer with the currently available bytes. The returned
|
|
21017
21017
|
* buffer must not be modified and will become invalid when reading from
|
|
21018
21018
|
* the stream or filling the buffer.
|
|
21019
|
-
* @returns
|
|
21019
|
+
* @returns read-only buffer
|
|
21020
21020
|
*/
|
|
21021
21021
|
peek_buffer(): Uint8Array
|
|
21022
21022
|
/**
|
|
@@ -25949,7 +25949,7 @@ interface DataInputStream extends Seekable {
|
|
|
25949
25949
|
* triggering the cancellable object from another thread. If the operation
|
|
25950
25950
|
* was cancelled, the error %G_IO_ERROR_CANCELLED will be returned.
|
|
25951
25951
|
* @param cancellable optional #GCancellable object, %NULL to ignore.
|
|
25952
|
-
* @returns
|
|
25952
|
+
* @returns a NUL terminated byte array with the line that was read in (without the newlines). Set @length to a #gsize to get the length of the read line. On an error, it will return %NULL and @error will be set. If there's no content to read, it will still return %NULL, but @error won't be set.
|
|
25953
25953
|
*/
|
|
25954
25954
|
read_line(cancellable: Cancellable | null): [ /* returnType */ Uint8Array | null, /* length */ number ]
|
|
25955
25955
|
/**
|
|
@@ -25978,7 +25978,7 @@ interface DataInputStream extends Seekable {
|
|
|
25978
25978
|
* the result of the operation.
|
|
25979
25979
|
* @param io_priority the [I/O priority][io-priority] of the request
|
|
25980
25980
|
* @param cancellable optional #GCancellable object, %NULL to ignore.
|
|
25981
|
-
* @returns A Promise of:
|
|
25981
|
+
* @returns A Promise of: a NUL-terminated byte array with the line that was read in (without the newlines). Set @length to a #gsize to get the length of the read line. On an error, it will return %NULL and @error will be set. If there's no content to read, it will still return %NULL, but @error won't be set.
|
|
25982
25982
|
*/
|
|
25983
25983
|
read_line_async(io_priority: number, cancellable: Cancellable | null): globalThis.Promise</* length */ number>
|
|
25984
25984
|
/**
|
|
@@ -25987,7 +25987,7 @@ interface DataInputStream extends Seekable {
|
|
|
25987
25987
|
* string encoding in g_data_input_stream_read_line() applies here as
|
|
25988
25988
|
* well.
|
|
25989
25989
|
* @param result the #GAsyncResult that was provided to the callback.
|
|
25990
|
-
* @returns
|
|
25990
|
+
* @returns a NUL-terminated byte array with the line that was read in (without the newlines). Set @length to a #gsize to get the length of the read line. On an error, it will return %NULL and @error will be set. If there's no content to read, it will still return %NULL, but @error won't be set.
|
|
25991
25991
|
*/
|
|
25992
25992
|
read_line_finish(result: AsyncResult): [ /* returnType */ Uint8Array | null, /* length */ number ]
|
|
25993
25993
|
/**
|
|
@@ -26800,7 +26800,7 @@ interface DesktopAppInfo extends AppInfo {
|
|
|
26800
26800
|
*
|
|
26801
26801
|
* The `key` is looked up in the "Desktop Entry" group.
|
|
26802
26802
|
* @param key the key to look up
|
|
26803
|
-
* @returns
|
|
26803
|
+
* @returns a %NULL-terminated string array or %NULL if the specified key cannot be found. The array should be freed with g_strfreev().
|
|
26804
26804
|
*/
|
|
26805
26805
|
get_string_list(key: string): string[]
|
|
26806
26806
|
/**
|
|
@@ -41618,7 +41618,7 @@ interface SubprocessLauncher {
|
|
|
41618
41618
|
*
|
|
41619
41619
|
* On UNIX, all strings in this array can be arbitrary byte strings.
|
|
41620
41620
|
* On Windows, they should be in UTF-8.
|
|
41621
|
-
* @param env
|
|
41621
|
+
* @param env the replacement environment
|
|
41622
41622
|
*/
|
|
41623
41623
|
set_environ(env: string[]): void
|
|
41624
41624
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/gio-2.0",
|
|
3
|
-
"version": "2.78.0-3.
|
|
3
|
+
"version": "2.78.0-3.3.0",
|
|
4
4
|
"description": "GJS TypeScript type definitions for Gio-2.0, generated from library version 2.78.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "gio-2.0.js",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit gio-2.0.d.cts"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@girs/gjs": "^3.
|
|
35
|
-
"@girs/glib-2.0": "^2.78.0-3.
|
|
36
|
-
"@girs/gobject-2.0": "^2.78.0-3.
|
|
34
|
+
"@girs/gjs": "^3.3.0",
|
|
35
|
+
"@girs/glib-2.0": "^2.78.0-3.3.0",
|
|
36
|
+
"@girs/gobject-2.0": "^2.78.0-3.3.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"typescript": "*"
|