@girs/grlnet-0.2 0.2.0-3.2.6 → 0.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/grlnet-0.2)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for GrlNet-0.2, generated from library version 0.2.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.6.
8
+ GJS TypeScript type definitions for GrlNet-0.2, generated from library version 0.2.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.7.
9
9
 
10
10
 
11
11
  ## Install
package/grlnet-0.2.d.cts CHANGED
@@ -112,7 +112,7 @@ export interface Wc {
112
112
  * @param cancellable a #GCancellable instance or %NULL to ignore
113
113
  * @param callback The callback when the result is ready
114
114
  */
115
- request_async(uri: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
115
+ request_async(uri: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
116
116
 
117
117
  // Overloads of request_async
118
118
 
@@ -125,7 +125,7 @@ export interface Wc {
125
125
  * @param cancellable a #GCancellable instance or %NULL to ignore
126
126
  * @returns A Promise of: %TRUE if the request was successfull. If %FALSE an error occurred.
127
127
  */
128
- request_async(uri: string | null, cancellable: Gio.Cancellable | null): globalThis.Promise<[ /* content */ string | null, /* length */ number ]>
128
+ request_async(uri: string, cancellable: Gio.Cancellable | null): globalThis.Promise<[ /* content */ string, /* length */ number ]>
129
129
  /**
130
130
  * Finishes an asynchronous load of the file's contents.
131
131
  * The contents are placed in contents, and length is set to the size of the
@@ -136,7 +136,7 @@ export interface Wc {
136
136
  * @param result The result of the request
137
137
  * @returns %TRUE if the request was successfull. If %FALSE an error occurred.
138
138
  */
139
- request_finish(result: Gio.AsyncResult): [ /* returnType */ boolean, /* content */ string | null, /* length */ number ]
139
+ request_finish(result: Gio.AsyncResult): [ /* returnType */ boolean, /* content */ string, /* length */ number ]
140
140
  /**
141
141
  * Request the fetching of a web resource given the `uri`. This request is
142
142
  * asynchronous, thus the result will be returned within the `callback`.
@@ -145,7 +145,7 @@ export interface Wc {
145
145
  * @param cancellable a #GCancellable instance or %NULL to ignore
146
146
  * @param callback The callback when the result is ready
147
147
  */
148
- request_with_headers_async(uri: string | null, headers: GLib.HashTable | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
148
+ request_with_headers_async(uri: string, headers: GLib.HashTable | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
149
149
  /**
150
150
  * Sets if cache must be used. Note that this will only work if caching is
151
151
  * supporting. If sets %TRUE, a new cache will be created. If sets to %FALSE,
package/grlnet-0.2.d.ts CHANGED
@@ -114,7 +114,7 @@ interface Wc {
114
114
  * @param cancellable a #GCancellable instance or %NULL to ignore
115
115
  * @param callback The callback when the result is ready
116
116
  */
117
- request_async(uri: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
117
+ request_async(uri: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
118
118
 
119
119
  // Overloads of request_async
120
120
 
@@ -127,7 +127,7 @@ interface Wc {
127
127
  * @param cancellable a #GCancellable instance or %NULL to ignore
128
128
  * @returns A Promise of: %TRUE if the request was successfull. If %FALSE an error occurred.
129
129
  */
130
- request_async(uri: string | null, cancellable: Gio.Cancellable | null): globalThis.Promise<[ /* content */ string | null, /* length */ number ]>
130
+ request_async(uri: string, cancellable: Gio.Cancellable | null): globalThis.Promise<[ /* content */ string, /* length */ number ]>
131
131
  /**
132
132
  * Finishes an asynchronous load of the file's contents.
133
133
  * The contents are placed in contents, and length is set to the size of the
@@ -138,7 +138,7 @@ interface Wc {
138
138
  * @param result The result of the request
139
139
  * @returns %TRUE if the request was successfull. If %FALSE an error occurred.
140
140
  */
141
- request_finish(result: Gio.AsyncResult): [ /* returnType */ boolean, /* content */ string | null, /* length */ number ]
141
+ request_finish(result: Gio.AsyncResult): [ /* returnType */ boolean, /* content */ string, /* length */ number ]
142
142
  /**
143
143
  * Request the fetching of a web resource given the `uri`. This request is
144
144
  * asynchronous, thus the result will be returned within the `callback`.
@@ -147,7 +147,7 @@ interface Wc {
147
147
  * @param cancellable a #GCancellable instance or %NULL to ignore
148
148
  * @param callback The callback when the result is ready
149
149
  */
150
- request_with_headers_async(uri: string | null, headers: GLib.HashTable | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
150
+ request_with_headers_async(uri: string, headers: GLib.HashTable | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
151
151
  /**
152
152
  * Sets if cache must be used. Note that this will only work if caching is
153
153
  * supporting. If sets %TRUE, a new cache will be created. If sets to %FALSE,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/grlnet-0.2",
3
- "version": "0.2.0-3.2.6",
3
+ "version": "0.2.0-3.2.7",
4
4
  "description": "GJS TypeScript type definitions for GrlNet-0.2, generated from library version 0.2.0",
5
5
  "type": "module",
6
6
  "module": "grlnet-0.2.js",
@@ -25,11 +25,11 @@
25
25
  "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit grlnet-0.2.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",
32
- "@girs/soup-2.4": "^2.74.3-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
+ "@girs/soup-2.4": "^2.74.3-3.2.7"
33
33
  },
34
34
  "devDependencies": {
35
35
  "typescript": "*"