@girs/sdk-gnome-49 5.1.0 → 5.3.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.
@@ -88,11 +88,11 @@ export namespace JavaScriptCore {
88
88
  */
89
89
  UINT = 2,
90
90
  /**
91
- * A `gsize` options type.
91
+ * A `gsize` option type.
92
92
  */
93
93
  SIZE = 3,
94
94
  /**
95
- * A `gdouble` options type.
95
+ * A `gdouble` option type.
96
96
  */
97
97
  DOUBLE = 4,
98
98
  /**
@@ -175,7 +175,7 @@ export namespace JavaScriptCore {
175
175
  * Like `jsc_get_micro_version()`, but from the headers used at
176
176
  * application compile time, rather than from the library linked
177
177
  * against at application run time.
178
- * @default 5
178
+ * @default 0
179
179
  */
180
180
  const MICRO_VERSION: number;
181
181
 
@@ -183,7 +183,7 @@ export namespace JavaScriptCore {
183
183
  * Like `jsc_get_minor_version()`, but from the headers used at
184
184
  * application compile time, rather than from the library linked
185
185
  * against at application run time.
186
- * @default 52
186
+ * @default 54
187
187
  */
188
188
  const MINOR_VERSION: number;
189
189
 
@@ -261,7 +261,7 @@ export namespace JavaScriptCore {
261
261
 
262
262
  /**
263
263
  * Iterates all available options calling `function` for each one. Iteration can
264
- * stop early if `function` returns `false`.
264
+ * stop early if `function` returns `true`.
265
265
  * @param _function a {@link JavaScriptCore.OptionsFunc} callback
266
266
  * @since 2.24
267
267
  */
@@ -294,11 +294,11 @@ export namespace JavaScriptCore {
294
294
  /**
295
295
  * Create a {@link GLib.OptionGroup} to handle JSCOptions as command line arguments.
296
296
  * The options will be exposed as command line arguments with the form
297
- * <emphasis>--jsc-&lt;option&gt;=&lt;value&gt;</emphasis>.
297
+ * `--jsc-<option>=<value>`.
298
298
  * Each entry in the returned {@link GLib.OptionGroup} is configured to apply the
299
299
  * corresponding option during command line parsing. Applications only need to
300
300
  * pass the returned group to `g_option_context_add_group()`, and the rest will
301
- * be taken care for automatically.
301
+ * be taken care of automatically.
302
302
  * @returns a {@link GLib.OptionGroup} for the JSCOptions
303
303
  * @since 2.24
304
304
  */
@@ -306,9 +306,9 @@ export namespace JavaScriptCore {
306
306
 
307
307
  /**
308
308
  * Get `option` as a range string. The string must be in the
309
- * format <emphasis>[!]&lt;low&gt;[:&lt;high&gt;]</emphasis> where low and high are `guint` values.
309
+ * format `[!]<low>[:<high>]` where low and high are `guint` values.
310
310
  * Values between low and high (both included) will be considered in
311
- * the range, unless <emphasis>!</emphasis> is used to invert the range.
311
+ * the range, unless `!` is used to invert the range.
312
312
  * @param option the option identifier
313
313
  * @returns `true` if `value` has been set or `false` if the option doesn't exist
314
314
  * @since 2.24
@@ -368,9 +368,9 @@ export namespace JavaScriptCore {
368
368
 
369
369
  /**
370
370
  * Set `option` as a range string. The string must be in the
371
- * format <emphasis>[!]&lt;low&gt;[:&lt;high&gt;]</emphasis> where low and high are `guint` values.
371
+ * format `[!]<low>[:<high>]` where low and high are `guint` values.
372
372
  * Values between low and high (both included) will be considered in
373
- * the range, unless <emphasis>!</emphasis> is used to invert the range.
373
+ * the range, unless `!` is used to invert the range.
374
374
  * @param option the option identifier
375
375
  * @param value the value to set
376
376
  * @returns `true` if option was correctly set or `false` otherwise.
@@ -502,11 +502,11 @@ export namespace JavaScriptCore {
502
502
  }
503
503
 
504
504
  /**
505
- * A JSSClass represents a custom JavaScript class registered by the user in a {@link JavaScriptCore.Context}.
506
- * It allows to create new JavaScripts objects whose instances are created by the user using
505
+ * A JSCClass represents a custom JavaScript class registered by the user in a {@link JavaScriptCore.Context}.
506
+ * It allows creating new JavaScript objects whose instances are created by the user using
507
507
  * this API.
508
- * It's possible to add constructors, properties and methods for a JSSClass by providing
509
- * {@link GObject.Callback}<!-- -->s to implement them.
508
+ * It's possible to add constructors, properties and methods for a JSCClass by providing
509
+ * {@link GObject.Callback} functions to implement them.
510
510
  * @gir-type Class
511
511
  */
512
512
  class Class extends GObject.Object {
@@ -558,9 +558,9 @@ export namespace JavaScriptCore {
558
558
 
559
559
  // Methods
560
560
  /**
561
- * Add a constructor to `jsc_class`. If `name` is `null`, the class name will be used. When <function>new</function>
561
+ * Add a constructor to `jsc_class`. If `name` is `null`, the class name will be used. When `new`
562
562
  * is used with the constructor or `jsc_value_constructor_call()` is called, `callback` is invoked receiving
563
- * a {@link GLib.PtrArray} of {@link JavaScriptCore.Value}<!-- -->s as arguments and `user_data` as the last parameter. When the constructor object
563
+ * a {@link GLib.PtrArray} of {@link JavaScriptCore.Value} objects as arguments and `user_data` as the last parameter. When the constructor object
564
564
  * is cleared in the {@link JavaScriptCore.Class} context, `destroy_notify` is called with `user_data` as parameter.
565
565
  *
566
566
  * This function creates the constructor, which needs to be added to an object as a property to be able to use it. Use
@@ -576,7 +576,7 @@ export namespace JavaScriptCore {
576
576
  add_constructor_variadic(name: string | null, callback: GObject.Callback, return_type: GObject.GType): Value;
577
577
 
578
578
  /**
579
- * Add a constructor to `jsc_class`. If `name` is `null`, the class name will be used. When <function>new</function>
579
+ * Add a constructor to `jsc_class`. If `name` is `null`, the class name will be used. When `new`
580
580
  * is used with the constructor or `jsc_value_constructor_call()` is called, `callback` is invoked receiving the
581
581
  * parameters and `user_data` as the last parameter. When the constructor object is cleared in the {@link JavaScriptCore.Class} context,
582
582
  * `destroy_notify` is called with `user_data` as parameter.
@@ -589,14 +589,14 @@ export namespace JavaScriptCore {
589
589
  * @param name the constructor name or `null`
590
590
  * @param callback a {@link GObject.Callback} to be called to create an instance of `jsc_class`
591
591
  * @param return_type the {@link GObject.GType} of the constructor return value
592
- * @param parameter_types a list of {@link GObject.GType}<!-- -->s, one for each parameter, or `null`
592
+ * @param parameter_types a list of {@link GObject.GType} values, one for each parameter, or `null`
593
593
  * @returns a {@link JavaScriptCore.Value} representing the class constructor.
594
594
  */
595
595
  add_constructor(name: string | null, callback: GObject.Callback, return_type: GObject.GType, parameter_types: GObject.GType[] | null): Value;
596
596
 
597
597
  /**
598
598
  * Add method with `name` to `jsc_class`. When the method is called by JavaScript or `jsc_value_object_invoke_method()`,
599
- * `callback` is called receiving the class instance as first parameter, followed by a {@link GLib.PtrArray} of {@link JavaScriptCore.Value}<!-- -->s
599
+ * `callback` is called receiving the class instance as first parameter, followed by a {@link GLib.PtrArray} of {@link JavaScriptCore.Value} objects
600
600
  * with the method arguments and then `user_data` as last parameter. When the method is cleared in the {@link JavaScriptCore.Class} context,
601
601
  * `destroy_notify` is called with `user_data` as parameter.
602
602
  *
@@ -623,14 +623,14 @@ export namespace JavaScriptCore {
623
623
  * @param name the method name
624
624
  * @param callback a {@link GObject.Callback} to be called to invoke method `name` of `jsc_class`
625
625
  * @param return_type the {@link GObject.GType} of the method return value, or `G_TYPE_NONE` if the method is void.
626
- * @param parameter_types a list of {@link GObject.GType}<!-- -->s, one for each parameter, or `null`
626
+ * @param parameter_types a list of {@link GObject.GType} values, one for each parameter, or `null`
627
627
  */
628
628
  add_method(name: string, callback: GObject.Callback, return_type: GObject.GType, parameter_types: GObject.GType[] | null): void;
629
629
 
630
630
  /**
631
631
  * Add a property with `name` to `jsc_class`. When the property value is read, `getter` is called
632
- * receiving the the class instance as first parameter and `user_data` as last parameter. When the property
633
- * value needs to be set, `setter` is called receiving the the class instance as first parameter, followed
632
+ * receiving the class instance as first parameter and `user_data` as last parameter. When the property
633
+ * value needs to be set, `setter` is called receiving the class instance as first parameter, followed
634
634
  * by the value to be set and then `user_data` as the last parameter. When the property is cleared in the
635
635
  * {@link JavaScriptCore.Class} context, `destroy_notify` is called with `user_data` as parameter.
636
636
  *
@@ -762,7 +762,7 @@ export namespace JavaScriptCore {
762
762
  evaluate(code: string, length: bigint | number): Value;
763
763
 
764
764
  /**
765
- * Evaluate `code` and create an new object where symbols defined in `code` will be added as properties,
765
+ * Evaluate `code` and create a new object where symbols defined in `code` will be added as properties,
766
766
  * instead of being added to `context` global object. The new object is returned as `object` parameter.
767
767
  * Similar to how `jsc_value_new_object()` works, if `object_instance` is not `null` `object_class` must be provided too.
768
768
  * The `line_number` is the starting line number in `uri`; the value is one-based so the first line is 1.
@@ -790,7 +790,7 @@ export namespace JavaScriptCore {
790
790
  evaluate_with_source_uri(code: string, length: bigint | number, uri: string, line_number: number): Value;
791
791
 
792
792
  /**
793
- * Get the last unhandled exception thrown in `context` by API functions calls.
793
+ * Get the last unhandled exception thrown in `context` by API function calls.
794
794
  * @returns a {@link JavaScriptCore.Exception} or `null` if there isn't any unhandled exception in the {@link JavaScriptCore.Context}.
795
795
  */
796
796
  get_exception(): Exception | null;
@@ -836,7 +836,7 @@ export namespace JavaScriptCore {
836
836
  /**
837
837
  * Register a custom class in `context` using the given `name`. If the new class inherits from
838
838
  * another {@link JavaScriptCore.Class}, the parent should be passed as `parent_class`, otherwise `null` should be
839
- * used. The optional `vtable` parameter allows to provide a custom implementation for handling
839
+ * used. The optional `vtable` parameter allows providing a custom implementation for handling
840
840
  * the class, for example, to handle external properties not added to the prototype.
841
841
  * When an instance of the {@link JavaScriptCore.Class} is cleared in the context, `destroy_notify` is called with
842
842
  * the instance as parameter.
@@ -953,12 +953,12 @@ export namespace JavaScriptCore {
953
953
 
954
954
  /**
955
955
  * Get the source URI of `exception`.
956
- * @returns the the source URI of `exception`, or `null`.
956
+ * @returns the source URI of `exception`, or `null`.
957
957
  */
958
958
  get_source_uri(): string | null;
959
959
 
960
960
  /**
961
- * Return a report message of `exception`, containing all the possible details such us
961
+ * Return a report message of `exception`, containing all the possible details such as
962
962
  * source URI, line, column and backtrace, and formatted to be printed.
963
963
  * @returns a new string with the exception report
964
964
  */
@@ -1086,9 +1086,9 @@ export namespace JavaScriptCore {
1086
1086
  array_buffer_get_size(): number;
1087
1087
 
1088
1088
  /**
1089
- * Invoke <function>new</function> with constructor referenced by `value`. If `n_parameters`
1089
+ * Invoke `new` with constructor referenced by `value`. If `n_parameters`
1090
1090
  * is 0 no parameters will be passed to the constructor.
1091
- * @param parameters the {@link JavaScriptCore.Value}<!-- -->s to pass as parameters to the constructor, or `null`
1091
+ * @param parameters the {@link JavaScriptCore.Value} objects to pass as parameters to the constructor, or `null`
1092
1092
  * @returns a {@link JavaScriptCore.Value} referencing the newly created object instance.
1093
1093
  */
1094
1094
  constructor_call(parameters: Value[] | null): Value;
@@ -1098,8 +1098,8 @@ export namespace JavaScriptCore {
1098
1098
  * is 0 no parameters will be passed to the function.
1099
1099
  *
1100
1100
  * This function always returns a {@link JavaScriptCore.Value}, in case of void functions a {@link JavaScriptCore.Value} referencing
1101
- * <function>undefined</function> is returned
1102
- * @param parameters the {@link JavaScriptCore.Value}<!-- -->s to pass as parameters to the function, or `null`
1101
+ * `undefined` is returned
1102
+ * @param parameters the {@link JavaScriptCore.Value} objects to pass as parameters to the function, or `null`
1103
1103
  * @returns a {@link JavaScriptCore.Value} with the return value of the function.
1104
1104
  */
1105
1105
  function_call(parameters: Value[] | null): Value;
@@ -1142,8 +1142,8 @@ export namespace JavaScriptCore {
1142
1142
  is_function(): boolean;
1143
1143
 
1144
1144
  /**
1145
- * Get whether the value referenced by `value` is <function>null</function>.
1146
- * @returns whether the value is null.
1145
+ * Get whether the value referenced by `value` is `null`.
1146
+ * @returns whether the value is `null`.
1147
1147
  */
1148
1148
  is_null(): boolean;
1149
1149
 
@@ -1173,7 +1173,7 @@ export namespace JavaScriptCore {
1173
1173
  is_typed_array(): boolean;
1174
1174
 
1175
1175
  /**
1176
- * Get whether the value referenced by `value` is <function>undefined</function>.
1176
+ * Get whether the value referenced by `value` is `undefined`.
1177
1177
  * @returns whether the value is undefined.
1178
1178
  */
1179
1179
  is_undefined(): boolean;
@@ -1205,7 +1205,7 @@ export namespace JavaScriptCore {
1205
1205
  * Define or modify a property with `property_name` in object referenced by `value`. When the
1206
1206
  * property value is read or set, `getter` and `setter` callbacks will be called.
1207
1207
  * When the property is cleared in the {@link JavaScriptCore.Class} context, `destroy_notify` is called with
1208
- * `user_data` as parameter. This is equivalent to JavaScript <function>Object.defineProperty()</function>
1208
+ * `user_data` as parameter. This is equivalent to JavaScript `Object.defineProperty()`
1209
1209
  * when used with an accessor descriptor.
1210
1210
  *
1211
1211
  * Note that the value returned by `getter` must be fully transferred. In case of boxed types, you could use
@@ -1225,7 +1225,7 @@ export namespace JavaScriptCore {
1225
1225
 
1226
1226
  /**
1227
1227
  * Define or modify a property with `property_name` in object referenced by `value`. This is equivalent to
1228
- * JavaScript <function>Object.defineProperty()</function> when used with a data descriptor.
1228
+ * JavaScript `Object.defineProperty()` when used with a data descriptor.
1229
1229
  * @param property_name the name of the property to define
1230
1230
  * @param flags {@link JavaScriptCore.ValuePropertyFlags}
1231
1231
  * @param property_value the default property value
@@ -1276,9 +1276,9 @@ export namespace JavaScriptCore {
1276
1276
  * of this function.
1277
1277
  *
1278
1278
  * This function always returns a {@link JavaScriptCore.Value}, in case of void methods a {@link JavaScriptCore.Value} referencing
1279
- * <function>undefined</function> is returned.
1279
+ * `undefined` is returned.
1280
1280
  * @param name the method name
1281
- * @param parameters the {@link JavaScriptCore.Value}<!-- -->s to pass as parameters to the method, or `null`
1281
+ * @param parameters the {@link JavaScriptCore.Value} objects to pass as parameters to the method, or `null`
1282
1282
  * @returns a {@link JavaScriptCore.Value} with the return value of the method.
1283
1283
  */
1284
1284
  object_invoke_method(name: string, parameters: Value[] | null): Value;
@@ -1356,9 +1356,9 @@ export namespace JavaScriptCore {
1356
1356
  * Obtains a pointer to the memory region that holds the elements of the typed
1357
1357
  * array; modifications done to them will be visible to JavaScript code. If
1358
1358
  * `length` is not `null`, the number of elements contained in the typed array
1359
- * are also stored in the pointed location.
1359
+ * is also stored in the pointed location.
1360
1360
  *
1361
- * The returned pointer needs to be casted to the appropriate type (see
1361
+ * The returned pointer needs to be cast to the appropriate type (see
1362
1362
  * {@link JavaScriptCore.TypedArrayType}), and has the `offset` over the underlying array
1363
1363
  * buffer data applied—that is, points to the first element of the typed
1364
1364
  * array:
@@ -1369,7 +1369,7 @@ export namespace JavaScriptCore {
1369
1369
  * g_error ("Only arrays of uint32_t are supported");
1370
1370
  *
1371
1371
  * gsize count = 0;
1372
- * uint32_t *elements = jsc_value_typed_array_get_contents (value, &count);
1372
+ * uint32_t *elements = jsc_value_typed_array_get_data (value, &count);
1373
1373
  * for (gsize i = 0; i < count; i++)
1374
1374
  * g_print ("index %zu, value %" PRIu32 "\n", i, elements[i]);
1375
1375
  * ```
@@ -1422,11 +1422,11 @@ export namespace JavaScriptCore {
1422
1422
  }
1423
1423
 
1424
1424
  /**
1425
- * JSCVirtualMachine represents a group of JSCContext<!-- -->s. It allows
1425
+ * JSCVirtualMachine represents a group of JSCContext objects. It allows
1426
1426
  * concurrent JavaScript execution by creating a different instance of
1427
1427
  * JSCVirtualMachine in each thread.
1428
1428
  *
1429
- * To create a group of JSCContext<!-- -->s pass the same JSCVirtualMachine
1429
+ * To create a group of JSCContext objects pass the same JSCVirtualMachine
1430
1430
  * instance to every JSCContext constructor.
1431
1431
  * @gir-type Class
1432
1432
  */
@@ -88,11 +88,11 @@ export namespace JavaScriptCore {
88
88
  */
89
89
  UINT = 2,
90
90
  /**
91
- * A `gsize` options type.
91
+ * A `gsize` option type.
92
92
  */
93
93
  SIZE = 3,
94
94
  /**
95
- * A `gdouble` options type.
95
+ * A `gdouble` option type.
96
96
  */
97
97
  DOUBLE = 4,
98
98
  /**
@@ -175,7 +175,7 @@ export namespace JavaScriptCore {
175
175
  * Like `jsc_get_micro_version()`, but from the headers used at
176
176
  * application compile time, rather than from the library linked
177
177
  * against at application run time.
178
- * @default 5
178
+ * @default 0
179
179
  */
180
180
  const MICRO_VERSION: number;
181
181
 
@@ -183,7 +183,7 @@ export namespace JavaScriptCore {
183
183
  * Like `jsc_get_minor_version()`, but from the headers used at
184
184
  * application compile time, rather than from the library linked
185
185
  * against at application run time.
186
- * @default 52
186
+ * @default 54
187
187
  */
188
188
  const MINOR_VERSION: number;
189
189
 
@@ -261,7 +261,7 @@ export namespace JavaScriptCore {
261
261
 
262
262
  /**
263
263
  * Iterates all available options calling `function` for each one. Iteration can
264
- * stop early if `function` returns `false`.
264
+ * stop early if `function` returns `true`.
265
265
  * @param _function a {@link JavaScriptCore.OptionsFunc} callback
266
266
  * @since 2.24
267
267
  */
@@ -294,11 +294,11 @@ export namespace JavaScriptCore {
294
294
  /**
295
295
  * Create a {@link GLib.OptionGroup} to handle JSCOptions as command line arguments.
296
296
  * The options will be exposed as command line arguments with the form
297
- * <emphasis>--jsc-&lt;option&gt;=&lt;value&gt;</emphasis>.
297
+ * `--jsc-<option>=<value>`.
298
298
  * Each entry in the returned {@link GLib.OptionGroup} is configured to apply the
299
299
  * corresponding option during command line parsing. Applications only need to
300
300
  * pass the returned group to `g_option_context_add_group()`, and the rest will
301
- * be taken care for automatically.
301
+ * be taken care of automatically.
302
302
  * @returns a {@link GLib.OptionGroup} for the JSCOptions
303
303
  * @since 2.24
304
304
  */
@@ -306,9 +306,9 @@ export namespace JavaScriptCore {
306
306
 
307
307
  /**
308
308
  * Get `option` as a range string. The string must be in the
309
- * format <emphasis>[!]&lt;low&gt;[:&lt;high&gt;]</emphasis> where low and high are `guint` values.
309
+ * format `[!]<low>[:<high>]` where low and high are `guint` values.
310
310
  * Values between low and high (both included) will be considered in
311
- * the range, unless <emphasis>!</emphasis> is used to invert the range.
311
+ * the range, unless `!` is used to invert the range.
312
312
  * @param option the option identifier
313
313
  * @returns `true` if `value` has been set or `false` if the option doesn't exist
314
314
  * @since 2.24
@@ -368,9 +368,9 @@ export namespace JavaScriptCore {
368
368
 
369
369
  /**
370
370
  * Set `option` as a range string. The string must be in the
371
- * format <emphasis>[!]&lt;low&gt;[:&lt;high&gt;]</emphasis> where low and high are `guint` values.
371
+ * format `[!]<low>[:<high>]` where low and high are `guint` values.
372
372
  * Values between low and high (both included) will be considered in
373
- * the range, unless <emphasis>!</emphasis> is used to invert the range.
373
+ * the range, unless `!` is used to invert the range.
374
374
  * @param option the option identifier
375
375
  * @param value the value to set
376
376
  * @returns `true` if option was correctly set or `false` otherwise.
@@ -502,11 +502,11 @@ export namespace JavaScriptCore {
502
502
  }
503
503
 
504
504
  /**
505
- * A JSSClass represents a custom JavaScript class registered by the user in a {@link JavaScriptCore.Context}.
506
- * It allows to create new JavaScripts objects whose instances are created by the user using
505
+ * A JSCClass represents a custom JavaScript class registered by the user in a {@link JavaScriptCore.Context}.
506
+ * It allows creating new JavaScript objects whose instances are created by the user using
507
507
  * this API.
508
- * It's possible to add constructors, properties and methods for a JSSClass by providing
509
- * {@link GObject.Callback}<!-- -->s to implement them.
508
+ * It's possible to add constructors, properties and methods for a JSCClass by providing
509
+ * {@link GObject.Callback} functions to implement them.
510
510
  * @gir-type Class
511
511
  */
512
512
  class Class extends GObject.Object {
@@ -558,9 +558,9 @@ export namespace JavaScriptCore {
558
558
 
559
559
  // Methods
560
560
  /**
561
- * Add a constructor to `jsc_class`. If `name` is `null`, the class name will be used. When <function>new</function>
561
+ * Add a constructor to `jsc_class`. If `name` is `null`, the class name will be used. When `new`
562
562
  * is used with the constructor or `jsc_value_constructor_call()` is called, `callback` is invoked receiving
563
- * a {@link GLib.PtrArray} of {@link JavaScriptCore.Value}<!-- -->s as arguments and `user_data` as the last parameter. When the constructor object
563
+ * a {@link GLib.PtrArray} of {@link JavaScriptCore.Value} objects as arguments and `user_data` as the last parameter. When the constructor object
564
564
  * is cleared in the {@link JavaScriptCore.Class} context, `destroy_notify` is called with `user_data` as parameter.
565
565
  *
566
566
  * This function creates the constructor, which needs to be added to an object as a property to be able to use it. Use
@@ -576,7 +576,7 @@ export namespace JavaScriptCore {
576
576
  add_constructor_variadic(name: string | null, callback: GObject.Callback, return_type: GObject.GType): Value;
577
577
 
578
578
  /**
579
- * Add a constructor to `jsc_class`. If `name` is `null`, the class name will be used. When <function>new</function>
579
+ * Add a constructor to `jsc_class`. If `name` is `null`, the class name will be used. When `new`
580
580
  * is used with the constructor or `jsc_value_constructor_call()` is called, `callback` is invoked receiving the
581
581
  * parameters and `user_data` as the last parameter. When the constructor object is cleared in the {@link JavaScriptCore.Class} context,
582
582
  * `destroy_notify` is called with `user_data` as parameter.
@@ -589,14 +589,14 @@ export namespace JavaScriptCore {
589
589
  * @param name the constructor name or `null`
590
590
  * @param callback a {@link GObject.Callback} to be called to create an instance of `jsc_class`
591
591
  * @param return_type the {@link GObject.GType} of the constructor return value
592
- * @param parameter_types a list of {@link GObject.GType}<!-- -->s, one for each parameter, or `null`
592
+ * @param parameter_types a list of {@link GObject.GType} values, one for each parameter, or `null`
593
593
  * @returns a {@link JavaScriptCore.Value} representing the class constructor.
594
594
  */
595
595
  add_constructor(name: string | null, callback: GObject.Callback, return_type: GObject.GType, parameter_types: GObject.GType[] | null): Value;
596
596
 
597
597
  /**
598
598
  * Add method with `name` to `jsc_class`. When the method is called by JavaScript or `jsc_value_object_invoke_method()`,
599
- * `callback` is called receiving the class instance as first parameter, followed by a {@link GLib.PtrArray} of {@link JavaScriptCore.Value}<!-- -->s
599
+ * `callback` is called receiving the class instance as first parameter, followed by a {@link GLib.PtrArray} of {@link JavaScriptCore.Value} objects
600
600
  * with the method arguments and then `user_data` as last parameter. When the method is cleared in the {@link JavaScriptCore.Class} context,
601
601
  * `destroy_notify` is called with `user_data` as parameter.
602
602
  *
@@ -623,14 +623,14 @@ export namespace JavaScriptCore {
623
623
  * @param name the method name
624
624
  * @param callback a {@link GObject.Callback} to be called to invoke method `name` of `jsc_class`
625
625
  * @param return_type the {@link GObject.GType} of the method return value, or `G_TYPE_NONE` if the method is void.
626
- * @param parameter_types a list of {@link GObject.GType}<!-- -->s, one for each parameter, or `null`
626
+ * @param parameter_types a list of {@link GObject.GType} values, one for each parameter, or `null`
627
627
  */
628
628
  add_method(name: string, callback: GObject.Callback, return_type: GObject.GType, parameter_types: GObject.GType[] | null): void;
629
629
 
630
630
  /**
631
631
  * Add a property with `name` to `jsc_class`. When the property value is read, `getter` is called
632
- * receiving the the class instance as first parameter and `user_data` as last parameter. When the property
633
- * value needs to be set, `setter` is called receiving the the class instance as first parameter, followed
632
+ * receiving the class instance as first parameter and `user_data` as last parameter. When the property
633
+ * value needs to be set, `setter` is called receiving the class instance as first parameter, followed
634
634
  * by the value to be set and then `user_data` as the last parameter. When the property is cleared in the
635
635
  * {@link JavaScriptCore.Class} context, `destroy_notify` is called with `user_data` as parameter.
636
636
  *
@@ -762,7 +762,7 @@ export namespace JavaScriptCore {
762
762
  evaluate(code: string, length: bigint | number): Value;
763
763
 
764
764
  /**
765
- * Evaluate `code` and create an new object where symbols defined in `code` will be added as properties,
765
+ * Evaluate `code` and create a new object where symbols defined in `code` will be added as properties,
766
766
  * instead of being added to `context` global object. The new object is returned as `object` parameter.
767
767
  * Similar to how `jsc_value_new_object()` works, if `object_instance` is not `null` `object_class` must be provided too.
768
768
  * The `line_number` is the starting line number in `uri`; the value is one-based so the first line is 1.
@@ -790,7 +790,7 @@ export namespace JavaScriptCore {
790
790
  evaluate_with_source_uri(code: string, length: bigint | number, uri: string, line_number: number): Value;
791
791
 
792
792
  /**
793
- * Get the last unhandled exception thrown in `context` by API functions calls.
793
+ * Get the last unhandled exception thrown in `context` by API function calls.
794
794
  * @returns a {@link JavaScriptCore.Exception} or `null` if there isn't any unhandled exception in the {@link JavaScriptCore.Context}.
795
795
  */
796
796
  get_exception(): Exception | null;
@@ -836,7 +836,7 @@ export namespace JavaScriptCore {
836
836
  /**
837
837
  * Register a custom class in `context` using the given `name`. If the new class inherits from
838
838
  * another {@link JavaScriptCore.Class}, the parent should be passed as `parent_class`, otherwise `null` should be
839
- * used. The optional `vtable` parameter allows to provide a custom implementation for handling
839
+ * used. The optional `vtable` parameter allows providing a custom implementation for handling
840
840
  * the class, for example, to handle external properties not added to the prototype.
841
841
  * When an instance of the {@link JavaScriptCore.Class} is cleared in the context, `destroy_notify` is called with
842
842
  * the instance as parameter.
@@ -953,12 +953,12 @@ export namespace JavaScriptCore {
953
953
 
954
954
  /**
955
955
  * Get the source URI of `exception`.
956
- * @returns the the source URI of `exception`, or `null`.
956
+ * @returns the source URI of `exception`, or `null`.
957
957
  */
958
958
  get_source_uri(): string | null;
959
959
 
960
960
  /**
961
- * Return a report message of `exception`, containing all the possible details such us
961
+ * Return a report message of `exception`, containing all the possible details such as
962
962
  * source URI, line, column and backtrace, and formatted to be printed.
963
963
  * @returns a new string with the exception report
964
964
  */
@@ -1086,9 +1086,9 @@ export namespace JavaScriptCore {
1086
1086
  array_buffer_get_size(): number;
1087
1087
 
1088
1088
  /**
1089
- * Invoke <function>new</function> with constructor referenced by `value`. If `n_parameters`
1089
+ * Invoke `new` with constructor referenced by `value`. If `n_parameters`
1090
1090
  * is 0 no parameters will be passed to the constructor.
1091
- * @param parameters the {@link JavaScriptCore.Value}<!-- -->s to pass as parameters to the constructor, or `null`
1091
+ * @param parameters the {@link JavaScriptCore.Value} objects to pass as parameters to the constructor, or `null`
1092
1092
  * @returns a {@link JavaScriptCore.Value} referencing the newly created object instance.
1093
1093
  */
1094
1094
  constructor_call(parameters: Value[] | null): Value;
@@ -1098,8 +1098,8 @@ export namespace JavaScriptCore {
1098
1098
  * is 0 no parameters will be passed to the function.
1099
1099
  *
1100
1100
  * This function always returns a {@link JavaScriptCore.Value}, in case of void functions a {@link JavaScriptCore.Value} referencing
1101
- * <function>undefined</function> is returned
1102
- * @param parameters the {@link JavaScriptCore.Value}<!-- -->s to pass as parameters to the function, or `null`
1101
+ * `undefined` is returned
1102
+ * @param parameters the {@link JavaScriptCore.Value} objects to pass as parameters to the function, or `null`
1103
1103
  * @returns a {@link JavaScriptCore.Value} with the return value of the function.
1104
1104
  */
1105
1105
  function_call(parameters: Value[] | null): Value;
@@ -1142,8 +1142,8 @@ export namespace JavaScriptCore {
1142
1142
  is_function(): boolean;
1143
1143
 
1144
1144
  /**
1145
- * Get whether the value referenced by `value` is <function>null</function>.
1146
- * @returns whether the value is null.
1145
+ * Get whether the value referenced by `value` is `null`.
1146
+ * @returns whether the value is `null`.
1147
1147
  */
1148
1148
  is_null(): boolean;
1149
1149
 
@@ -1173,7 +1173,7 @@ export namespace JavaScriptCore {
1173
1173
  is_typed_array(): boolean;
1174
1174
 
1175
1175
  /**
1176
- * Get whether the value referenced by `value` is <function>undefined</function>.
1176
+ * Get whether the value referenced by `value` is `undefined`.
1177
1177
  * @returns whether the value is undefined.
1178
1178
  */
1179
1179
  is_undefined(): boolean;
@@ -1205,7 +1205,7 @@ export namespace JavaScriptCore {
1205
1205
  * Define or modify a property with `property_name` in object referenced by `value`. When the
1206
1206
  * property value is read or set, `getter` and `setter` callbacks will be called.
1207
1207
  * When the property is cleared in the {@link JavaScriptCore.Class} context, `destroy_notify` is called with
1208
- * `user_data` as parameter. This is equivalent to JavaScript <function>Object.defineProperty()</function>
1208
+ * `user_data` as parameter. This is equivalent to JavaScript `Object.defineProperty()`
1209
1209
  * when used with an accessor descriptor.
1210
1210
  *
1211
1211
  * Note that the value returned by `getter` must be fully transferred. In case of boxed types, you could use
@@ -1225,7 +1225,7 @@ export namespace JavaScriptCore {
1225
1225
 
1226
1226
  /**
1227
1227
  * Define or modify a property with `property_name` in object referenced by `value`. This is equivalent to
1228
- * JavaScript <function>Object.defineProperty()</function> when used with a data descriptor.
1228
+ * JavaScript `Object.defineProperty()` when used with a data descriptor.
1229
1229
  * @param property_name the name of the property to define
1230
1230
  * @param flags {@link JavaScriptCore.ValuePropertyFlags}
1231
1231
  * @param property_value the default property value
@@ -1276,9 +1276,9 @@ export namespace JavaScriptCore {
1276
1276
  * of this function.
1277
1277
  *
1278
1278
  * This function always returns a {@link JavaScriptCore.Value}, in case of void methods a {@link JavaScriptCore.Value} referencing
1279
- * <function>undefined</function> is returned.
1279
+ * `undefined` is returned.
1280
1280
  * @param name the method name
1281
- * @param parameters the {@link JavaScriptCore.Value}<!-- -->s to pass as parameters to the method, or `null`
1281
+ * @param parameters the {@link JavaScriptCore.Value} objects to pass as parameters to the method, or `null`
1282
1282
  * @returns a {@link JavaScriptCore.Value} with the return value of the method.
1283
1283
  */
1284
1284
  object_invoke_method(name: string, parameters: Value[] | null): Value;
@@ -1356,9 +1356,9 @@ export namespace JavaScriptCore {
1356
1356
  * Obtains a pointer to the memory region that holds the elements of the typed
1357
1357
  * array; modifications done to them will be visible to JavaScript code. If
1358
1358
  * `length` is not `null`, the number of elements contained in the typed array
1359
- * are also stored in the pointed location.
1359
+ * is also stored in the pointed location.
1360
1360
  *
1361
- * The returned pointer needs to be casted to the appropriate type (see
1361
+ * The returned pointer needs to be cast to the appropriate type (see
1362
1362
  * {@link JavaScriptCore.TypedArrayType}), and has the `offset` over the underlying array
1363
1363
  * buffer data applied—that is, points to the first element of the typed
1364
1364
  * array:
@@ -1369,7 +1369,7 @@ export namespace JavaScriptCore {
1369
1369
  * g_error ("Only arrays of uint32_t are supported");
1370
1370
  *
1371
1371
  * gsize count = 0;
1372
- * uint32_t *elements = jsc_value_typed_array_get_contents (value, &count);
1372
+ * uint32_t *elements = jsc_value_typed_array_get_data (value, &count);
1373
1373
  * for (gsize i = 0; i < count; i++)
1374
1374
  * g_print ("index %zu, value %" PRIu32 "\n", i, elements[i]);
1375
1375
  * ```
@@ -1422,11 +1422,11 @@ export namespace JavaScriptCore {
1422
1422
  }
1423
1423
 
1424
1424
  /**
1425
- * JSCVirtualMachine represents a group of JSCContext<!-- -->s. It allows
1425
+ * JSCVirtualMachine represents a group of JSCContext objects. It allows
1426
1426
  * concurrent JavaScript execution by creating a different instance of
1427
1427
  * JSCVirtualMachine in each thread.
1428
1428
  *
1429
- * To create a group of JSCContext<!-- -->s pass the same JSCVirtualMachine
1429
+ * To create a group of JSCContext objects pass the same JSCVirtualMachine
1430
1430
  * instance to every JSCContext constructor.
1431
1431
  * @gir-type Class
1432
1432
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/sdk-gnome-49",
3
- "version": "5.1.0",
3
+ "version": "5.3.0",
4
4
  "description": "GJS TypeScript type definitions for -1 namespaces, generated as one self-contained package",
5
5
  "type": "module",
6
6
  "exports": {
@@ -2310,8 +2310,8 @@
2310
2310
  "gtksource-5": "5.18.0",
2311
2311
  "harfbuzz-0.0": "11.4.5",
2312
2312
  "ibus-1.0": "1.5.32",
2313
- "javascriptcore-4.1": "2.52.5",
2314
- "javascriptcore-6.0": "2.52.5",
2313
+ "javascriptcore-4.1": "2.54.0",
2314
+ "javascriptcore-6.0": "2.54.0",
2315
2315
  "json-1.0": "1.10.8",
2316
2316
  "manette-0.2": "0.2.13",
2317
2317
  "notify-0.7": "0.8.8",
@@ -2321,8 +2321,8 @@
2321
2321
  "soup-3.0": "3.6.6",
2322
2322
  "tracker-3.0": "3.10.1",
2323
2323
  "tsparql-3.0": "3.10.1",
2324
- "webkit-6.0": "2.52.5",
2325
- "webkit2-4.1": "2.52.5",
2324
+ "webkit-6.0": "2.54.0",
2325
+ "webkit2-4.1": "2.54.0",
2326
2326
  "xmlb-2.0": "0.3.26"
2327
2327
  },
2328
2328
  "keywords": [
@@ -2341,9 +2341,9 @@
2341
2341
  "sdk": {
2342
2342
  "id": "org.gnome.Sdk",
2343
2343
  "branch": "49",
2344
- "commit": "1df084a5492fbcd01f4d9af1084ade350919de069bbc9974d6dfdb04f47ab60f"
2344
+ "commit": "d316a6c7b8d8689054a5ada2dffe3730e3b247ac8f856e9760534abd35b99a86"
2345
2345
  },
2346
- "generator": "5.1.0",
2346
+ "generator": "5.3.0",
2347
2347
  "repository": {
2348
2348
  "type": "git",
2349
2349
  "url": "git+https://github.com/gjsify/types.git"