@girs/mtk-14 4.0.4
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 +85 -0
- package/index.d.ts +15 -0
- package/index.js +5 -0
- package/mtk-14-ambient.d.ts +12 -0
- package/mtk-14-ambient.js +2 -0
- package/mtk-14-import.d.ts +2 -0
- package/mtk-14-import.js +3 -0
- package/mtk-14.d.ts +391 -0
- package/mtk-14.js +5 -0
- package/package.json +55 -0
- package/tsconfig.json +38 -0
- package/typedoc.json +9 -0
package/README.md
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
|
|
2
|
+
# Mtk-14
|
|
3
|
+
|
|
4
|
+

|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
GJS TypeScript type definitions for Mtk-14, generated from library version 14.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.4.
|
|
9
|
+
|
|
10
|
+
## Install
|
|
11
|
+
|
|
12
|
+
To use this type definitions, install them with NPM:
|
|
13
|
+
```bash
|
|
14
|
+
npm install @girs/mtk-14
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
You can import this package into your project like this:
|
|
20
|
+
```ts
|
|
21
|
+
import Mtk from '@girs/mtk-14';
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
### Ambient Modules
|
|
25
|
+
|
|
26
|
+
You can also use [ambient modules](https://github.com/gjsify/ts-for-gir/tree/main/packages/cli#ambient-modules) to import this module like you would do this in JavaScript.
|
|
27
|
+
For this you need to include `@girs/mtk-14` or `@girs/mtk-14/ambient` in your `tsconfig` or entry point Typescript file:
|
|
28
|
+
|
|
29
|
+
`index.ts`:
|
|
30
|
+
```ts
|
|
31
|
+
import '@girs/mtk-14'
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
`tsconfig.json`:
|
|
35
|
+
```json
|
|
36
|
+
{
|
|
37
|
+
"compilerOptions": {
|
|
38
|
+
...
|
|
39
|
+
},
|
|
40
|
+
"include": ["@girs/mtk-14"],
|
|
41
|
+
...
|
|
42
|
+
}
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Now you can import the ambient module with TypeScript support:
|
|
46
|
+
|
|
47
|
+
```ts
|
|
48
|
+
import Mtk from 'gi://Mtk?version=14';
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### Global import
|
|
52
|
+
|
|
53
|
+
You can also import the module with Typescript support using the global `imports.gi` object of GJS.
|
|
54
|
+
For this you need to include `@girs/mtk-14` or `@girs/mtk-14/import` in your `tsconfig` or entry point Typescript file:
|
|
55
|
+
|
|
56
|
+
`index.ts`:
|
|
57
|
+
```ts
|
|
58
|
+
import '@girs/mtk-14'
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
`tsconfig.json`:
|
|
62
|
+
```json
|
|
63
|
+
{
|
|
64
|
+
"compilerOptions": {
|
|
65
|
+
...
|
|
66
|
+
},
|
|
67
|
+
"include": ["@girs/mtk-14"],
|
|
68
|
+
...
|
|
69
|
+
}
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Now you have also type support for this, too:
|
|
73
|
+
|
|
74
|
+
```ts
|
|
75
|
+
const Mtk = imports.gi.Mtk;
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### Bundle
|
|
79
|
+
|
|
80
|
+
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).
|
|
81
|
+
|
|
82
|
+
## Other packages
|
|
83
|
+
|
|
84
|
+
All existing pre-generated packages can be found on [gjsify/types](https://github.com/gjsify/types).
|
|
85
|
+
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type Definitions for Gjs (https://gjs.guide/)
|
|
3
|
+
*
|
|
4
|
+
* These type definitions are automatically generated, do not edit them by hand.
|
|
5
|
+
* If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gir
|
|
6
|
+
*
|
|
7
|
+
* This template is used to generate the index.d.ts file of each GIR module like Gtk-4.0, GObject-2.0, ...
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
import './mtk-14-ambient.d.ts';
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
import Mtk from './mtk-14.js';
|
|
14
|
+
export default Mtk;
|
|
15
|
+
|
package/index.js
ADDED
package/mtk-14-import.js
ADDED
package/mtk-14.d.ts
ADDED
|
@@ -0,0 +1,391 @@
|
|
|
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-gir
|
|
7
|
+
*
|
|
8
|
+
* The based EJS template file is used for the generated .d.ts file of each GIR module like Gtk-4.0, GObject-2.0, ...
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
import '@girs/gjs';
|
|
12
|
+
|
|
13
|
+
// Module dependencies
|
|
14
|
+
import type Graphene from '@girs/graphene-1.0';
|
|
15
|
+
import type GObject from '@girs/gobject-2.0';
|
|
16
|
+
import type GLib from '@girs/glib-2.0';
|
|
17
|
+
|
|
18
|
+
export namespace Mtk {
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Mtk-14
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @gir-type Enum
|
|
27
|
+
*/
|
|
28
|
+
enum RegionOverlap {
|
|
29
|
+
OUT,
|
|
30
|
+
IN,
|
|
31
|
+
PART,
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* @gir-type Enum
|
|
37
|
+
*/
|
|
38
|
+
enum RoundingStrategy {
|
|
39
|
+
SHRINK,
|
|
40
|
+
GROW,
|
|
41
|
+
ROUND,
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
const RECTANGLE_MAX_STACK_RECTS: number;
|
|
46
|
+
|
|
47
|
+
const REGION_BUILDER_MAX_LEVELS: number;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @param rect A rectangle
|
|
51
|
+
* @param rounding_strategy The rounding strategy
|
|
52
|
+
*/
|
|
53
|
+
function rectangle_from_graphene_rect(rect: Graphene.Rect, rounding_strategy: RoundingStrategy): Rectangle;
|
|
54
|
+
|
|
55
|
+
function region_create(): Region;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* @param rect
|
|
59
|
+
*/
|
|
60
|
+
function region_create_rectangle(rect: Rectangle): Region;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* @param rects
|
|
64
|
+
* @param n_rects
|
|
65
|
+
*/
|
|
66
|
+
function region_create_rectangles(rects: Rectangle, n_rects: number): Region;
|
|
67
|
+
|
|
68
|
+
function x11_errors_deinit(): void;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @gir-type Struct
|
|
72
|
+
*/
|
|
73
|
+
class Rectangle {
|
|
74
|
+
static $gtype: GObject.GType<Rectangle>;
|
|
75
|
+
|
|
76
|
+
// Fields
|
|
77
|
+
x: number;
|
|
78
|
+
|
|
79
|
+
y: number;
|
|
80
|
+
|
|
81
|
+
width: number;
|
|
82
|
+
|
|
83
|
+
height: number;
|
|
84
|
+
|
|
85
|
+
// Constructors
|
|
86
|
+
|
|
87
|
+
constructor(properties?: Partial<{
|
|
88
|
+
x: number;
|
|
89
|
+
y: number;
|
|
90
|
+
width: number;
|
|
91
|
+
height: number;
|
|
92
|
+
}>);
|
|
93
|
+
|
|
94
|
+
static ["new"](x: number, y: number, width: number, height: number): Rectangle;
|
|
95
|
+
|
|
96
|
+
// Static methods
|
|
97
|
+
/**
|
|
98
|
+
* @param rect A rectangle
|
|
99
|
+
* @param rounding_strategy The rounding strategy
|
|
100
|
+
*/
|
|
101
|
+
static from_graphene_rect(rect: Graphene.Rect, rounding_strategy: RoundingStrategy): Rectangle;
|
|
102
|
+
|
|
103
|
+
// Methods
|
|
104
|
+
/**
|
|
105
|
+
* @returns The area of the rectangle
|
|
106
|
+
*/
|
|
107
|
+
area(): number;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* @param inner_rect The inner rectangle
|
|
111
|
+
* @returns Whether the outer rectangle contains the inner one
|
|
112
|
+
*/
|
|
113
|
+
contains_rect(inner_rect: Rectangle): boolean;
|
|
114
|
+
|
|
115
|
+
copy(): Rectangle;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* @param inner_rect The inner rectangle
|
|
119
|
+
* @returns Whether the inner rectangle could fit inside the outer one
|
|
120
|
+
*/
|
|
121
|
+
could_fit_rect(inner_rect: Rectangle): boolean;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* @param src_rect
|
|
125
|
+
* @param dst_width
|
|
126
|
+
* @param dst_height
|
|
127
|
+
* @param dest
|
|
128
|
+
*/
|
|
129
|
+
crop_and_scale(src_rect: Graphene.Rect, dst_width: number, dst_height: number, dest: Rectangle): void;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Compares the two rectangles
|
|
133
|
+
* @param src2 The second rectangle
|
|
134
|
+
* @returns Whether the two rectangles are equal
|
|
135
|
+
*/
|
|
136
|
+
equal(src2: Rectangle): boolean;
|
|
137
|
+
|
|
138
|
+
free(): void;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Similar to {@link Rectangle.overlap} but ignores the vertical location.
|
|
142
|
+
* @param rect2 The second rectangle
|
|
143
|
+
* @returns Whether the two rectangles overlap horizontally
|
|
144
|
+
*/
|
|
145
|
+
horiz_overlap(rect2: Rectangle): boolean;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Find the intersection between the two rectangles
|
|
149
|
+
* @param src2 another {@link Mtk.Rectangle}
|
|
150
|
+
* @returns TRUE is some intersection exists and is not degenerate, FALSE otherwise.
|
|
151
|
+
*/
|
|
152
|
+
intersect(src2: Rectangle): [boolean, Rectangle];
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* @param other
|
|
156
|
+
*/
|
|
157
|
+
is_adjacent_to(other: Rectangle): boolean;
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Similar to {@link Rectangle.intersect} but doesn't provide
|
|
161
|
+
* the location of the intersection.
|
|
162
|
+
* @param rect2 The second rectangle
|
|
163
|
+
* @returns Whether the two rectangles overlap
|
|
164
|
+
*/
|
|
165
|
+
overlap(rect2: Rectangle): boolean;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* @param scale
|
|
169
|
+
* @param rounding_strategy
|
|
170
|
+
* @param dest
|
|
171
|
+
*/
|
|
172
|
+
scale_double(scale: number, rounding_strategy: RoundingStrategy, dest: Rectangle): void;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* @returns Return a graphene_rect_t created from `rect`
|
|
176
|
+
*/
|
|
177
|
+
to_graphene_rect(): Graphene.Rect;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Computes the union of the two rectangles
|
|
181
|
+
* @param rect2 another {@link Mtk.Rectangle}
|
|
182
|
+
*/
|
|
183
|
+
union(rect2: Rectangle): Rectangle;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Similar to {@link Rectangle.overlap} but ignores the horizontal location.
|
|
187
|
+
* @param rect2 The second rectangle
|
|
188
|
+
* @returns Whether the two rectangles overlap vertically
|
|
189
|
+
*/
|
|
190
|
+
vert_overlap(rect2: Rectangle): boolean;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* @gir-type Struct
|
|
196
|
+
*/
|
|
197
|
+
abstract class Region {
|
|
198
|
+
static $gtype: GObject.GType<Region>;
|
|
199
|
+
|
|
200
|
+
// Static methods
|
|
201
|
+
static create(): Region;
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* @param rect
|
|
205
|
+
*/
|
|
206
|
+
static create_rectangle(rect: Rectangle): Region;
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* @param rects
|
|
210
|
+
* @param n_rects
|
|
211
|
+
*/
|
|
212
|
+
static create_rectangles(rects: Rectangle, n_rects: number): Region;
|
|
213
|
+
|
|
214
|
+
// Methods
|
|
215
|
+
/**
|
|
216
|
+
* @param transform
|
|
217
|
+
*/
|
|
218
|
+
apply_matrix_transform_expand(transform: Graphene.Matrix): Region;
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* @param x
|
|
222
|
+
* @param y
|
|
223
|
+
*/
|
|
224
|
+
contains_point(x: number, y: number): boolean;
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* @param rect
|
|
228
|
+
*/
|
|
229
|
+
contains_rectangle(rect: Rectangle): RegionOverlap;
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* @returns A copy of the passed region
|
|
233
|
+
*/
|
|
234
|
+
copy(): Region;
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* @param src_rect
|
|
238
|
+
* @param dst_width
|
|
239
|
+
* @param dst_height
|
|
240
|
+
*/
|
|
241
|
+
crop_and_scale(src_rect: Graphene.Rect, dst_width: number, dst_height: number): Region;
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* @param other
|
|
245
|
+
*/
|
|
246
|
+
equal(other: Region): boolean;
|
|
247
|
+
|
|
248
|
+
get_extents(): Rectangle;
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* @param nth
|
|
252
|
+
*/
|
|
253
|
+
get_rectangle(nth: number): Rectangle;
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* @param other
|
|
257
|
+
*/
|
|
258
|
+
intersect(other: Region): void;
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* @param rect
|
|
262
|
+
*/
|
|
263
|
+
intersect_rectangle(rect: Rectangle): void;
|
|
264
|
+
|
|
265
|
+
is_empty(): boolean;
|
|
266
|
+
|
|
267
|
+
num_rectangles(): number;
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* Increases the reference count
|
|
271
|
+
* @returns The region
|
|
272
|
+
*/
|
|
273
|
+
ref(): Region;
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* @param scale
|
|
277
|
+
*/
|
|
278
|
+
scale(scale: number): Region;
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* @param other
|
|
282
|
+
*/
|
|
283
|
+
subtract(other: Region): void;
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* @param rect
|
|
287
|
+
*/
|
|
288
|
+
subtract_rectangle(rect: Rectangle): void;
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* @param dx
|
|
292
|
+
* @param dy
|
|
293
|
+
*/
|
|
294
|
+
translate(dx: number, dy: number): void;
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* @param other
|
|
298
|
+
*/
|
|
299
|
+
union(other: Region): void;
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* @param rect
|
|
303
|
+
*/
|
|
304
|
+
union_rectangle(rect: Rectangle): void;
|
|
305
|
+
|
|
306
|
+
unref(): void;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* @gir-type Struct
|
|
312
|
+
*/
|
|
313
|
+
class RegionBuilder {
|
|
314
|
+
static $gtype: GObject.GType<RegionBuilder>;
|
|
315
|
+
|
|
316
|
+
// Fields
|
|
317
|
+
n_levels: number;
|
|
318
|
+
|
|
319
|
+
// Methods
|
|
320
|
+
/**
|
|
321
|
+
* @param x
|
|
322
|
+
* @param y
|
|
323
|
+
* @param width
|
|
324
|
+
* @param height
|
|
325
|
+
*/
|
|
326
|
+
add_rectangle(x: number, y: number, width: number, height: number): void;
|
|
327
|
+
|
|
328
|
+
finish(): Region;
|
|
329
|
+
|
|
330
|
+
init(): void;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* MtkRegion is a yx banded region; sometimes its useful to iterate through
|
|
336
|
+
* such a region treating the start and end of each horizontal band in a distinct
|
|
337
|
+
* fashion.
|
|
338
|
+
*
|
|
339
|
+
* Usage:
|
|
340
|
+
*
|
|
341
|
+
* ```c
|
|
342
|
+
* MtkRegionIterator iter;
|
|
343
|
+
* for (mtk_region_iterator_init (&iter, region);
|
|
344
|
+
* !mtk_region_iterator_at_end (&iter);
|
|
345
|
+
* mtk_region_iterator_next (&iter))
|
|
346
|
+
* {
|
|
347
|
+
* [ Use iter.rectangle, iter.line_start, iter.line_end ]
|
|
348
|
+
* }
|
|
349
|
+
* ```
|
|
350
|
+
* @gir-type Struct
|
|
351
|
+
*/
|
|
352
|
+
class RegionIterator {
|
|
353
|
+
static $gtype: GObject.GType<RegionIterator>;
|
|
354
|
+
|
|
355
|
+
// Fields
|
|
356
|
+
rectangle: Rectangle;
|
|
357
|
+
|
|
358
|
+
line_start: boolean;
|
|
359
|
+
|
|
360
|
+
line_end: boolean;
|
|
361
|
+
|
|
362
|
+
i: number;
|
|
363
|
+
|
|
364
|
+
// Methods
|
|
365
|
+
at_end(): boolean;
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* @param region
|
|
369
|
+
*/
|
|
370
|
+
init(region: Region): void;
|
|
371
|
+
|
|
372
|
+
next(): void;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* Name of the imported GIR library
|
|
378
|
+
* `see` https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
|
|
379
|
+
*/
|
|
380
|
+
const __name__: string;
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* Version of the imported GIR library
|
|
384
|
+
* `see` https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
|
|
385
|
+
*/
|
|
386
|
+
const __version__: string;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
export default Mtk;
|
|
390
|
+
|
|
391
|
+
// END
|
package/mtk-14.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@girs/mtk-14",
|
|
3
|
+
"version": "4.0.4",
|
|
4
|
+
"libraryVersion": "14.0.0",
|
|
5
|
+
"description": "GJS TypeScript type definitions for Mtk-14, generated from library version 14.0.0",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"module": "mtk-14.js",
|
|
8
|
+
"main": "mtk-14.js",
|
|
9
|
+
"exports": {
|
|
10
|
+
"./ambient": {
|
|
11
|
+
"types": "./mtk-14-ambient.d.ts",
|
|
12
|
+
"import": "./mtk-14-ambient.js",
|
|
13
|
+
"default": "./mtk-14-ambient.js"
|
|
14
|
+
},
|
|
15
|
+
"./import": {
|
|
16
|
+
"types": "./mtk-14-import.d.ts",
|
|
17
|
+
"import": "./mtk-14-import.js",
|
|
18
|
+
"default": "./mtk-14-import.js"
|
|
19
|
+
},
|
|
20
|
+
"./mtk-14": {
|
|
21
|
+
"types": "./mtk-14.d.ts",
|
|
22
|
+
"import": "./mtk-14.js",
|
|
23
|
+
"default": "./mtk-14.js"
|
|
24
|
+
},
|
|
25
|
+
".": {
|
|
26
|
+
"types": "./index.d.ts",
|
|
27
|
+
"import": "./index.js",
|
|
28
|
+
"default": "./index.js"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"scripts": {
|
|
32
|
+
"test": "tsc --project tsconfig.json"
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"@girs/gjs": "^4.0.4",
|
|
36
|
+
"@girs/graphene-1.0": "^4.0.4",
|
|
37
|
+
"@girs/gobject-2.0": "^4.0.4",
|
|
38
|
+
"@girs/glib-2.0": "^4.0.4" },
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"typescript": "*"
|
|
41
|
+
},
|
|
42
|
+
"keywords": ["Gir", "TypeScript", "types", "GObject-Introspection", "GJS", "Mtk-14"],
|
|
43
|
+
"author": "ts-for-gir",
|
|
44
|
+
"license": "MIT",
|
|
45
|
+
"repository": {
|
|
46
|
+
"type": "git",
|
|
47
|
+
"url": "git+https://github.com/gjsify/types.git"
|
|
48
|
+
},
|
|
49
|
+
"bugs": {
|
|
50
|
+
"url": "https://github.com/gjsify/ts-for-gir/issues"
|
|
51
|
+
},
|
|
52
|
+
"homepage": "https://github.com/gjsify/types/tree/main/mtk-14#readme"
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
// General settings for code interpretation
|
|
4
|
+
"target": "ESNext",
|
|
5
|
+
"module": "NodeNext",
|
|
6
|
+
"lib": ["ESNext"],
|
|
7
|
+
"types": [],
|
|
8
|
+
"experimentalDecorators": true,
|
|
9
|
+
"moduleResolution": "NodeNext",
|
|
10
|
+
"noEmit": true,
|
|
11
|
+
"noEmitOnError": false,
|
|
12
|
+
"rootDir": ".",
|
|
13
|
+
// General settings for code generation
|
|
14
|
+
"removeComments": false,
|
|
15
|
+
"inlineSourceMap": false,
|
|
16
|
+
"inlineSources": false,
|
|
17
|
+
"newLine": "LF",
|
|
18
|
+
// Show diagnostics
|
|
19
|
+
"diagnostics": true,
|
|
20
|
+
"paths": {
|
|
21
|
+
"@girs/graphene-1.0": [
|
|
22
|
+
"../graphene-1.0/index.d.ts"
|
|
23
|
+
],
|
|
24
|
+
"@girs/gobject-2.0": [
|
|
25
|
+
"../gobject-2.0/index.d.ts"
|
|
26
|
+
],
|
|
27
|
+
"@girs/glib-2.0": [
|
|
28
|
+
"../glib-2.0/index.d.ts"
|
|
29
|
+
],
|
|
30
|
+
"@girs/gjs": [
|
|
31
|
+
"../gjs/index.d.ts"
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"include": ["./mtk-14.d.ts"]
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
|
package/typedoc.json
ADDED