@girs/sdk-gnome-50 5.4.0 → 5.5.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/adw-1/adw-1.d.ts CHANGED
@@ -1026,7 +1026,7 @@ export namespace Adw {
1026
1026
 
1027
1027
  /**
1028
1028
  * Adwaita micro version component (e.g. 3 if the version is 1.2.3).
1029
- * @default 3
1029
+ * @default 4
1030
1030
  */
1031
1031
  const MICRO_VERSION: number;
1032
1032
 
@@ -1039,7 +1039,7 @@ export namespace Adw {
1039
1039
  /**
1040
1040
  * Adwaita version, encoded as a string, useful for printing and
1041
1041
  * concatenation.
1042
- * @default 1.9.3
1042
+ * @default 1.9.4
1043
1043
  */
1044
1044
  const VERSION_S: string;
1045
1045
 
@@ -1615,7 +1615,7 @@ export namespace Atk {
1615
1615
  * application compile time, rather than from the library linked
1616
1616
  * against at application run time.
1617
1617
  * @since 2.7.4
1618
- * @default 26016
1618
+ * @default 26017
1619
1619
  */
1620
1620
  const BINARY_AGE: number;
1621
1621
 
@@ -1642,7 +1642,7 @@ export namespace Atk {
1642
1642
  * application compile time, rather than from the library linked
1643
1643
  * against at application run time.
1644
1644
  * @since 2.7.4
1645
- * @default 6
1645
+ * @default 7
1646
1646
  */
1647
1647
  const MICRO_VERSION: number;
1648
1648
 
package/gck-2/gck-2.d.ts CHANGED
@@ -127,7 +127,7 @@ export namespace Gck {
127
127
 
128
128
  /**
129
129
  * The micro version number of the Gck library.
130
- * @default 0
130
+ * @default 1
131
131
  */
132
132
  const MICRO_VERSION: number;
133
133
 
package/gcr-4/gcr-4.d.ts CHANGED
@@ -294,7 +294,7 @@ export namespace Gcr {
294
294
 
295
295
  /**
296
296
  * The micro version number of the Gcr library.
297
- * @default 0
297
+ * @default 1
298
298
  */
299
299
  const MICRO_VERSION: number;
300
300
 
@@ -5723,7 +5723,7 @@ export namespace Gcr {
5723
5723
  * displayed by the prompt allowing the user to select or deselect it.
5724
5724
  *
5725
5725
  * The initial value of the choice can be set with the
5726
- * `gcr_prompt_set_choice_label()` method.
5726
+ * `gcr_prompt_set_choice_chosen()` method.
5727
5727
  *
5728
5728
  * If this is `null`, then no additional choice is being displayed.
5729
5729
  * @param choice_label the additional choice or `null`
@@ -7888,7 +7888,7 @@ export namespace Gcr {
7888
7888
  * displayed by the prompt allowing the user to select or deselect it.
7889
7889
  *
7890
7890
  * The initial value of the choice can be set with the
7891
- * `gcr_prompt_set_choice_label()` method.
7891
+ * `gcr_prompt_set_choice_chosen()` method.
7892
7892
  *
7893
7893
  * If this is `null`, then no additional choice is being displayed.
7894
7894
  * @param choice_label the additional choice or `null`
@@ -38,7 +38,10 @@ export interface SignalDefinition {
38
38
  flags?: SignalFlags
39
39
  accumulator: number
40
40
  return_type?: GTypeInput
41
- param_types?: GTypeInput[]
41
+ // `readonly` matches `SignalDefinitionType` below, and for the same reason: GJS reads the array
42
+ // length and its elements to build the C `GType` array (`JS::GetArrayLength` / `JS_GetElement`)
43
+ // and never writes to it.
44
+ param_types?: readonly GTypeInput[]
42
45
  }
43
46
 
44
47
  export interface MetaInfo<Props, Interfaces, Sigs> {
@@ -49,9 +52,16 @@ export interface MetaInfo<Props, Interfaces, Sigs> {
49
52
  Implements?: Interfaces
50
53
  CssName?: string
51
54
  Template?: Uint8Array | GLib.Bytes | string
52
- Children?: string[]
53
- InternalChildren?: string[]
54
- Requires?: Object[]
55
+ // `Children`, `InternalChildren`, `Requires` and `Implements` are `readonly` because GJS only
56
+ // ever READS them: `registerClass` stores the array on the class and later iterates it --
57
+ // `for (let child of children)`, `internalChildren.forEach(...)`, `requires.filter(...)` and
58
+ // `[...gobjectInterfaces].reverse()`, a copy. Nothing pushes, splices or sorts in place.
59
+ // A mutable type made a consumer's own `const` data reject its own value: a typed export from a
60
+ // `.blp` template, or any `as const` list, is a `readonly` tuple and produced TS4104 against a
61
+ // field the caller may not write to anyway.
62
+ Children?: readonly string[]
63
+ InternalChildren?: readonly string[]
64
+ Requires?: readonly Object[]
55
65
  }
56
66
 
57
67
  export type Property<K extends ParamSpec> = K extends ParamSpec<infer T> ? T : any
@@ -72,7 +82,11 @@ type SnakeToUnderscore<T> = { [P in keyof T as P extends string ? SnakeToUndersc
72
82
  // Advanced utility types for class registration
73
83
  type UnionToIntersection<T> = (T extends any ? (x: T) => any : never) extends (x: infer R) => any ? R : never
74
84
 
75
- type IFaces<Interfaces extends { $gtype: GType<any> }[]> = {
85
+ // `readonly` on every `Interfaces` constraint below, for the same reason as `MetaInfo.Implements`:
86
+ // a caller passing `Implements: [Gio.ListModel] as const` infers a `readonly` tuple, which a
87
+ // mutable-array constraint rejects (TS4104) even though GJS never writes to the array. The
88
+ // constraints stay satisfied by an ordinary mutable array, so existing consumers are unaffected.
89
+ type IFaces<Interfaces extends readonly { $gtype: GType<any> }[]> = {
76
90
  [key in keyof Interfaces]: Interfaces[key] extends { $gtype: GType<infer I> } ? I : never
77
91
  }
78
92
 
@@ -90,7 +104,7 @@ export type Properties<
90
104
  export type RegisteredPrototype<
91
105
  P extends {},
92
106
  Props extends { [key: string]: ParamSpec },
93
- Interfaces extends any[],
107
+ Interfaces extends readonly any[],
94
108
  > = Properties<P, SnakeToUnderscore<Props>> & UnionToIntersection<Interfaces[number]> & P
95
109
 
96
110
  type Ctor = new (...a: any[]) => object
@@ -99,7 +113,7 @@ type Init = { _init(...args: any[]): void }
99
113
  export type RegisteredClass<
100
114
  T extends Ctor,
101
115
  Props extends { [key: string]: ParamSpec },
102
- Interfaces extends { $gtype: GType<any> }[],
116
+ Interfaces extends readonly { $gtype: GType<any> }[],
103
117
  > = T extends { prototype: infer P extends {} }
104
118
  ? {
105
119
  $gtype: GType<RegisteredClass<T, Props, IFaces<Interfaces>>>
@@ -363,7 +377,7 @@ export function registerClass<P extends {}, T extends new (...args: any[]) => P>
363
377
  export function registerClass<
364
378
  T extends Ctor,
365
379
  Props extends { [key: string]: ParamSpec },
366
- Interfaces extends { $gtype: GType }[],
380
+ Interfaces extends readonly { $gtype: GType }[],
367
381
  Sigs extends {
368
382
  [key: string]: {
369
383
  param_types?: readonly GTypeInput[]
@@ -5509,7 +5509,7 @@ export interface Builder {
5509
5509
  * Like {@link get_binary_age}, but from the headers used at
5510
5510
  * application compile time, rather than from the library linked
5511
5511
  * against at application run time.
5512
- * @default 2204
5512
+ * @default 2205
5513
5513
  */
5514
5514
  const BINARY_AGE: number;
5515
5515
 
@@ -5532,7 +5532,7 @@ export interface Builder {
5532
5532
  * Like {@link get_interface_age}, but from the headers used at
5533
5533
  * application compile time, rather than from the library linked
5534
5534
  * against at application run time.
5535
- * @default 4
5535
+ * @default 5
5536
5536
  */
5537
5537
  const INTERFACE_AGE: number;
5538
5538
 
@@ -5594,7 +5594,7 @@ export interface Builder {
5594
5594
  * Like {@link get_micro_version}, but from the headers used at
5595
5595
  * application compile time, rather than from the library linked
5596
5596
  * against at application run time.
5597
- * @default 4
5597
+ * @default 5
5598
5598
  */
5599
5599
  const MICRO_VERSION: number;
5600
5600
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/sdk-gnome-50",
3
- "version": "5.4.0",
3
+ "version": "5.5.0",
4
4
  "description": "GJS TypeScript type definitions for -1 namespaces, generated as one self-contained package",
5
5
  "type": "module",
6
6
  "exports": {
@@ -2295,18 +2295,18 @@
2295
2295
  "glib-2.0": "2.88.3",
2296
2296
  "gio-2.0": "2.88.3",
2297
2297
  "gobject-2.0": "2.88.3",
2298
- "adw-1": "1.9.3",
2298
+ "adw-1": "1.9.4",
2299
2299
  "appstream-1.0": "1.0.6",
2300
- "atk-1.0": "2.60.6",
2300
+ "atk-1.0": "2.60.7",
2301
2301
  "girepository-2.0": "1.86.0",
2302
2302
  "gck-1": "1.0.0",
2303
- "gck-2": "4.4.0",
2303
+ "gck-2": "4.4.1",
2304
2304
  "gcr-3": "3.41.2",
2305
- "gcr-4": "4.4.0",
2305
+ "gcr-4": "4.4.1",
2306
2306
  "gdk-3.0": "3.24.52",
2307
2307
  "gst-1.0": "1.26.11",
2308
2308
  "gtk-3.0": "3.24.52",
2309
- "gtk-4.0": "4.22.4",
2309
+ "gtk-4.0": "4.22.5",
2310
2310
  "gtksource-5": "5.20.0",
2311
2311
  "harfbuzz-0.0": "11.4.5",
2312
2312
  "ibus-1.0": "1.5.32",
@@ -2316,8 +2316,8 @@
2316
2316
  "manette-0.2": "0.2.13",
2317
2317
  "notify-0.7": "0.8.8",
2318
2318
  "pango-1.0": "1.57.1",
2319
- "rsvg-2.0": "2.62.3",
2320
- "secret-1": "0.21.7",
2319
+ "rsvg-2.0": "2.62.4",
2320
+ "secret-1": "0.21.8",
2321
2321
  "soup-3.0": "3.6.6",
2322
2322
  "tracker-3.0": "3.11.1",
2323
2323
  "tsparql-3.0": "3.11.1",
@@ -2341,9 +2341,9 @@
2341
2341
  "sdk": {
2342
2342
  "id": "org.gnome.Sdk",
2343
2343
  "branch": "50",
2344
- "commit": "13a6133ae1414dd8f5103e7c87620950818736a2840f458f8913e53567a59088"
2344
+ "commit": "4b50cb5758124e3990c3051fd568d522473ae4126f38ca601863a32f043f6daf"
2345
2345
  },
2346
- "generator": "5.4.0",
2346
+ "generator": "5.5.0",
2347
2347
  "repository": {
2348
2348
  "type": "git",
2349
2349
  "url": "git+https://github.com/gjsify/types.git"
@@ -152,7 +152,7 @@ export namespace Rsvg {
152
152
  * program is running with (e.g. the version which the linker used for
153
153
  * your program), or for programs not written in C, use
154
154
  * `rsvg_micro_version` instead.
155
- * @default 3
155
+ * @default 4
156
156
  */
157
157
  const MICRO_VERSION: number;
158
158
 
@@ -191,7 +191,7 @@ export namespace Rsvg {
191
191
  * program is running with (e.g. the version which the linker used for
192
192
  * your program), or for programs not written in C, use
193
193
  * `rsvg_version` instead.
194
- * @default 2.62.3
194
+ * @default 2.62.4
195
195
  */
196
196
  const VERSION: string;
197
197
 
@@ -260,7 +260,7 @@ export namespace Secret {
260
260
 
261
261
  /**
262
262
  * The micro version of libsecret.
263
- * @default 7
263
+ * @default 8
264
264
  */
265
265
  const MICRO_VERSION: number;
266
266