@girs/braseromedia-3.1 4.8.0 → 5.0.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/braseromedia-3.1-vocabulary.d.ts +21 -0
- package/braseromedia-3.1-vocabulary.js +16 -0
- package/braseromedia-3.1.d.ts +6 -24
- package/package.json +15 -15
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|

|
|
5
5
|

|
|
6
6
|
|
|
7
|
-
GJS TypeScript type definitions for BraseroMedia-3.1 using [ts-for-gir](https://github.com/gjsify/ts-for-gir)
|
|
7
|
+
GJS TypeScript type definitions for BraseroMedia-3.1 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v5.0.0.
|
|
8
8
|
|
|
9
9
|
This package contains type declarations only. It ships no runtime code, so it adds
|
|
10
10
|
nothing to your program and works with any bundler or none at all.
|
|
@@ -227,6 +227,27 @@ export const FLAG_VALUES: Readonly<Record<string, number>>;
|
|
|
227
227
|
/** `<bitfield GType>.<nick>` -> the raw GIR `value` no number could be read from. */
|
|
228
228
|
export const FLAG_VALUES_UNREADABLE: Readonly<Record<string, string>>;
|
|
229
229
|
|
|
230
|
+
/**
|
|
231
|
+
* `<declaration GType>.<property>` -> the GType of that property's enum or bitfield.
|
|
232
|
+
*
|
|
233
|
+
* The join the value tables need and nothing else here carries. A host with no GI has a
|
|
234
|
+
* property name and a nick and needs a number; `ENUM_VALUES` is keyed by ENUM GType, and
|
|
235
|
+
* only this says which enum a property is. Keyed by DECLARATION like `OWN_PROPS`, so it is
|
|
236
|
+
* read at every link of a `DECLS` chain — `orientation` belongs to `GtkOrientable`, not
|
|
237
|
+
* to the `GtkBox` a caller starts from.
|
|
238
|
+
*
|
|
239
|
+
* Present only where the property's OWN type is the enum: an array of them, or a union that
|
|
240
|
+
* merely mentions one, would be an entry a consumer resolves wrongly.
|
|
241
|
+
*
|
|
242
|
+
* The GType named here is not always one THIS module gives numbers for. A nick vocabulary is
|
|
243
|
+
* emitted once, by the namespace that owns the enum, so `AdwComboRow.search-match-mode` names
|
|
244
|
+
* `GtkStringFilterMatchMode` and its rows are in `@girs/gtk-4.0/vocabulary` — 57 of the 438
|
|
245
|
+
* entries in a full run resolve only with the owner's vocabulary loaded beside this one. An
|
|
246
|
+
* owner with no vocabulary of its own (Gdk, Pango) is inlined here instead, so every entry
|
|
247
|
+
* resolves against SOME module.
|
|
248
|
+
*/
|
|
249
|
+
export const PROP_ENUMS: Readonly<Record<string, string>>;
|
|
250
|
+
|
|
230
251
|
/** Widget GType -> slot name -> the method that may adopt a child there. */
|
|
231
252
|
export const SLOT_CANDIDATES: Readonly<Record<string, Readonly<Record<string, string>>>>;
|
|
232
253
|
|
|
@@ -96,6 +96,22 @@ export const FLAG_VALUES = {};
|
|
|
96
96
|
// so this is the table that shape actually reaches.
|
|
97
97
|
export const FLAG_VALUES_UNREADABLE = {};
|
|
98
98
|
|
|
99
|
+
// Declaration GType + property name -> the GType of that property's enum or bitfield.
|
|
100
|
+
//
|
|
101
|
+
// Without it the value tables above are half an answer. A host with no GI knows it must set
|
|
102
|
+
// `orientation` to the number behind the nick `vertical`; `ENUM_VALUES` is keyed
|
|
103
|
+
// `GtkOrientation.vertical`, and nothing else says that `orientation` is a
|
|
104
|
+
// `GtkOrientation`. Deriving it is not available: `never` is a member of several Gtk enums,
|
|
105
|
+
// and choosing between them produces a wrong number rather than a missing one.
|
|
106
|
+
//
|
|
107
|
+
// Only where the property's OWN type is the enum. An array of them and a union that mentions
|
|
108
|
+
// one are both entries a consumer would resolve wrongly, so neither is written.
|
|
109
|
+
//
|
|
110
|
+
// A GType named here has numbers in SOME vocabulary, not necessarily this one: the namespace
|
|
111
|
+
// that OWNS an enum publishes it, so 57 of the 438 entries a full run emits want the owner's
|
|
112
|
+
// vocabulary loaded too. Owners that emit none (Gdk, Pango) are inlined into the tables above.
|
|
113
|
+
export const PROP_ENUMS = {};
|
|
114
|
+
|
|
99
115
|
export const SLOT_CANDIDATES = {};
|
|
100
116
|
|
|
101
117
|
export const SINCE = {};
|
package/braseromedia-3.1.d.ts
CHANGED
|
@@ -326,15 +326,12 @@ export namespace BraseroMedia {
|
|
|
326
326
|
// Signals
|
|
327
327
|
/** @signal */
|
|
328
328
|
connect<K extends keyof Drive.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, Drive.SignalSignatures[K]>): number;
|
|
329
|
-
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
330
329
|
|
|
331
330
|
/** @signal */
|
|
332
331
|
connect_after<K extends keyof Drive.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, Drive.SignalSignatures[K]>): number;
|
|
333
|
-
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
334
332
|
|
|
335
333
|
/** @signal */
|
|
336
|
-
emit<K extends keyof Drive.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<Drive.SignalSignatures[K]>
|
|
337
|
-
emit(signal: string, ...args: any[]): void;
|
|
334
|
+
emit<K extends keyof Drive.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<Drive.SignalSignatures[K]>): void;
|
|
338
335
|
|
|
339
336
|
// Virtual methods
|
|
340
337
|
/**
|
|
@@ -618,15 +615,12 @@ export namespace BraseroMedia {
|
|
|
618
615
|
// Signals
|
|
619
616
|
/** @signal */
|
|
620
617
|
connect<K extends keyof DriveSelection.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, DriveSelection.SignalSignatures[K]>): number;
|
|
621
|
-
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
622
618
|
|
|
623
619
|
/** @signal */
|
|
624
620
|
connect_after<K extends keyof DriveSelection.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, DriveSelection.SignalSignatures[K]>): number;
|
|
625
|
-
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
626
621
|
|
|
627
622
|
/** @signal */
|
|
628
|
-
emit<K extends keyof DriveSelection.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<DriveSelection.SignalSignatures[K]>
|
|
629
|
-
emit(signal: string, ...args: any[]): void;
|
|
623
|
+
emit<K extends keyof DriveSelection.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<DriveSelection.SignalSignatures[K]>): void;
|
|
630
624
|
|
|
631
625
|
// Virtual methods
|
|
632
626
|
/**
|
|
@@ -1008,15 +1002,12 @@ export namespace BraseroMedia {
|
|
|
1008
1002
|
// Signals
|
|
1009
1003
|
/** @signal */
|
|
1010
1004
|
connect<K extends keyof Medium.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, Medium.SignalSignatures[K]>): number;
|
|
1011
|
-
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
1012
1005
|
|
|
1013
1006
|
/** @signal */
|
|
1014
1007
|
connect_after<K extends keyof Medium.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, Medium.SignalSignatures[K]>): number;
|
|
1015
|
-
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
1016
1008
|
|
|
1017
1009
|
/** @signal */
|
|
1018
|
-
emit<K extends keyof Medium.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<Medium.SignalSignatures[K]>
|
|
1019
|
-
emit(signal: string, ...args: any[]): void;
|
|
1010
|
+
emit<K extends keyof Medium.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<Medium.SignalSignatures[K]>): void;
|
|
1020
1011
|
|
|
1021
1012
|
// Methods
|
|
1022
1013
|
/**
|
|
@@ -1247,15 +1238,12 @@ export namespace BraseroMedia {
|
|
|
1247
1238
|
// Signals
|
|
1248
1239
|
/** @signal */
|
|
1249
1240
|
connect<K extends keyof MediumMonitor.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, MediumMonitor.SignalSignatures[K]>): number;
|
|
1250
|
-
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
1251
1241
|
|
|
1252
1242
|
/** @signal */
|
|
1253
1243
|
connect_after<K extends keyof MediumMonitor.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, MediumMonitor.SignalSignatures[K]>): number;
|
|
1254
|
-
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
1255
1244
|
|
|
1256
1245
|
/** @signal */
|
|
1257
|
-
emit<K extends keyof MediumMonitor.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<MediumMonitor.SignalSignatures[K]>
|
|
1258
|
-
emit(signal: string, ...args: any[]): void;
|
|
1246
|
+
emit<K extends keyof MediumMonitor.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<MediumMonitor.SignalSignatures[K]>): void;
|
|
1259
1247
|
|
|
1260
1248
|
// Virtual methods
|
|
1261
1249
|
/**
|
|
@@ -1427,15 +1415,12 @@ export namespace BraseroMedia {
|
|
|
1427
1415
|
// Signals
|
|
1428
1416
|
/** @signal */
|
|
1429
1417
|
connect<K extends keyof MediumSelection.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, MediumSelection.SignalSignatures[K]>): number;
|
|
1430
|
-
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
1431
1418
|
|
|
1432
1419
|
/** @signal */
|
|
1433
1420
|
connect_after<K extends keyof MediumSelection.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, MediumSelection.SignalSignatures[K]>): number;
|
|
1434
|
-
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
1435
1421
|
|
|
1436
1422
|
/** @signal */
|
|
1437
|
-
emit<K extends keyof MediumSelection.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<MediumSelection.SignalSignatures[K]>
|
|
1438
|
-
emit(signal: string, ...args: any[]): void;
|
|
1423
|
+
emit<K extends keyof MediumSelection.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<MediumSelection.SignalSignatures[K]>): void;
|
|
1439
1424
|
|
|
1440
1425
|
// Virtual methods
|
|
1441
1426
|
/**
|
|
@@ -1807,15 +1792,12 @@ export namespace BraseroMedia {
|
|
|
1807
1792
|
// Signals
|
|
1808
1793
|
/** @signal */
|
|
1809
1794
|
connect<K extends keyof Volume.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, Volume.SignalSignatures[K]>): number;
|
|
1810
|
-
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
1811
1795
|
|
|
1812
1796
|
/** @signal */
|
|
1813
1797
|
connect_after<K extends keyof Volume.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, Volume.SignalSignatures[K]>): number;
|
|
1814
|
-
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
1815
1798
|
|
|
1816
1799
|
/** @signal */
|
|
1817
|
-
emit<K extends keyof Volume.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<Volume.SignalSignatures[K]>
|
|
1818
|
-
emit(signal: string, ...args: any[]): void;
|
|
1800
|
+
emit<K extends keyof Volume.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<Volume.SignalSignatures[K]>): void;
|
|
1819
1801
|
|
|
1820
1802
|
// Methods
|
|
1821
1803
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/braseromedia-3.1",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "GJS TypeScript type definitions for BraseroMedia-3.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "braseromedia-3.1.js",
|
|
@@ -36,20 +36,20 @@
|
|
|
36
36
|
"test": "tsc --project tsconfig.json"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@girs/gjs": "^
|
|
40
|
-
"@girs/gtk-3.0": "^
|
|
41
|
-
"@girs/xlib-2.0": "^
|
|
42
|
-
"@girs/gdk-3.0": "^
|
|
43
|
-
"@girs/cairo-1.0": "^
|
|
44
|
-
"@girs/gobject-2.0": "^
|
|
45
|
-
"@girs/glib-2.0": "^
|
|
46
|
-
"@girs/pango-1.0": "^
|
|
47
|
-
"@girs/harfbuzz-0.0": "^
|
|
48
|
-
"@girs/freetype2-2.0": "^
|
|
49
|
-
"@girs/gio-2.0": "^
|
|
50
|
-
"@girs/gmodule-2.0": "^
|
|
51
|
-
"@girs/gdkpixbuf-2.0": "^
|
|
52
|
-
"@girs/atk-1.0": "^
|
|
39
|
+
"@girs/gjs": "^5.0.0",
|
|
40
|
+
"@girs/gtk-3.0": "^5.0.0",
|
|
41
|
+
"@girs/xlib-2.0": "^5.0.0",
|
|
42
|
+
"@girs/gdk-3.0": "^5.0.0",
|
|
43
|
+
"@girs/cairo-1.0": "^5.0.0",
|
|
44
|
+
"@girs/gobject-2.0": "^5.0.0",
|
|
45
|
+
"@girs/glib-2.0": "^5.0.0",
|
|
46
|
+
"@girs/pango-1.0": "^5.0.0",
|
|
47
|
+
"@girs/harfbuzz-0.0": "^5.0.0",
|
|
48
|
+
"@girs/freetype2-2.0": "^5.0.0",
|
|
49
|
+
"@girs/gio-2.0": "^5.0.0",
|
|
50
|
+
"@girs/gmodule-2.0": "^5.0.0",
|
|
51
|
+
"@girs/gdkpixbuf-2.0": "^5.0.0",
|
|
52
|
+
"@girs/atk-1.0": "^5.0.0" },
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"typescript": "*"
|
|
55
55
|
},
|