@girs/grlnet-0.3 0.3.0-3.0.0-beta.12
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 +33 -0
- package/grlnet-0.3.cjs +9 -0
- package/grlnet-0.3.d.cts +248 -0
- package/grlnet-0.3.d.ts +253 -0
- package/grlnet-0.3.js +8 -0
- package/package.json +55 -0
- package/tsconfig.doc.json +19 -0
package/README.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
|
|
2
|
+
# GrlNet-0.3
|
|
3
|
+
|
|
4
|
+
GJS TypeScript type definitions for GrlNet-0.3, generated from library version 0.3.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gjs) v3.0.0-beta.12.
|
|
5
|
+
|
|
6
|
+
Network classes for Grilo
|
|
7
|
+
|
|
8
|
+
## Install
|
|
9
|
+
|
|
10
|
+
To use this type definitions, install them with NPM like this:
|
|
11
|
+
```bash
|
|
12
|
+
npm install @girs/grlnet-0.3
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
|
|
17
|
+
You can import this package into your project like this:
|
|
18
|
+
```ts
|
|
19
|
+
import GrlNet from '@girs/grlnet-0.3';
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Or if you prefer CommonJS, you can also use this:
|
|
23
|
+
```ts
|
|
24
|
+
const GrlNet = require('@girs/grlnet-0.3');
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
If you use [ambient modules](https://github.com/gjsify/ts-for-gir/tree/main/packages/cli#ambient-modules), you can also import this module like you would do this in JavaScript:
|
|
28
|
+
|
|
29
|
+
```ts
|
|
30
|
+
import GrlNet from 'gi://GrlNet?version=0.3';
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Depending on your project configuration, it is recommended to use a bundler like [esbuild](https://esbuild.github.io/). You can find examples using different bundlers [here](https://github.com/gjsify/ts-for-gir/tree/main/examples).
|
package/grlnet-0.3.cjs
ADDED
package/grlnet-0.3.d.cts
ADDED
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
|
|
2
|
+
/*
|
|
3
|
+
* Type Definitions for Gjs (https://gjs.guide/)
|
|
4
|
+
*
|
|
5
|
+
* These type definitions are automatically generated, do not edit them by hand.
|
|
6
|
+
* If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gjs
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* GrlNet-0.3
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import type Soup from '@girs/soup-3.0';
|
|
13
|
+
import type Gio from '@girs/gio-2.0';
|
|
14
|
+
import type GObject from '@girs/gobject-2.0';
|
|
15
|
+
import type GLib from '@girs/glib-2.0';
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* These constants identify all the available errors managed by
|
|
19
|
+
* the web client.
|
|
20
|
+
*/
|
|
21
|
+
export enum WcError {
|
|
22
|
+
/**
|
|
23
|
+
* Deprecated. For generic errors, you
|
|
24
|
+
* should check for G_IO_ERROR_FAILED from G_IO_ERROR domain.
|
|
25
|
+
*/
|
|
26
|
+
UNAVAILABLE,
|
|
27
|
+
/**
|
|
28
|
+
* Invalid URI or header
|
|
29
|
+
*/
|
|
30
|
+
PROTOCOL_ERROR,
|
|
31
|
+
/**
|
|
32
|
+
* Required authentication
|
|
33
|
+
*/
|
|
34
|
+
AUTHENTICATION_REQUIRED,
|
|
35
|
+
/**
|
|
36
|
+
* Request resource not found
|
|
37
|
+
*/
|
|
38
|
+
NOT_FOUND,
|
|
39
|
+
/**
|
|
40
|
+
* The entry has been modified since is was
|
|
41
|
+
* downloaded
|
|
42
|
+
*/
|
|
43
|
+
CONFLICT,
|
|
44
|
+
/**
|
|
45
|
+
* TBD
|
|
46
|
+
*/
|
|
47
|
+
FORBIDDEN,
|
|
48
|
+
/**
|
|
49
|
+
* Cannot connect to the server
|
|
50
|
+
*/
|
|
51
|
+
NETWORK_ERROR,
|
|
52
|
+
/**
|
|
53
|
+
* Deprecated. You should check for
|
|
54
|
+
* G_IO_ERROR_PROXY_FAILED from G_IO_ERROR domain.
|
|
55
|
+
*/
|
|
56
|
+
PROXY_ERROR,
|
|
57
|
+
/**
|
|
58
|
+
* Deprecated. You should check for
|
|
59
|
+
* G_IO_ERROR_CANCELLED from G_IO_ERROR domain.
|
|
60
|
+
*/
|
|
61
|
+
CANCELLED,
|
|
62
|
+
}
|
|
63
|
+
export module Wc {
|
|
64
|
+
|
|
65
|
+
// Constructor properties interface
|
|
66
|
+
|
|
67
|
+
export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
68
|
+
|
|
69
|
+
// Own constructor properties of GrlNet-0.3.GrlNet.Wc
|
|
70
|
+
|
|
71
|
+
cache?: boolean | null
|
|
72
|
+
cache_size?: number | null
|
|
73
|
+
loglevel?: number | null
|
|
74
|
+
throttling?: number | null
|
|
75
|
+
user_agent?: string | null
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export interface Wc {
|
|
81
|
+
|
|
82
|
+
// Own properties of GrlNet-0.3.GrlNet.Wc
|
|
83
|
+
|
|
84
|
+
cache: boolean
|
|
85
|
+
cache_size: number
|
|
86
|
+
loglevel: number
|
|
87
|
+
throttling: number
|
|
88
|
+
user_agent: string | null
|
|
89
|
+
|
|
90
|
+
// Owm methods of GrlNet-0.3.GrlNet.Wc
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* This method will flush all the pending request in the queue.
|
|
94
|
+
*/
|
|
95
|
+
flush_delayed_requests(): void
|
|
96
|
+
/**
|
|
97
|
+
* Request the fetching of a web resource given the `uri`. This request is
|
|
98
|
+
* asynchronous, thus the result will be returned within the `callback`.
|
|
99
|
+
* @param uri The URI of the resource to request
|
|
100
|
+
* @param cancellable a #GCancellable instance or %NULL to ignore
|
|
101
|
+
* @param callback The callback when the result is ready
|
|
102
|
+
*/
|
|
103
|
+
request_async(uri: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
104
|
+
/**
|
|
105
|
+
* Finishes an asynchronous load of the file's contents.
|
|
106
|
+
* The contents are placed in contents, and length is set to the size of the
|
|
107
|
+
* contents string.
|
|
108
|
+
*
|
|
109
|
+
* The content address will be invalidated at the next request. So if you
|
|
110
|
+
* want to keep it, please copy it into another address.
|
|
111
|
+
* @param result The result of the request
|
|
112
|
+
* @returns %TRUE if the request was successfull. If %FALSE an error occurred.
|
|
113
|
+
*/
|
|
114
|
+
request_finish(result: Gio.AsyncResult): [ /* returnType */ boolean, /* content */ Uint8Array ]
|
|
115
|
+
/**
|
|
116
|
+
* Request the fetching of a web resource given the `uri`. This request is
|
|
117
|
+
* asynchronous, thus the result will be returned within the `callback`.
|
|
118
|
+
* @param uri The URI of the resource to request
|
|
119
|
+
* @param headers a set of additional HTTP headers for this request or %NULL to ignore
|
|
120
|
+
* @param cancellable a #GCancellable instance or %NULL to ignore
|
|
121
|
+
* @param callback The callback when the result is ready
|
|
122
|
+
*/
|
|
123
|
+
request_with_headers_async(uri: string | null, headers: GLib.HashTable | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
124
|
+
/**
|
|
125
|
+
* Sets if cache must be used. Note that this will only work if caching is
|
|
126
|
+
* supporting. If sets %TRUE, a new cache will be created. If sets to %FALSE,
|
|
127
|
+
* current cache is clean and removed.
|
|
128
|
+
* @param use_cache if cache must be used or not
|
|
129
|
+
*/
|
|
130
|
+
set_cache(use_cache: boolean): void
|
|
131
|
+
/**
|
|
132
|
+
* Sets the new maximum size of cache, in Megabytes. Default value is 10. Using
|
|
133
|
+
* 0 means no cache will be done.
|
|
134
|
+
* @param cache_size size of cache (in Mb)
|
|
135
|
+
*/
|
|
136
|
+
set_cache_size(cache_size: number): void
|
|
137
|
+
/**
|
|
138
|
+
* Setting the log level the logger feature is added into
|
|
139
|
+
* the libsoup session.
|
|
140
|
+
* @param log_level the libsoup log level to set [0,3]
|
|
141
|
+
*/
|
|
142
|
+
set_log_level(log_level: number): void
|
|
143
|
+
/**
|
|
144
|
+
* Setting this property, the #GrlNetWc will queue all the requests and
|
|
145
|
+
* will dispatch them with a pause between them of this value.
|
|
146
|
+
*
|
|
147
|
+
* Note that if the grl-net library was compiled against libsoup3, changing
|
|
148
|
+
* the throttling configuration will show a warning if done after the first
|
|
149
|
+
* request.
|
|
150
|
+
* @param throttling the number of seconds to wait between requests
|
|
151
|
+
*/
|
|
152
|
+
set_throttling(throttling: number): void
|
|
153
|
+
|
|
154
|
+
// Class property signals of GrlNet-0.3.GrlNet.Wc
|
|
155
|
+
|
|
156
|
+
connect(sigName: "notify::cache", callback: (($obj: Wc, pspec: GObject.ParamSpec) => void)): number
|
|
157
|
+
connect_after(sigName: "notify::cache", callback: (($obj: Wc, pspec: GObject.ParamSpec) => void)): number
|
|
158
|
+
emit(sigName: "notify::cache", ...args: any[]): void
|
|
159
|
+
connect(sigName: "notify::cache-size", callback: (($obj: Wc, pspec: GObject.ParamSpec) => void)): number
|
|
160
|
+
connect_after(sigName: "notify::cache-size", callback: (($obj: Wc, pspec: GObject.ParamSpec) => void)): number
|
|
161
|
+
emit(sigName: "notify::cache-size", ...args: any[]): void
|
|
162
|
+
connect(sigName: "notify::loglevel", callback: (($obj: Wc, pspec: GObject.ParamSpec) => void)): number
|
|
163
|
+
connect_after(sigName: "notify::loglevel", callback: (($obj: Wc, pspec: GObject.ParamSpec) => void)): number
|
|
164
|
+
emit(sigName: "notify::loglevel", ...args: any[]): void
|
|
165
|
+
connect(sigName: "notify::throttling", callback: (($obj: Wc, pspec: GObject.ParamSpec) => void)): number
|
|
166
|
+
connect_after(sigName: "notify::throttling", callback: (($obj: Wc, pspec: GObject.ParamSpec) => void)): number
|
|
167
|
+
emit(sigName: "notify::throttling", ...args: any[]): void
|
|
168
|
+
connect(sigName: "notify::user-agent", callback: (($obj: Wc, pspec: GObject.ParamSpec) => void)): number
|
|
169
|
+
connect_after(sigName: "notify::user-agent", callback: (($obj: Wc, pspec: GObject.ParamSpec) => void)): number
|
|
170
|
+
emit(sigName: "notify::user-agent", ...args: any[]): void
|
|
171
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
172
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
173
|
+
emit(sigName: string, ...args: any[]): void
|
|
174
|
+
disconnect(id: number): void
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export class Wc extends GObject.Object {
|
|
178
|
+
|
|
179
|
+
// Own properties of GrlNet-0.3.GrlNet.Wc
|
|
180
|
+
|
|
181
|
+
static name: string
|
|
182
|
+
static $gtype: GObject.GType<Wc>
|
|
183
|
+
|
|
184
|
+
// Constructors of GrlNet-0.3.GrlNet.Wc
|
|
185
|
+
|
|
186
|
+
constructor(config?: Wc.ConstructorProperties)
|
|
187
|
+
/**
|
|
188
|
+
* Creates a new #GrlNetWc.
|
|
189
|
+
* @constructor
|
|
190
|
+
* @returns a new allocated instance of #GrlNetWc. Do g_object_unref() after use it.
|
|
191
|
+
*/
|
|
192
|
+
constructor()
|
|
193
|
+
/**
|
|
194
|
+
* Creates a new #GrlNetWc.
|
|
195
|
+
* @constructor
|
|
196
|
+
* @returns a new allocated instance of #GrlNetWc. Do g_object_unref() after use it.
|
|
197
|
+
*/
|
|
198
|
+
static new(): Wc
|
|
199
|
+
_init(config?: Wc.ConstructorProperties): void
|
|
200
|
+
static error_quark(): GLib.Quark
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
export interface WcClass {
|
|
204
|
+
|
|
205
|
+
// Own fields of GrlNet-0.3.GrlNet.WcClass
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* the parent class structure
|
|
209
|
+
* @field
|
|
210
|
+
*/
|
|
211
|
+
parent_class: GObject.ObjectClass
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Grilo web client helper class.
|
|
216
|
+
*
|
|
217
|
+
* It's a simple and thin web client to be used by the sources to download
|
|
218
|
+
* content from Internet.
|
|
219
|
+
* @record
|
|
220
|
+
*/
|
|
221
|
+
export abstract class WcClass {
|
|
222
|
+
|
|
223
|
+
// Own properties of GrlNet-0.3.GrlNet.WcClass
|
|
224
|
+
|
|
225
|
+
static name: string
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
export interface WcPrivate {
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
export class WcPrivate {
|
|
232
|
+
|
|
233
|
+
// Own properties of GrlNet-0.3.GrlNet.WcPrivate
|
|
234
|
+
|
|
235
|
+
static name: string
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* Name of the imported GIR library
|
|
240
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
|
|
241
|
+
*/
|
|
242
|
+
export const __name__: string
|
|
243
|
+
/**
|
|
244
|
+
* Version of the imported GIR library
|
|
245
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
|
|
246
|
+
*/
|
|
247
|
+
export const __version__: string
|
|
248
|
+
// END
|
package/grlnet-0.3.d.ts
ADDED
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
|
|
2
|
+
/*
|
|
3
|
+
* Type Definitions for Gjs (https://gjs.guide/)
|
|
4
|
+
*
|
|
5
|
+
* These type definitions are automatically generated, do not edit them by hand.
|
|
6
|
+
* If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gjs
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* GrlNet-0.3
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import type Soup from '@girs/soup-3.0';
|
|
13
|
+
import type Gio from '@girs/gio-2.0';
|
|
14
|
+
import type GObject from '@girs/gobject-2.0';
|
|
15
|
+
import type GLib from '@girs/glib-2.0';
|
|
16
|
+
|
|
17
|
+
export namespace GrlNet {
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* These constants identify all the available errors managed by
|
|
21
|
+
* the web client.
|
|
22
|
+
*/
|
|
23
|
+
enum WcError {
|
|
24
|
+
/**
|
|
25
|
+
* Deprecated. For generic errors, you
|
|
26
|
+
* should check for G_IO_ERROR_FAILED from G_IO_ERROR domain.
|
|
27
|
+
*/
|
|
28
|
+
UNAVAILABLE,
|
|
29
|
+
/**
|
|
30
|
+
* Invalid URI or header
|
|
31
|
+
*/
|
|
32
|
+
PROTOCOL_ERROR,
|
|
33
|
+
/**
|
|
34
|
+
* Required authentication
|
|
35
|
+
*/
|
|
36
|
+
AUTHENTICATION_REQUIRED,
|
|
37
|
+
/**
|
|
38
|
+
* Request resource not found
|
|
39
|
+
*/
|
|
40
|
+
NOT_FOUND,
|
|
41
|
+
/**
|
|
42
|
+
* The entry has been modified since is was
|
|
43
|
+
* downloaded
|
|
44
|
+
*/
|
|
45
|
+
CONFLICT,
|
|
46
|
+
/**
|
|
47
|
+
* TBD
|
|
48
|
+
*/
|
|
49
|
+
FORBIDDEN,
|
|
50
|
+
/**
|
|
51
|
+
* Cannot connect to the server
|
|
52
|
+
*/
|
|
53
|
+
NETWORK_ERROR,
|
|
54
|
+
/**
|
|
55
|
+
* Deprecated. You should check for
|
|
56
|
+
* G_IO_ERROR_PROXY_FAILED from G_IO_ERROR domain.
|
|
57
|
+
*/
|
|
58
|
+
PROXY_ERROR,
|
|
59
|
+
/**
|
|
60
|
+
* Deprecated. You should check for
|
|
61
|
+
* G_IO_ERROR_CANCELLED from G_IO_ERROR domain.
|
|
62
|
+
*/
|
|
63
|
+
CANCELLED,
|
|
64
|
+
}
|
|
65
|
+
module Wc {
|
|
66
|
+
|
|
67
|
+
// Constructor properties interface
|
|
68
|
+
|
|
69
|
+
interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
70
|
+
|
|
71
|
+
// Own constructor properties of GrlNet-0.3.GrlNet.Wc
|
|
72
|
+
|
|
73
|
+
cache?: boolean | null
|
|
74
|
+
cache_size?: number | null
|
|
75
|
+
loglevel?: number | null
|
|
76
|
+
throttling?: number | null
|
|
77
|
+
user_agent?: string | null
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
interface Wc {
|
|
83
|
+
|
|
84
|
+
// Own properties of GrlNet-0.3.GrlNet.Wc
|
|
85
|
+
|
|
86
|
+
cache: boolean
|
|
87
|
+
cache_size: number
|
|
88
|
+
loglevel: number
|
|
89
|
+
throttling: number
|
|
90
|
+
user_agent: string | null
|
|
91
|
+
|
|
92
|
+
// Owm methods of GrlNet-0.3.GrlNet.Wc
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* This method will flush all the pending request in the queue.
|
|
96
|
+
*/
|
|
97
|
+
flush_delayed_requests(): void
|
|
98
|
+
/**
|
|
99
|
+
* Request the fetching of a web resource given the `uri`. This request is
|
|
100
|
+
* asynchronous, thus the result will be returned within the `callback`.
|
|
101
|
+
* @param uri The URI of the resource to request
|
|
102
|
+
* @param cancellable a #GCancellable instance or %NULL to ignore
|
|
103
|
+
* @param callback The callback when the result is ready
|
|
104
|
+
*/
|
|
105
|
+
request_async(uri: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
106
|
+
/**
|
|
107
|
+
* Finishes an asynchronous load of the file's contents.
|
|
108
|
+
* The contents are placed in contents, and length is set to the size of the
|
|
109
|
+
* contents string.
|
|
110
|
+
*
|
|
111
|
+
* The content address will be invalidated at the next request. So if you
|
|
112
|
+
* want to keep it, please copy it into another address.
|
|
113
|
+
* @param result The result of the request
|
|
114
|
+
* @returns %TRUE if the request was successfull. If %FALSE an error occurred.
|
|
115
|
+
*/
|
|
116
|
+
request_finish(result: Gio.AsyncResult): [ /* returnType */ boolean, /* content */ Uint8Array ]
|
|
117
|
+
/**
|
|
118
|
+
* Request the fetching of a web resource given the `uri`. This request is
|
|
119
|
+
* asynchronous, thus the result will be returned within the `callback`.
|
|
120
|
+
* @param uri The URI of the resource to request
|
|
121
|
+
* @param headers a set of additional HTTP headers for this request or %NULL to ignore
|
|
122
|
+
* @param cancellable a #GCancellable instance or %NULL to ignore
|
|
123
|
+
* @param callback The callback when the result is ready
|
|
124
|
+
*/
|
|
125
|
+
request_with_headers_async(uri: string | null, headers: GLib.HashTable | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
126
|
+
/**
|
|
127
|
+
* Sets if cache must be used. Note that this will only work if caching is
|
|
128
|
+
* supporting. If sets %TRUE, a new cache will be created. If sets to %FALSE,
|
|
129
|
+
* current cache is clean and removed.
|
|
130
|
+
* @param use_cache if cache must be used or not
|
|
131
|
+
*/
|
|
132
|
+
set_cache(use_cache: boolean): void
|
|
133
|
+
/**
|
|
134
|
+
* Sets the new maximum size of cache, in Megabytes. Default value is 10. Using
|
|
135
|
+
* 0 means no cache will be done.
|
|
136
|
+
* @param cache_size size of cache (in Mb)
|
|
137
|
+
*/
|
|
138
|
+
set_cache_size(cache_size: number): void
|
|
139
|
+
/**
|
|
140
|
+
* Setting the log level the logger feature is added into
|
|
141
|
+
* the libsoup session.
|
|
142
|
+
* @param log_level the libsoup log level to set [0,3]
|
|
143
|
+
*/
|
|
144
|
+
set_log_level(log_level: number): void
|
|
145
|
+
/**
|
|
146
|
+
* Setting this property, the #GrlNetWc will queue all the requests and
|
|
147
|
+
* will dispatch them with a pause between them of this value.
|
|
148
|
+
*
|
|
149
|
+
* Note that if the grl-net library was compiled against libsoup3, changing
|
|
150
|
+
* the throttling configuration will show a warning if done after the first
|
|
151
|
+
* request.
|
|
152
|
+
* @param throttling the number of seconds to wait between requests
|
|
153
|
+
*/
|
|
154
|
+
set_throttling(throttling: number): void
|
|
155
|
+
|
|
156
|
+
// Class property signals of GrlNet-0.3.GrlNet.Wc
|
|
157
|
+
|
|
158
|
+
connect(sigName: "notify::cache", callback: (($obj: Wc, pspec: GObject.ParamSpec) => void)): number
|
|
159
|
+
connect_after(sigName: "notify::cache", callback: (($obj: Wc, pspec: GObject.ParamSpec) => void)): number
|
|
160
|
+
emit(sigName: "notify::cache", ...args: any[]): void
|
|
161
|
+
connect(sigName: "notify::cache-size", callback: (($obj: Wc, pspec: GObject.ParamSpec) => void)): number
|
|
162
|
+
connect_after(sigName: "notify::cache-size", callback: (($obj: Wc, pspec: GObject.ParamSpec) => void)): number
|
|
163
|
+
emit(sigName: "notify::cache-size", ...args: any[]): void
|
|
164
|
+
connect(sigName: "notify::loglevel", callback: (($obj: Wc, pspec: GObject.ParamSpec) => void)): number
|
|
165
|
+
connect_after(sigName: "notify::loglevel", callback: (($obj: Wc, pspec: GObject.ParamSpec) => void)): number
|
|
166
|
+
emit(sigName: "notify::loglevel", ...args: any[]): void
|
|
167
|
+
connect(sigName: "notify::throttling", callback: (($obj: Wc, pspec: GObject.ParamSpec) => void)): number
|
|
168
|
+
connect_after(sigName: "notify::throttling", callback: (($obj: Wc, pspec: GObject.ParamSpec) => void)): number
|
|
169
|
+
emit(sigName: "notify::throttling", ...args: any[]): void
|
|
170
|
+
connect(sigName: "notify::user-agent", callback: (($obj: Wc, pspec: GObject.ParamSpec) => void)): number
|
|
171
|
+
connect_after(sigName: "notify::user-agent", callback: (($obj: Wc, pspec: GObject.ParamSpec) => void)): number
|
|
172
|
+
emit(sigName: "notify::user-agent", ...args: any[]): void
|
|
173
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
174
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
175
|
+
emit(sigName: string, ...args: any[]): void
|
|
176
|
+
disconnect(id: number): void
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
class Wc extends GObject.Object {
|
|
180
|
+
|
|
181
|
+
// Own properties of GrlNet-0.3.GrlNet.Wc
|
|
182
|
+
|
|
183
|
+
static name: string
|
|
184
|
+
static $gtype: GObject.GType<Wc>
|
|
185
|
+
|
|
186
|
+
// Constructors of GrlNet-0.3.GrlNet.Wc
|
|
187
|
+
|
|
188
|
+
constructor(config?: Wc.ConstructorProperties)
|
|
189
|
+
/**
|
|
190
|
+
* Creates a new #GrlNetWc.
|
|
191
|
+
* @constructor
|
|
192
|
+
* @returns a new allocated instance of #GrlNetWc. Do g_object_unref() after use it.
|
|
193
|
+
*/
|
|
194
|
+
constructor()
|
|
195
|
+
/**
|
|
196
|
+
* Creates a new #GrlNetWc.
|
|
197
|
+
* @constructor
|
|
198
|
+
* @returns a new allocated instance of #GrlNetWc. Do g_object_unref() after use it.
|
|
199
|
+
*/
|
|
200
|
+
static new(): Wc
|
|
201
|
+
_init(config?: Wc.ConstructorProperties): void
|
|
202
|
+
static error_quark(): GLib.Quark
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
interface WcClass {
|
|
206
|
+
|
|
207
|
+
// Own fields of GrlNet-0.3.GrlNet.WcClass
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* the parent class structure
|
|
211
|
+
* @field
|
|
212
|
+
*/
|
|
213
|
+
parent_class: GObject.ObjectClass
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* Grilo web client helper class.
|
|
218
|
+
*
|
|
219
|
+
* It's a simple and thin web client to be used by the sources to download
|
|
220
|
+
* content from Internet.
|
|
221
|
+
* @record
|
|
222
|
+
*/
|
|
223
|
+
abstract class WcClass {
|
|
224
|
+
|
|
225
|
+
// Own properties of GrlNet-0.3.GrlNet.WcClass
|
|
226
|
+
|
|
227
|
+
static name: string
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
interface WcPrivate {
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
class WcPrivate {
|
|
234
|
+
|
|
235
|
+
// Own properties of GrlNet-0.3.GrlNet.WcPrivate
|
|
236
|
+
|
|
237
|
+
static name: string
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* Name of the imported GIR library
|
|
242
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
|
|
243
|
+
*/
|
|
244
|
+
const __name__: string
|
|
245
|
+
/**
|
|
246
|
+
* Version of the imported GIR library
|
|
247
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
|
|
248
|
+
*/
|
|
249
|
+
const __version__: string
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
export default GrlNet;
|
|
253
|
+
// END
|
package/grlnet-0.3.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@girs/grlnet-0.3",
|
|
3
|
+
"version": "0.3.0-3.0.0-beta.12",
|
|
4
|
+
"description": "GJS TypeScript type definitions for GrlNet-0.3, generated from library version 0.3.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"module": "grlnet-0.3.js",
|
|
7
|
+
"main": "grlnet-0.3.js",
|
|
8
|
+
"typedoc": {
|
|
9
|
+
"entryPoint": "./grlnet-0.3.d.ts",
|
|
10
|
+
"readmeFile": "./README.md",
|
|
11
|
+
"displayName": "GrlNet-0.3",
|
|
12
|
+
"tsconfig": "./tsconfig.doc.json"
|
|
13
|
+
},
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"import": {
|
|
17
|
+
"types": "./grlnet-0.3.d.ts",
|
|
18
|
+
"default": "./grlnet-0.3.js"
|
|
19
|
+
},
|
|
20
|
+
"require": {
|
|
21
|
+
"types": "./grlnet-0.3.d.cts",
|
|
22
|
+
"default": "./grlnet-0.3.cjs"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"scripts": {
|
|
27
|
+
"test": "yarn test:esm && yarn test:cjs",
|
|
28
|
+
"test:esm": "tsc --noEmit grlnet-0.3.d.ts",
|
|
29
|
+
"test:cjs": "tsc --noEmit grlnet-0.3.d.cts"
|
|
30
|
+
},
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"@girs/gio-2.0": "^2.75.1-3.0.0-beta.12",
|
|
33
|
+
"@girs/glib-2.0": "^2.75.1-3.0.0-beta.12",
|
|
34
|
+
"@girs/gobject-2.0": "^2.75.1-3.0.0-beta.12",
|
|
35
|
+
"@girs/soup-3.0": "^3.3.1-3.0.0-beta.12"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"typescript": "^*"
|
|
39
|
+
},
|
|
40
|
+
"keywords": [
|
|
41
|
+
"Gir",
|
|
42
|
+
"TypeScript",
|
|
43
|
+
"GrlNet-0.3"
|
|
44
|
+
],
|
|
45
|
+
"author": "ts-for-gir",
|
|
46
|
+
"license": "Apache-2.0",
|
|
47
|
+
"repository": {
|
|
48
|
+
"type": "git",
|
|
49
|
+
"url": "git+https://github.com/gjsify/ts-for-gir.git"
|
|
50
|
+
},
|
|
51
|
+
"bugs": {
|
|
52
|
+
"url": "https://github.com/gjsify/ts-for-gir/issues"
|
|
53
|
+
},
|
|
54
|
+
"homepage": "https://github.com/gjsify/ts-for-gir#readme"
|
|
55
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
// General settings for code interpretation
|
|
4
|
+
"target": "ESNext",
|
|
5
|
+
"module": "ESNext",
|
|
6
|
+
"experimentalDecorators": true,
|
|
7
|
+
"moduleResolution": "node",
|
|
8
|
+
"noEmit": true,
|
|
9
|
+
"noEmitOnError": false,
|
|
10
|
+
"baseUrl": "./",
|
|
11
|
+
"rootDir": ".",
|
|
12
|
+
// General settings for code generation
|
|
13
|
+
"removeComments": false,
|
|
14
|
+
"inlineSourceMap": false,
|
|
15
|
+
"inlineSources": false,
|
|
16
|
+
"newLine": "LF"
|
|
17
|
+
},
|
|
18
|
+
"include": ["./grlnet-0.3.d.ts"]
|
|
19
|
+
}
|