@girs/grlnet-0.1 0.1.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 +31 -0
- package/grlnet-0.1.cjs +9 -0
- package/grlnet-0.1.d.cts +203 -0
- package/grlnet-0.1.d.ts +208 -0
- package/grlnet-0.1.js +8 -0
- package/package.json +54 -0
- package/tsconfig.doc.json +19 -0
package/README.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
|
|
2
|
+
# GrlNet-0.1
|
|
3
|
+
|
|
4
|
+
GJS TypeScript type definitions for GrlNet-0.1, generated from library version 0.1.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gjs) v3.0.0-beta.12.
|
|
5
|
+
|
|
6
|
+
## Install
|
|
7
|
+
|
|
8
|
+
To use this type definitions, install them with NPM like this:
|
|
9
|
+
```bash
|
|
10
|
+
npm install @girs/grlnet-0.1
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
You can import this package into your project like this:
|
|
16
|
+
```ts
|
|
17
|
+
import GrlNet from '@girs/grlnet-0.1';
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Or if you prefer CommonJS, you can also use this:
|
|
21
|
+
```ts
|
|
22
|
+
const GrlNet = require('@girs/grlnet-0.1');
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
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:
|
|
26
|
+
|
|
27
|
+
```ts
|
|
28
|
+
import GrlNet from 'gi://GrlNet?version=0.1';
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
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.1.cjs
ADDED
package/grlnet-0.1.d.cts
ADDED
|
@@ -0,0 +1,203 @@
|
|
|
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.1
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import type Gio from '@girs/gio-2.0';
|
|
13
|
+
import type GObject from '@girs/gobject-2.0';
|
|
14
|
+
import type GLib from '@girs/glib-2.0';
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* These constants identify all the available errors managed by
|
|
18
|
+
* the web client.
|
|
19
|
+
*/
|
|
20
|
+
export enum WcError {
|
|
21
|
+
UNAVAILABLE,
|
|
22
|
+
PROTOCOL_ERROR,
|
|
23
|
+
AUTHENTICATION_REQUIRED,
|
|
24
|
+
NOT_FOUND,
|
|
25
|
+
CONFLICT,
|
|
26
|
+
FORBIDDEN,
|
|
27
|
+
NETWORK_ERROR,
|
|
28
|
+
PROXY_ERROR,
|
|
29
|
+
CANCELLED,
|
|
30
|
+
}
|
|
31
|
+
export module Wc {
|
|
32
|
+
|
|
33
|
+
// Constructor properties interface
|
|
34
|
+
|
|
35
|
+
export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
36
|
+
|
|
37
|
+
// Own constructor properties of GrlNet-0.1.GrlNet.Wc
|
|
38
|
+
|
|
39
|
+
cache?: boolean | null
|
|
40
|
+
cache_size?: number | null
|
|
41
|
+
loglevel?: number | null
|
|
42
|
+
throttling?: number | null
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface Wc {
|
|
48
|
+
|
|
49
|
+
// Own properties of GrlNet-0.1.GrlNet.Wc
|
|
50
|
+
|
|
51
|
+
cache: boolean
|
|
52
|
+
cache_size: number
|
|
53
|
+
loglevel: number
|
|
54
|
+
throttling: number
|
|
55
|
+
|
|
56
|
+
// Own fields of GrlNet-0.1.GrlNet.Wc
|
|
57
|
+
|
|
58
|
+
parent: GObject.Object
|
|
59
|
+
|
|
60
|
+
// Owm methods of GrlNet-0.1.GrlNet.Wc
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* This method will flush all the pending request in the queue.
|
|
64
|
+
*/
|
|
65
|
+
flush_delayed_requests(): void
|
|
66
|
+
/**
|
|
67
|
+
* Request the fetching of a web resource given the `uri`. This request is
|
|
68
|
+
* asynchronous, thus the result will be returned within the `callback`.
|
|
69
|
+
* @param uri The URI of the resource to request
|
|
70
|
+
* @param cancellable a #GCancellable instance or %NULL to ignore
|
|
71
|
+
* @param callback The callback when the result is ready
|
|
72
|
+
*/
|
|
73
|
+
request_async(uri: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
74
|
+
/**
|
|
75
|
+
* Finishes an asynchronous load of the file's contents.
|
|
76
|
+
* The contents are placed in contents, and length is set to the size of the
|
|
77
|
+
* contents string.
|
|
78
|
+
*
|
|
79
|
+
* The content address will be invalidated at the next request. So if you
|
|
80
|
+
* want to keep it, please copy it into another address.
|
|
81
|
+
* @param result The result of the request
|
|
82
|
+
* @param content The contents of the resource
|
|
83
|
+
* @param length The length of the contents or %NULL if it is not needed
|
|
84
|
+
* @returns %TRUE if the request was successfull. If %FALSE an error occurred.
|
|
85
|
+
*/
|
|
86
|
+
request_finish(result: Gio.AsyncResult, content: string | null, length?: number | null): boolean
|
|
87
|
+
/**
|
|
88
|
+
* Sets if cache must be used. Note that this will only work if caching is
|
|
89
|
+
* supporting. If sets %TRUE, a new cache will be created. If sets to %FALSE,
|
|
90
|
+
* current cache is clean and removed.
|
|
91
|
+
* @param use_cache if cache must be used or not
|
|
92
|
+
*/
|
|
93
|
+
set_cache(use_cache: boolean): void
|
|
94
|
+
/**
|
|
95
|
+
* Sets the new maximum size of cache, in Megabytes. Default value is 10. Using
|
|
96
|
+
* 0 means no cache will be done.
|
|
97
|
+
* @param cache_size size of cache (in Mb)
|
|
98
|
+
*/
|
|
99
|
+
set_cache_size(cache_size: number): void
|
|
100
|
+
/**
|
|
101
|
+
* Setting the log level the logger feature is added into
|
|
102
|
+
* the libsoup session.
|
|
103
|
+
* @param log_level the libsoup log level to set [0,3]
|
|
104
|
+
*/
|
|
105
|
+
set_log_level(log_level: number): void
|
|
106
|
+
/**
|
|
107
|
+
* Setting this property, the #GrlNetWc will queue all the requests and
|
|
108
|
+
* will dispatch them with a pause between them of this value.
|
|
109
|
+
* @param throttling the number of seconds to wait between requests
|
|
110
|
+
*/
|
|
111
|
+
set_throttling(throttling: number): void
|
|
112
|
+
|
|
113
|
+
// Class property signals of GrlNet-0.1.GrlNet.Wc
|
|
114
|
+
|
|
115
|
+
connect(sigName: "notify::cache", callback: (($obj: Wc, pspec: GObject.ParamSpec) => void)): number
|
|
116
|
+
connect_after(sigName: "notify::cache", callback: (($obj: Wc, pspec: GObject.ParamSpec) => void)): number
|
|
117
|
+
emit(sigName: "notify::cache", ...args: any[]): void
|
|
118
|
+
connect(sigName: "notify::cache-size", callback: (($obj: Wc, pspec: GObject.ParamSpec) => void)): number
|
|
119
|
+
connect_after(sigName: "notify::cache-size", callback: (($obj: Wc, pspec: GObject.ParamSpec) => void)): number
|
|
120
|
+
emit(sigName: "notify::cache-size", ...args: any[]): void
|
|
121
|
+
connect(sigName: "notify::loglevel", callback: (($obj: Wc, pspec: GObject.ParamSpec) => void)): number
|
|
122
|
+
connect_after(sigName: "notify::loglevel", callback: (($obj: Wc, pspec: GObject.ParamSpec) => void)): number
|
|
123
|
+
emit(sigName: "notify::loglevel", ...args: any[]): void
|
|
124
|
+
connect(sigName: "notify::throttling", callback: (($obj: Wc, pspec: GObject.ParamSpec) => void)): number
|
|
125
|
+
connect_after(sigName: "notify::throttling", callback: (($obj: Wc, pspec: GObject.ParamSpec) => void)): number
|
|
126
|
+
emit(sigName: "notify::throttling", ...args: any[]): void
|
|
127
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
128
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
129
|
+
emit(sigName: string, ...args: any[]): void
|
|
130
|
+
disconnect(id: number): void
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export class Wc extends GObject.Object {
|
|
134
|
+
|
|
135
|
+
// Own properties of GrlNet-0.1.GrlNet.Wc
|
|
136
|
+
|
|
137
|
+
static name: string
|
|
138
|
+
static $gtype: GObject.GType<Wc>
|
|
139
|
+
|
|
140
|
+
// Constructors of GrlNet-0.1.GrlNet.Wc
|
|
141
|
+
|
|
142
|
+
constructor(config?: Wc.ConstructorProperties)
|
|
143
|
+
/**
|
|
144
|
+
* Creates a new #GrlNetWc.
|
|
145
|
+
*
|
|
146
|
+
* use it.
|
|
147
|
+
* @constructor
|
|
148
|
+
* @returns a new allocated instance of #GrlNetWc. Do g_object_unref() after
|
|
149
|
+
*/
|
|
150
|
+
constructor()
|
|
151
|
+
/**
|
|
152
|
+
* Creates a new #GrlNetWc.
|
|
153
|
+
*
|
|
154
|
+
* use it.
|
|
155
|
+
* @constructor
|
|
156
|
+
* @returns a new allocated instance of #GrlNetWc. Do g_object_unref() after
|
|
157
|
+
*/
|
|
158
|
+
static new(): Wc
|
|
159
|
+
_init(config?: Wc.ConstructorProperties): void
|
|
160
|
+
static error_quark(): GLib.Quark
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export interface WcClass {
|
|
164
|
+
|
|
165
|
+
// Own fields of GrlNet-0.1.GrlNet.WcClass
|
|
166
|
+
|
|
167
|
+
parent_class: GObject.ObjectClass
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* Grilo web client helper class.
|
|
172
|
+
*
|
|
173
|
+
* It's a simple and thin web client for be used by the sources.
|
|
174
|
+
* @record
|
|
175
|
+
*/
|
|
176
|
+
export abstract class WcClass {
|
|
177
|
+
|
|
178
|
+
// Own properties of GrlNet-0.1.GrlNet.WcClass
|
|
179
|
+
|
|
180
|
+
static name: string
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export interface WcPrivate {
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
export class WcPrivate {
|
|
187
|
+
|
|
188
|
+
// Own properties of GrlNet-0.1.GrlNet.WcPrivate
|
|
189
|
+
|
|
190
|
+
static name: string
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Name of the imported GIR library
|
|
195
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
|
|
196
|
+
*/
|
|
197
|
+
export const __name__: string
|
|
198
|
+
/**
|
|
199
|
+
* Version of the imported GIR library
|
|
200
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
|
|
201
|
+
*/
|
|
202
|
+
export const __version__: string
|
|
203
|
+
// END
|
package/grlnet-0.1.d.ts
ADDED
|
@@ -0,0 +1,208 @@
|
|
|
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.1
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import type Gio from '@girs/gio-2.0';
|
|
13
|
+
import type GObject from '@girs/gobject-2.0';
|
|
14
|
+
import type GLib from '@girs/glib-2.0';
|
|
15
|
+
|
|
16
|
+
export namespace GrlNet {
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* These constants identify all the available errors managed by
|
|
20
|
+
* the web client.
|
|
21
|
+
*/
|
|
22
|
+
enum WcError {
|
|
23
|
+
UNAVAILABLE,
|
|
24
|
+
PROTOCOL_ERROR,
|
|
25
|
+
AUTHENTICATION_REQUIRED,
|
|
26
|
+
NOT_FOUND,
|
|
27
|
+
CONFLICT,
|
|
28
|
+
FORBIDDEN,
|
|
29
|
+
NETWORK_ERROR,
|
|
30
|
+
PROXY_ERROR,
|
|
31
|
+
CANCELLED,
|
|
32
|
+
}
|
|
33
|
+
module Wc {
|
|
34
|
+
|
|
35
|
+
// Constructor properties interface
|
|
36
|
+
|
|
37
|
+
interface ConstructorProperties extends GObject.Object.ConstructorProperties {
|
|
38
|
+
|
|
39
|
+
// Own constructor properties of GrlNet-0.1.GrlNet.Wc
|
|
40
|
+
|
|
41
|
+
cache?: boolean | null
|
|
42
|
+
cache_size?: number | null
|
|
43
|
+
loglevel?: number | null
|
|
44
|
+
throttling?: number | null
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
interface Wc {
|
|
50
|
+
|
|
51
|
+
// Own properties of GrlNet-0.1.GrlNet.Wc
|
|
52
|
+
|
|
53
|
+
cache: boolean
|
|
54
|
+
cache_size: number
|
|
55
|
+
loglevel: number
|
|
56
|
+
throttling: number
|
|
57
|
+
|
|
58
|
+
// Own fields of GrlNet-0.1.GrlNet.Wc
|
|
59
|
+
|
|
60
|
+
parent: GObject.Object
|
|
61
|
+
|
|
62
|
+
// Owm methods of GrlNet-0.1.GrlNet.Wc
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* This method will flush all the pending request in the queue.
|
|
66
|
+
*/
|
|
67
|
+
flush_delayed_requests(): void
|
|
68
|
+
/**
|
|
69
|
+
* Request the fetching of a web resource given the `uri`. This request is
|
|
70
|
+
* asynchronous, thus the result will be returned within the `callback`.
|
|
71
|
+
* @param uri The URI of the resource to request
|
|
72
|
+
* @param cancellable a #GCancellable instance or %NULL to ignore
|
|
73
|
+
* @param callback The callback when the result is ready
|
|
74
|
+
*/
|
|
75
|
+
request_async(uri: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
|
|
76
|
+
/**
|
|
77
|
+
* Finishes an asynchronous load of the file's contents.
|
|
78
|
+
* The contents are placed in contents, and length is set to the size of the
|
|
79
|
+
* contents string.
|
|
80
|
+
*
|
|
81
|
+
* The content address will be invalidated at the next request. So if you
|
|
82
|
+
* want to keep it, please copy it into another address.
|
|
83
|
+
* @param result The result of the request
|
|
84
|
+
* @param content The contents of the resource
|
|
85
|
+
* @param length The length of the contents or %NULL if it is not needed
|
|
86
|
+
* @returns %TRUE if the request was successfull. If %FALSE an error occurred.
|
|
87
|
+
*/
|
|
88
|
+
request_finish(result: Gio.AsyncResult, content: string | null, length?: number | null): boolean
|
|
89
|
+
/**
|
|
90
|
+
* Sets if cache must be used. Note that this will only work if caching is
|
|
91
|
+
* supporting. If sets %TRUE, a new cache will be created. If sets to %FALSE,
|
|
92
|
+
* current cache is clean and removed.
|
|
93
|
+
* @param use_cache if cache must be used or not
|
|
94
|
+
*/
|
|
95
|
+
set_cache(use_cache: boolean): void
|
|
96
|
+
/**
|
|
97
|
+
* Sets the new maximum size of cache, in Megabytes. Default value is 10. Using
|
|
98
|
+
* 0 means no cache will be done.
|
|
99
|
+
* @param cache_size size of cache (in Mb)
|
|
100
|
+
*/
|
|
101
|
+
set_cache_size(cache_size: number): void
|
|
102
|
+
/**
|
|
103
|
+
* Setting the log level the logger feature is added into
|
|
104
|
+
* the libsoup session.
|
|
105
|
+
* @param log_level the libsoup log level to set [0,3]
|
|
106
|
+
*/
|
|
107
|
+
set_log_level(log_level: number): void
|
|
108
|
+
/**
|
|
109
|
+
* Setting this property, the #GrlNetWc will queue all the requests and
|
|
110
|
+
* will dispatch them with a pause between them of this value.
|
|
111
|
+
* @param throttling the number of seconds to wait between requests
|
|
112
|
+
*/
|
|
113
|
+
set_throttling(throttling: number): void
|
|
114
|
+
|
|
115
|
+
// Class property signals of GrlNet-0.1.GrlNet.Wc
|
|
116
|
+
|
|
117
|
+
connect(sigName: "notify::cache", callback: (($obj: Wc, pspec: GObject.ParamSpec) => void)): number
|
|
118
|
+
connect_after(sigName: "notify::cache", callback: (($obj: Wc, pspec: GObject.ParamSpec) => void)): number
|
|
119
|
+
emit(sigName: "notify::cache", ...args: any[]): void
|
|
120
|
+
connect(sigName: "notify::cache-size", callback: (($obj: Wc, pspec: GObject.ParamSpec) => void)): number
|
|
121
|
+
connect_after(sigName: "notify::cache-size", callback: (($obj: Wc, pspec: GObject.ParamSpec) => void)): number
|
|
122
|
+
emit(sigName: "notify::cache-size", ...args: any[]): void
|
|
123
|
+
connect(sigName: "notify::loglevel", callback: (($obj: Wc, pspec: GObject.ParamSpec) => void)): number
|
|
124
|
+
connect_after(sigName: "notify::loglevel", callback: (($obj: Wc, pspec: GObject.ParamSpec) => void)): number
|
|
125
|
+
emit(sigName: "notify::loglevel", ...args: any[]): void
|
|
126
|
+
connect(sigName: "notify::throttling", callback: (($obj: Wc, pspec: GObject.ParamSpec) => void)): number
|
|
127
|
+
connect_after(sigName: "notify::throttling", callback: (($obj: Wc, pspec: GObject.ParamSpec) => void)): number
|
|
128
|
+
emit(sigName: "notify::throttling", ...args: any[]): void
|
|
129
|
+
connect(sigName: string, callback: (...args: any[]) => void): number
|
|
130
|
+
connect_after(sigName: string, callback: (...args: any[]) => void): number
|
|
131
|
+
emit(sigName: string, ...args: any[]): void
|
|
132
|
+
disconnect(id: number): void
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
class Wc extends GObject.Object {
|
|
136
|
+
|
|
137
|
+
// Own properties of GrlNet-0.1.GrlNet.Wc
|
|
138
|
+
|
|
139
|
+
static name: string
|
|
140
|
+
static $gtype: GObject.GType<Wc>
|
|
141
|
+
|
|
142
|
+
// Constructors of GrlNet-0.1.GrlNet.Wc
|
|
143
|
+
|
|
144
|
+
constructor(config?: Wc.ConstructorProperties)
|
|
145
|
+
/**
|
|
146
|
+
* Creates a new #GrlNetWc.
|
|
147
|
+
*
|
|
148
|
+
* use it.
|
|
149
|
+
* @constructor
|
|
150
|
+
* @returns a new allocated instance of #GrlNetWc. Do g_object_unref() after
|
|
151
|
+
*/
|
|
152
|
+
constructor()
|
|
153
|
+
/**
|
|
154
|
+
* Creates a new #GrlNetWc.
|
|
155
|
+
*
|
|
156
|
+
* use it.
|
|
157
|
+
* @constructor
|
|
158
|
+
* @returns a new allocated instance of #GrlNetWc. Do g_object_unref() after
|
|
159
|
+
*/
|
|
160
|
+
static new(): Wc
|
|
161
|
+
_init(config?: Wc.ConstructorProperties): void
|
|
162
|
+
static error_quark(): GLib.Quark
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
interface WcClass {
|
|
166
|
+
|
|
167
|
+
// Own fields of GrlNet-0.1.GrlNet.WcClass
|
|
168
|
+
|
|
169
|
+
parent_class: GObject.ObjectClass
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Grilo web client helper class.
|
|
174
|
+
*
|
|
175
|
+
* It's a simple and thin web client for be used by the sources.
|
|
176
|
+
* @record
|
|
177
|
+
*/
|
|
178
|
+
abstract class WcClass {
|
|
179
|
+
|
|
180
|
+
// Own properties of GrlNet-0.1.GrlNet.WcClass
|
|
181
|
+
|
|
182
|
+
static name: string
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
interface WcPrivate {
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
class WcPrivate {
|
|
189
|
+
|
|
190
|
+
// Own properties of GrlNet-0.1.GrlNet.WcPrivate
|
|
191
|
+
|
|
192
|
+
static name: string
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Name of the imported GIR library
|
|
197
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
|
|
198
|
+
*/
|
|
199
|
+
const __name__: string
|
|
200
|
+
/**
|
|
201
|
+
* Version of the imported GIR library
|
|
202
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
|
|
203
|
+
*/
|
|
204
|
+
const __version__: string
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
export default GrlNet;
|
|
208
|
+
// END
|
package/grlnet-0.1.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@girs/grlnet-0.1",
|
|
3
|
+
"version": "0.1.0-3.0.0-beta.12",
|
|
4
|
+
"description": "GJS TypeScript type definitions for GrlNet-0.1, generated from library version 0.1.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"module": "grlnet-0.1.js",
|
|
7
|
+
"main": "grlnet-0.1.js",
|
|
8
|
+
"typedoc": {
|
|
9
|
+
"entryPoint": "./grlnet-0.1.d.ts",
|
|
10
|
+
"readmeFile": "./README.md",
|
|
11
|
+
"displayName": "GrlNet-0.1",
|
|
12
|
+
"tsconfig": "./tsconfig.doc.json"
|
|
13
|
+
},
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"import": {
|
|
17
|
+
"types": "./grlnet-0.1.d.ts",
|
|
18
|
+
"default": "./grlnet-0.1.js"
|
|
19
|
+
},
|
|
20
|
+
"require": {
|
|
21
|
+
"types": "./grlnet-0.1.d.cts",
|
|
22
|
+
"default": "./grlnet-0.1.cjs"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"scripts": {
|
|
27
|
+
"test": "yarn test:esm && yarn test:cjs",
|
|
28
|
+
"test:esm": "tsc --noEmit grlnet-0.1.d.ts",
|
|
29
|
+
"test:cjs": "tsc --noEmit grlnet-0.1.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
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"typescript": "^*"
|
|
38
|
+
},
|
|
39
|
+
"keywords": [
|
|
40
|
+
"Gir",
|
|
41
|
+
"TypeScript",
|
|
42
|
+
"GrlNet-0.1"
|
|
43
|
+
],
|
|
44
|
+
"author": "ts-for-gir",
|
|
45
|
+
"license": "Apache-2.0",
|
|
46
|
+
"repository": {
|
|
47
|
+
"type": "git",
|
|
48
|
+
"url": "git+https://github.com/gjsify/ts-for-gir.git"
|
|
49
|
+
},
|
|
50
|
+
"bugs": {
|
|
51
|
+
"url": "https://github.com/gjsify/ts-for-gir/issues"
|
|
52
|
+
},
|
|
53
|
+
"homepage": "https://github.com/gjsify/ts-for-gir#readme"
|
|
54
|
+
}
|
|
@@ -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.1.d.ts"]
|
|
19
|
+
}
|