@girs/gobject-2.0 2.82.2-4.0.0-beta.19 → 2.82.4-4.0.0-beta.20

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 CHANGED
@@ -5,7 +5,7 @@
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/gobject-2.0)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for GObject-2.0, generated from library version 2.82.2 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.19.
8
+ GJS TypeScript type definitions for GObject-2.0, generated from library version 2.82.4 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.20.
9
9
 
10
10
 
11
11
  ## Install
package/gobject-2.0.d.ts CHANGED
@@ -2898,7 +2898,7 @@ export namespace GObject {
2898
2898
  */
2899
2899
  DEEP_DERIVABLE,
2900
2900
  }
2901
- module Binding {
2901
+ namespace Binding {
2902
2902
  // Constructor properties interface
2903
2903
 
2904
2904
  interface ConstructorProps extends Object.ConstructorProps {
@@ -3124,7 +3124,7 @@ export namespace GObject {
3124
3124
  unbind(): void;
3125
3125
  }
3126
3126
 
3127
- module BindingGroup {
3127
+ namespace BindingGroup {
3128
3128
  // Constructor properties interface
3129
3129
 
3130
3130
  interface ConstructorProps extends Object.ConstructorProps {
@@ -3239,7 +3239,7 @@ export namespace GObject {
3239
3239
  set_source(source?: Object | null): void;
3240
3240
  }
3241
3241
 
3242
- module InitiallyUnowned {
3242
+ namespace InitiallyUnowned {
3243
3243
  // Constructor properties interface
3244
3244
 
3245
3245
  interface ConstructorProps extends Object.ConstructorProps {}
@@ -3261,7 +3261,7 @@ export namespace GObject {
3261
3261
  _init(...args: any[]): void;
3262
3262
  }
3263
3263
 
3264
- module Object {
3264
+ namespace Object {
3265
3265
  // Signal callback interfaces
3266
3266
 
3267
3267
  interface Notify {
@@ -3794,18 +3794,8 @@ export namespace GObject {
3794
3794
  }
3795
3795
 
3796
3796
  /**
3797
- * `GParamSpec` encapsulates the metadata required to specify parameters, such as `GObject` properties.
3798
- *
3799
- * ## Parameter names
3800
- *
3801
- * A property name consists of one or more segments consisting of ASCII letters
3802
- * and digits, separated by either the `-` or `_` character. The first
3803
- * character of a property name must be a letter. These are the same rules as
3804
- * for signal naming (see [func`GObject`.signal_new]).
3805
- *
3806
- * When creating and looking up a `GParamSpec`, either separator can be
3807
- * used, but they cannot be mixed. Using `-` is considerably more
3808
- * efficient, and is the ‘canonical form’. Using `_` is discouraged.
3797
+ * A GObject parameter specification that defines property characteristics.
3798
+ * See https://gjs.guide/guides/gobject/basics.html#properties for more details.
3809
3799
  */
3810
3800
  abstract class ParamSpec<A = unknown> {
3811
3801
  static $gtype: GType<ParamSpec>;
@@ -3833,134 +3823,281 @@ export namespace GObject {
3833
3823
  * @param name the canonical name of the property
3834
3824
  */
3835
3825
  static is_valid_name(name: string): boolean;
3826
+ /**
3827
+ * Creates a new GParamSpecChar instance specifying a G_TYPE_CHAR property.
3828
+ * @param name The name of the property
3829
+ * @param nick A human readable name for the property
3830
+ * @param blurb A longer description of the property
3831
+ * @param flags The flags for this property (e.g. READABLE, WRITABLE)
3832
+ * @param minimum The minimum value for this property
3833
+ * @param maximum The maximum value for this property
3834
+ * @param defaultValue The default value for this property
3835
+ */
3836
3836
  static ['char'](
3837
3837
  name: string,
3838
- nick: string,
3839
- blurb: string,
3838
+ nick: string | null,
3839
+ blurb: string | null,
3840
3840
  flags: ParamFlags | number,
3841
3841
  minimum: number,
3842
3842
  maximum: number,
3843
3843
  defaultValue: number,
3844
3844
  ): ParamSpec<number>;
3845
+ /**
3846
+ * Creates a new GParamSpecUChar instance specifying a G_TYPE_UCHAR property.
3847
+ * @param name The name of the property
3848
+ * @param nick A human readable name for the property
3849
+ * @param blurb A longer description of the property
3850
+ * @param flags The flags for this property (e.g. READABLE, WRITABLE)
3851
+ * @param minimum The minimum value for this property
3852
+ * @param maximum The maximum value for this property
3853
+ * @param defaultValue The default value for this property
3854
+ */
3845
3855
  static uchar(
3846
3856
  name: string,
3847
- nick: string,
3848
- blurb: string,
3857
+ nick: string | null,
3858
+ blurb: string | null,
3849
3859
  flags: ParamFlags | number,
3850
3860
  minimum: number,
3851
3861
  maximum: number,
3852
3862
  defaultValue: number,
3853
3863
  ): ParamSpec<number>;
3864
+ /**
3865
+ * Creates a new GParamSpecInt instance specifying a G_TYPE_INT property.
3866
+ * @param name The name of the property
3867
+ * @param nick A human readable name for the property
3868
+ * @param blurb A longer description of the property
3869
+ * @param flags The flags for this property (e.g. READABLE, WRITABLE)
3870
+ * @param minimum The minimum value for this property
3871
+ * @param maximum The maximum value for this property
3872
+ * @param defaultValue The default value for this property
3873
+ */
3854
3874
  static int(
3855
3875
  name: string,
3856
- nick: string,
3857
- blurb: string,
3876
+ nick: string | null,
3877
+ blurb: string | null,
3858
3878
  flags: ParamFlags | number,
3859
3879
  minimum: number,
3860
3880
  maximum: number,
3861
3881
  defaultValue: number,
3862
3882
  ): ParamSpec<number>;
3883
+ /**
3884
+ * Creates a new GParamSpecUInt instance specifying a G_TYPE_UINT property.
3885
+ * @param name The name of the property
3886
+ * @param nick A human readable name for the property
3887
+ * @param blurb A longer description of the property
3888
+ * @param flags The flags for this property (e.g. READABLE, WRITABLE)
3889
+ * @param minimum The minimum value for this property
3890
+ * @param maximum The maximum value for this property
3891
+ * @param defaultValue The default value for this property
3892
+ */
3863
3893
  static uint(
3864
3894
  name: string,
3865
- nick: string,
3866
- blurb: string,
3895
+ nick: string | null,
3896
+ blurb: string | null,
3867
3897
  flags: ParamFlags | number,
3868
3898
  minimum: number,
3869
3899
  maximum: number,
3870
3900
  defaultValue: number,
3871
3901
  ): ParamSpec<number>;
3902
+ /**
3903
+ * Creates a new GParamSpecLong instance specifying a G_TYPE_LONG property.
3904
+ * @param name The name of the property
3905
+ * @param nick A human readable name for the property
3906
+ * @param blurb A longer description of the property
3907
+ * @param flags The flags for this property (e.g. READABLE, WRITABLE)
3908
+ * @param minimum The minimum value for this property
3909
+ * @param maximum The maximum value for this property
3910
+ * @param defaultValue The default value for this property
3911
+ */
3872
3912
  static long(
3873
3913
  name: string,
3874
- nick: string,
3875
- blurb: string,
3914
+ nick: string | null,
3915
+ blurb: string | null,
3876
3916
  flags: ParamFlags | number,
3877
3917
  minimum: number,
3878
3918
  maximum: number,
3879
3919
  defaultValue: number,
3880
3920
  ): ParamSpec<number>;
3921
+ /**
3922
+ * Creates a new GParamSpecULong instance specifying a G_TYPE_ULONG property.
3923
+ * @param name The name of the property
3924
+ * @param nick A human readable name for the property
3925
+ * @param blurb A longer description of the property
3926
+ * @param flags The flags for this property (e.g. READABLE, WRITABLE)
3927
+ * @param minimum The minimum value for this property
3928
+ * @param maximum The maximum value for this property
3929
+ * @param defaultValue The default value for this property
3930
+ */
3881
3931
  static ulong(
3882
3932
  name: string,
3883
- nick: string,
3884
- blurb: string,
3933
+ nick: string | null,
3934
+ blurb: string | null,
3885
3935
  flags: ParamFlags | number,
3886
3936
  minimum: number,
3887
3937
  maximum: number,
3888
3938
  defaultValue: number,
3889
3939
  ): ParamSpec<number>;
3940
+ /**
3941
+ * Creates a new GParamSpecInt64 instance specifying a G_TYPE_INT64 property.
3942
+ * @param name The name of the property
3943
+ * @param nick A human readable name for the property
3944
+ * @param blurb A longer description of the property
3945
+ * @param flags The flags for this property (e.g. READABLE, WRITABLE)
3946
+ * @param minimum The minimum value for this property
3947
+ * @param maximum The maximum value for this property
3948
+ * @param defaultValue The default value for this property
3949
+ */
3890
3950
  static int64(
3891
3951
  name: string,
3892
- nick: string,
3893
- blurb: string,
3952
+ nick: string | null,
3953
+ blurb: string | null,
3894
3954
  flags: ParamFlags | number,
3895
3955
  minimum: number,
3896
3956
  maximum: number,
3897
3957
  defaultValue: number,
3898
3958
  ): ParamSpec<number>;
3959
+ /**
3960
+ * Creates a new GParamSpecUInt64 instance specifying a G_TYPE_UINT64 property.
3961
+ * @param name The name of the property
3962
+ * @param nick A human readable name for the property
3963
+ * @param blurb A longer description of the property
3964
+ * @param flags The flags for this property (e.g. READABLE, WRITABLE)
3965
+ * @param minimum The minimum value for this property
3966
+ * @param maximum The maximum value for this property
3967
+ * @param defaultValue The default value for this property
3968
+ */
3899
3969
  static uint64(
3900
3970
  name: string,
3901
- nick: string,
3902
- blurb: string,
3971
+ nick: string | null,
3972
+ blurb: string | null,
3903
3973
  flags: ParamFlags | number,
3904
3974
  minimum: number,
3905
3975
  maximum: number,
3906
3976
  defaultValue: number,
3907
3977
  ): ParamSpec<number>;
3978
+ /**
3979
+ * Creates a new GParamSpecFloat instance specifying a G_TYPE_FLOAT property.
3980
+ * @param name The name of the property
3981
+ * @param nick A human readable name for the property
3982
+ * @param blurb A longer description of the property
3983
+ * @param flags The flags for this property (e.g. READABLE, WRITABLE)
3984
+ * @param minimum The minimum value for this property
3985
+ * @param maximum The maximum value for this property
3986
+ * @param defaultValue The default value for this property
3987
+ */
3908
3988
  static float(
3909
3989
  name: string,
3910
- nick: string,
3911
- blurb: string,
3990
+ nick: string | null,
3991
+ blurb: string | null,
3912
3992
  flags: ParamFlags | number,
3913
3993
  minimum: number,
3914
3994
  maximum: number,
3915
3995
  defaultValue: number,
3916
3996
  ): ParamSpec<number>;
3997
+ /**
3998
+ * Creates a new GParamSpecBoolean instance specifying a G_TYPE_BOOLEAN property. In many cases, it may be more appropriate to use an enum with g_param_spec_enum(), both to improve code clarity by using explicitly named values, and to allow for more values to be added in future without breaking API.
3999
+ * @param name The name of the property
4000
+ * @param nick A human readable name for the property
4001
+ * @param blurb A longer description of the property
4002
+ * @param flags The flags for this property (e.g. READABLE, WRITABLE)
4003
+ * @param defaultValue The default value for this property
4004
+ */
3917
4005
  static ['boolean'](
3918
4006
  name: string,
3919
- nick: string,
3920
- blurb: string,
4007
+ nick: string | null,
4008
+ blurb: string | null,
3921
4009
  flags: ParamFlags | number,
3922
4010
  defaultValue: boolean,
3923
4011
  ): ParamSpec<boolean>;
4012
+ /**
4013
+ * Creates a new GParamSpecEnum instance specifying a G_TYPE_ENUM property.
4014
+ * @param name The name of the property
4015
+ * @param nick A human readable name for the property
4016
+ * @param blurb A longer description of the property
4017
+ * @param flags The flags for this property (e.g. READABLE, WRITABLE)
4018
+ * @param enumType
4019
+ * @param defaultValue The default value for this property
4020
+ */
3924
4021
  static ['enum']<T>(
3925
4022
  name: string,
3926
- nick: string,
3927
- blurb: string,
4023
+ nick: string | null,
4024
+ blurb: string | null,
3928
4025
  flags: ParamFlags | number,
3929
4026
  enumType: GType<T> | { $gtype: GType<T> },
3930
4027
  defaultValue: any,
3931
4028
  ): ParamSpec<T>;
4029
+ /**
4030
+ * Creates a new GParamSpecDouble instance specifying a G_TYPE_DOUBLE property.
4031
+ * @param name The name of the property
4032
+ * @param nick A human readable name for the property
4033
+ * @param blurb A longer description of the property
4034
+ * @param flags The flags for this property (e.g. READABLE, WRITABLE)
4035
+ * @param minimum The minimum value for this property
4036
+ * @param maximum The maximum value for this property
4037
+ * @param defaultValue The default value for this property
4038
+ */
3932
4039
  static double(
3933
4040
  name: string,
3934
- nick: string,
3935
- blurb: string,
4041
+ nick: string | null,
4042
+ blurb: string | null,
3936
4043
  flags: ParamFlags | number,
3937
4044
  minimum: number,
3938
4045
  maximum: number,
3939
4046
  defaultValue: number,
3940
4047
  ): ParamSpec<number>;
4048
+ /**
4049
+ * Creates a new GParamSpecString instance specifying a G_TYPE_STRING property.
4050
+ * @param name The name of the property
4051
+ * @param nick A human readable name for the property
4052
+ * @param blurb A longer description of the property
4053
+ * @param flags The flags for this property (e.g. READABLE, WRITABLE)
4054
+ * @param defaultValue The default value for this property
4055
+ */
3941
4056
  static string(
3942
4057
  name: string,
3943
- nick: string,
3944
- blurb: string,
4058
+ nick: string | null,
4059
+ blurb: string | null,
3945
4060
  flags: ParamFlags | number,
3946
4061
  defaultValue: string,
3947
4062
  ): ParamSpec<string>;
4063
+ /**
4064
+ * Creates a new GParamSpecBoxed instance specifying a G_TYPE_BOXED derived property.
4065
+ * @param name The name of the property
4066
+ * @param nick A human readable name for the property
4067
+ * @param blurb A longer description of the property
4068
+ * @param flags The flags for this property (e.g. READABLE, WRITABLE)
4069
+ * @param boxedType
4070
+ */
3948
4071
  static boxed<T>(
3949
4072
  name: string,
3950
- nick: string,
3951
- blurb: string,
4073
+ nick: string | null,
4074
+ blurb: string | null,
3952
4075
  flags: ParamFlags | number,
3953
4076
  boxedType: GType<T> | { $gtype: GType<T> },
3954
4077
  ): ParamSpec<T>;
3955
4078
  static object<T>(
3956
4079
  name: string,
3957
- nick: string,
3958
- blurb: string,
4080
+ nick: string | null,
4081
+ blurb: string | null,
3959
4082
  flags: string,
3960
4083
  objectType: GType<T> | { $gtype: GType<T> },
3961
4084
  ): ParamSpec<T>;
3962
- static param(name: string, nick: string, blurb: string, flags: ParamFlags | number, paramType: any): ParamSpec;
3963
- static jsobject<T>(name: string, nick: string, blurb: string, flags: any): ParamSpec<T>;
4085
+ /**
4086
+ * Creates a new GParamSpecParam instance specifying a G_TYPE_PARAM property.
4087
+ * @param name The name of the property
4088
+ * @param nick A human readable name for the property
4089
+ * @param blurb A longer description of the property
4090
+ * @param flags The flags for this property (e.g. READABLE, WRITABLE)
4091
+ * @param paramType
4092
+ */
4093
+ static param(
4094
+ name: string,
4095
+ nick: string | null,
4096
+ blurb: string | null,
4097
+ flags: ParamFlags | number,
4098
+ paramType: any,
4099
+ ): ParamSpec;
4100
+ static jsobject<T>(name: string, nick: string | null, blurb: string | null, flags: any): ParamSpec<T>;
3964
4101
 
3965
4102
  // Virtual methods
3966
4103
 
@@ -4080,7 +4217,7 @@ export namespace GObject {
4080
4217
  override(name: string, oclass: Object | Function | GType): void;
4081
4218
  }
4082
4219
 
4083
- module SignalGroup {
4220
+ namespace SignalGroup {
4084
4221
  // Signal callback interfaces
4085
4222
 
4086
4223
  interface Bind {
@@ -4231,7 +4368,7 @@ export namespace GObject {
4231
4368
  unblock(): void;
4232
4369
  }
4233
4370
 
4234
- module TypeModule {
4371
+ namespace TypeModule {
4235
4372
  // Constructor properties interface
4236
4373
 
4237
4374
  interface ConstructorProps extends Object.ConstructorProps, TypePlugin.ConstructorProps {}
@@ -6473,7 +6610,7 @@ export namespace GObject {
6473
6610
  _init(...args: any[]): void;
6474
6611
  }
6475
6612
 
6476
- module TypePlugin {
6613
+ namespace TypePlugin {
6477
6614
  // Constructor properties interface
6478
6615
 
6479
6616
  interface ConstructorProps extends Object.ConstructorProps {}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@girs/gobject-2.0",
3
- "version": "2.82.2-4.0.0-beta.19",
4
- "description": "GJS TypeScript type definitions for GObject-2.0, generated from library version 2.82.2",
3
+ "version": "2.82.4-4.0.0-beta.20",
4
+ "description": "GJS TypeScript type definitions for GObject-2.0, generated from library version 2.82.4",
5
5
  "type": "module",
6
6
  "module": "gobject-2.0.js",
7
7
  "main": "gobject-2.0.js",
@@ -31,8 +31,8 @@
31
31
  "test": "tsc --project tsconfig.json"
32
32
  },
33
33
  "dependencies": {
34
- "@girs/gjs": "^4.0.0-beta.19",
35
- "@girs/glib-2.0": "^2.82.2-4.0.0-beta.19"
34
+ "@girs/gjs": "^4.0.0-beta.20",
35
+ "@girs/glib-2.0": "^2.82.4-4.0.0-beta.20"
36
36
  },
37
37
  "devDependencies": {
38
38
  "typescript": "*"