@girs/gobject-2.0 2.78.0-3.2.6 → 2.78.0-3.2.7

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.78.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.6.
8
+ GJS TypeScript type definitions for GObject-2.0, generated from library version 2.78.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.7.
9
9
 
10
10
  GObject provides the object system used for Pango and GTK+.
11
11
 
package/gobject-2.0.d.cts CHANGED
@@ -721,14 +721,14 @@ export function enum_get_value(enum_class: EnumClass, value: number): EnumValue
721
721
  * @param name the name to look up
722
722
  * @returns the #GEnumValue with name @name, or %NULL if the enumeration doesn't have a member with that name
723
723
  */
724
- export function enum_get_value_by_name(enum_class: EnumClass, name: string | null): EnumValue | null
724
+ export function enum_get_value_by_name(enum_class: EnumClass, name: string): EnumValue | null
725
725
  /**
726
726
  * Looks up a #GEnumValue by nickname.
727
727
  * @param enum_class a #GEnumClass
728
728
  * @param nick the nickname to look up
729
729
  * @returns the #GEnumValue with nickname @nick, or %NULL if the enumeration doesn't have a member with that nickname
730
730
  */
731
- export function enum_get_value_by_nick(enum_class: EnumClass, nick: string | null): EnumValue | null
731
+ export function enum_get_value_by_nick(enum_class: EnumClass, nick: string): EnumValue | null
732
732
  /**
733
733
  * Registers a new static enumeration type with the name `name`.
734
734
  *
@@ -739,7 +739,7 @@ export function enum_get_value_by_nick(enum_class: EnumClass, nick: string | nul
739
739
  * @param const_static_values An array of #GEnumValue structs for the possible enumeration values. The array is terminated by a struct with all members being 0. GObject keeps a reference to the data, so it cannot be stack-allocated.
740
740
  * @returns The new type identifier.
741
741
  */
742
- export function enum_register_static(name: string | null, const_static_values: EnumValue): GType
742
+ export function enum_register_static(name: string, const_static_values: EnumValue): GType
743
743
  /**
744
744
  * Pretty-prints `value` in the form of the enum’s name.
745
745
  *
@@ -771,14 +771,14 @@ export function flags_get_first_value(flags_class: FlagsClass, value: number): F
771
771
  * @param name the name to look up
772
772
  * @returns the #GFlagsValue with name @name, or %NULL if there is no flag with that name
773
773
  */
774
- export function flags_get_value_by_name(flags_class: FlagsClass, name: string | null): FlagsValue | null
774
+ export function flags_get_value_by_name(flags_class: FlagsClass, name: string): FlagsValue | null
775
775
  /**
776
776
  * Looks up a #GFlagsValue by nickname.
777
777
  * @param flags_class a #GFlagsClass
778
778
  * @param nick the nickname to look up
779
779
  * @returns the #GFlagsValue with nickname @nick, or %NULL if there is no flag with that nickname
780
780
  */
781
- export function flags_get_value_by_nick(flags_class: FlagsClass, nick: string | null): FlagsValue | null
781
+ export function flags_get_value_by_nick(flags_class: FlagsClass, nick: string): FlagsValue | null
782
782
  /**
783
783
  * Registers a new static flags type with the name `name`.
784
784
  *
@@ -789,7 +789,7 @@ export function flags_get_value_by_nick(flags_class: FlagsClass, nick: string |
789
789
  * @param const_static_values An array of #GFlagsValue structs for the possible flags values. The array is terminated by a struct with all members being 0. GObject keeps a reference to the data, so it cannot be stack-allocated.
790
790
  * @returns The new type identifier.
791
791
  */
792
- export function flags_register_static(name: string | null, const_static_values: FlagsValue): GType
792
+ export function flags_register_static(name: string, const_static_values: FlagsValue): GType
793
793
  /**
794
794
  * Pretty-prints `value` in the form of the flag names separated by ` | ` and
795
795
  * sorted. Any extra bits will be shown at the end as a hexadecimal number.
@@ -817,7 +817,7 @@ export function gtype_get_type(): GType
817
817
  * @param flags flags for the property specified
818
818
  * @returns a newly created parameter specification
819
819
  */
820
- export function param_spec_boolean(name: string | null, nick: string | null, blurb: string | null, default_value: boolean, flags: ParamFlags): ParamSpec
820
+ export function param_spec_boolean(name: string, nick: string | null, blurb: string | null, default_value: boolean, flags: ParamFlags): ParamSpec
821
821
  /**
822
822
  * Creates a new #GParamSpecBoxed instance specifying a %G_TYPE_BOXED
823
823
  * derived property.
@@ -830,7 +830,7 @@ export function param_spec_boolean(name: string | null, nick: string | null, blu
830
830
  * @param flags flags for the property specified
831
831
  * @returns a newly created parameter specification
832
832
  */
833
- export function param_spec_boxed(name: string | null, nick: string | null, blurb: string | null, boxed_type: GType, flags: ParamFlags): ParamSpec
833
+ export function param_spec_boxed(name: string, nick: string | null, blurb: string | null, boxed_type: GType, flags: ParamFlags): ParamSpec
834
834
  /**
835
835
  * Creates a new #GParamSpecChar instance specifying a %G_TYPE_CHAR property.
836
836
  * @param name canonical name of the property specified
@@ -842,7 +842,7 @@ export function param_spec_boxed(name: string | null, nick: string | null, blurb
842
842
  * @param flags flags for the property specified
843
843
  * @returns a newly created parameter specification
844
844
  */
845
- export function param_spec_char(name: string | null, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
845
+ export function param_spec_char(name: string, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
846
846
  /**
847
847
  * Creates a new #GParamSpecDouble instance specifying a %G_TYPE_DOUBLE
848
848
  * property.
@@ -857,7 +857,7 @@ export function param_spec_char(name: string | null, nick: string | null, blurb:
857
857
  * @param flags flags for the property specified
858
858
  * @returns a newly created parameter specification
859
859
  */
860
- export function param_spec_double(name: string | null, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
860
+ export function param_spec_double(name: string, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
861
861
  /**
862
862
  * Creates a new #GParamSpecEnum instance specifying a %G_TYPE_ENUM
863
863
  * property.
@@ -871,7 +871,7 @@ export function param_spec_double(name: string | null, nick: string | null, blur
871
871
  * @param flags flags for the property specified
872
872
  * @returns a newly created parameter specification
873
873
  */
874
- export function param_spec_enum(name: string | null, nick: string | null, blurb: string | null, enum_type: GType, default_value: number, flags: ParamFlags): ParamSpec
874
+ export function param_spec_enum(name: string, nick: string | null, blurb: string | null, enum_type: GType, default_value: number, flags: ParamFlags): ParamSpec
875
875
  /**
876
876
  * Creates a new #GParamSpecFlags instance specifying a %G_TYPE_FLAGS
877
877
  * property.
@@ -885,7 +885,7 @@ export function param_spec_enum(name: string | null, nick: string | null, blurb:
885
885
  * @param flags flags for the property specified
886
886
  * @returns a newly created parameter specification
887
887
  */
888
- export function param_spec_flags(name: string | null, nick: string | null, blurb: string | null, flags_type: GType, default_value: number, flags: ParamFlags): ParamSpec
888
+ export function param_spec_flags(name: string, nick: string | null, blurb: string | null, flags_type: GType, default_value: number, flags: ParamFlags): ParamSpec
889
889
  /**
890
890
  * Creates a new #GParamSpecFloat instance specifying a %G_TYPE_FLOAT property.
891
891
  *
@@ -899,7 +899,7 @@ export function param_spec_flags(name: string | null, nick: string | null, blurb
899
899
  * @param flags flags for the property specified
900
900
  * @returns a newly created parameter specification
901
901
  */
902
- export function param_spec_float(name: string | null, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
902
+ export function param_spec_float(name: string, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
903
903
  /**
904
904
  * Creates a new #GParamSpecGType instance specifying a
905
905
  * %G_TYPE_GTYPE property.
@@ -912,7 +912,7 @@ export function param_spec_float(name: string | null, nick: string | null, blurb
912
912
  * @param flags flags for the property specified
913
913
  * @returns a newly created parameter specification
914
914
  */
915
- export function param_spec_gtype(name: string | null, nick: string | null, blurb: string | null, is_a_type: GType, flags: ParamFlags): ParamSpec
915
+ export function param_spec_gtype(name: string, nick: string | null, blurb: string | null, is_a_type: GType, flags: ParamFlags): ParamSpec
916
916
  /**
917
917
  * Creates a new #GParamSpecInt instance specifying a %G_TYPE_INT property.
918
918
  *
@@ -926,7 +926,7 @@ export function param_spec_gtype(name: string | null, nick: string | null, blurb
926
926
  * @param flags flags for the property specified
927
927
  * @returns a newly created parameter specification
928
928
  */
929
- export function param_spec_int(name: string | null, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
929
+ export function param_spec_int(name: string, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
930
930
  /**
931
931
  * Creates a new #GParamSpecInt64 instance specifying a %G_TYPE_INT64 property.
932
932
  *
@@ -940,7 +940,7 @@ export function param_spec_int(name: string | null, nick: string | null, blurb:
940
940
  * @param flags flags for the property specified
941
941
  * @returns a newly created parameter specification
942
942
  */
943
- export function param_spec_int64(name: string | null, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
943
+ export function param_spec_int64(name: string, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
944
944
  /**
945
945
  * Creates a new #GParamSpecLong instance specifying a %G_TYPE_LONG property.
946
946
  *
@@ -954,7 +954,7 @@ export function param_spec_int64(name: string | null, nick: string | null, blurb
954
954
  * @param flags flags for the property specified
955
955
  * @returns a newly created parameter specification
956
956
  */
957
- export function param_spec_long(name: string | null, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
957
+ export function param_spec_long(name: string, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
958
958
  /**
959
959
  * Creates a new #GParamSpecBoxed instance specifying a %G_TYPE_OBJECT
960
960
  * derived property.
@@ -967,7 +967,7 @@ export function param_spec_long(name: string | null, nick: string | null, blurb:
967
967
  * @param flags flags for the property specified
968
968
  * @returns a newly created parameter specification
969
969
  */
970
- export function param_spec_object(name: string | null, nick: string | null, blurb: string | null, object_type: GType, flags: ParamFlags): ParamSpec
970
+ export function param_spec_object(name: string, nick: string | null, blurb: string | null, object_type: GType, flags: ParamFlags): ParamSpec
971
971
  /**
972
972
  * Creates a new #GParamSpecParam instance specifying a %G_TYPE_PARAM
973
973
  * property.
@@ -980,7 +980,7 @@ export function param_spec_object(name: string | null, nick: string | null, blur
980
980
  * @param flags flags for the property specified
981
981
  * @returns a newly created parameter specification
982
982
  */
983
- export function param_spec_param(name: string | null, nick: string | null, blurb: string | null, param_type: GType, flags: ParamFlags): ParamSpec
983
+ export function param_spec_param(name: string, nick: string | null, blurb: string | null, param_type: GType, flags: ParamFlags): ParamSpec
984
984
  /**
985
985
  * Creates a new #GParamSpecPointer instance specifying a pointer property.
986
986
  * Where possible, it is better to use g_param_spec_object() or
@@ -993,7 +993,7 @@ export function param_spec_param(name: string | null, nick: string | null, blurb
993
993
  * @param flags flags for the property specified
994
994
  * @returns a newly created parameter specification
995
995
  */
996
- export function param_spec_pointer(name: string | null, nick: string | null, blurb: string | null, flags: ParamFlags): ParamSpec
996
+ export function param_spec_pointer(name: string, nick: string | null, blurb: string | null, flags: ParamFlags): ParamSpec
997
997
  /**
998
998
  * Creates a new #GParamSpecString instance.
999
999
  *
@@ -1005,7 +1005,7 @@ export function param_spec_pointer(name: string | null, nick: string | null, blu
1005
1005
  * @param flags flags for the property specified
1006
1006
  * @returns a newly created parameter specification
1007
1007
  */
1008
- export function param_spec_string(name: string | null, nick: string | null, blurb: string | null, default_value: string | null, flags: ParamFlags): ParamSpec
1008
+ export function param_spec_string(name: string, nick: string | null, blurb: string | null, default_value: string | null, flags: ParamFlags): ParamSpec
1009
1009
  /**
1010
1010
  * Creates a new #GParamSpecUChar instance specifying a %G_TYPE_UCHAR property.
1011
1011
  * @param name canonical name of the property specified
@@ -1017,7 +1017,7 @@ export function param_spec_string(name: string | null, nick: string | null, blur
1017
1017
  * @param flags flags for the property specified
1018
1018
  * @returns a newly created parameter specification
1019
1019
  */
1020
- export function param_spec_uchar(name: string | null, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
1020
+ export function param_spec_uchar(name: string, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
1021
1021
  /**
1022
1022
  * Creates a new #GParamSpecUInt instance specifying a %G_TYPE_UINT property.
1023
1023
  *
@@ -1031,7 +1031,7 @@ export function param_spec_uchar(name: string | null, nick: string | null, blurb
1031
1031
  * @param flags flags for the property specified
1032
1032
  * @returns a newly created parameter specification
1033
1033
  */
1034
- export function param_spec_uint(name: string | null, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
1034
+ export function param_spec_uint(name: string, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
1035
1035
  /**
1036
1036
  * Creates a new #GParamSpecUInt64 instance specifying a %G_TYPE_UINT64
1037
1037
  * property.
@@ -1046,7 +1046,7 @@ export function param_spec_uint(name: string | null, nick: string | null, blurb:
1046
1046
  * @param flags flags for the property specified
1047
1047
  * @returns a newly created parameter specification
1048
1048
  */
1049
- export function param_spec_uint64(name: string | null, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
1049
+ export function param_spec_uint64(name: string, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
1050
1050
  /**
1051
1051
  * Creates a new #GParamSpecULong instance specifying a %G_TYPE_ULONG
1052
1052
  * property.
@@ -1061,7 +1061,7 @@ export function param_spec_uint64(name: string | null, nick: string | null, blur
1061
1061
  * @param flags flags for the property specified
1062
1062
  * @returns a newly created parameter specification
1063
1063
  */
1064
- export function param_spec_ulong(name: string | null, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
1064
+ export function param_spec_ulong(name: string, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
1065
1065
  /**
1066
1066
  * Creates a new #GParamSpecUnichar instance specifying a %G_TYPE_UINT
1067
1067
  * property. #GValue structures for this property can be accessed with
@@ -1075,7 +1075,7 @@ export function param_spec_ulong(name: string | null, nick: string | null, blurb
1075
1075
  * @param flags flags for the property specified
1076
1076
  * @returns a newly created parameter specification
1077
1077
  */
1078
- export function param_spec_unichar(name: string | null, nick: string | null, blurb: string | null, default_value: string, flags: ParamFlags): ParamSpec
1078
+ export function param_spec_unichar(name: string, nick: string | null, blurb: string | null, default_value: string, flags: ParamFlags): ParamSpec
1079
1079
  /**
1080
1080
  * Creates a new #GParamSpecVariant instance specifying a #GVariant
1081
1081
  * property.
@@ -1091,7 +1091,7 @@ export function param_spec_unichar(name: string | null, nick: string | null, blu
1091
1091
  * @param flags flags for the property specified
1092
1092
  * @returns the newly created #GParamSpec
1093
1093
  */
1094
- export function param_spec_variant(name: string | null, nick: string | null, blurb: string | null, type: GLib.VariantType, default_value: GLib.Variant | null, flags: ParamFlags): ParamSpec
1094
+ export function param_spec_variant(name: string, nick: string | null, blurb: string | null, type: GLib.VariantType, default_value: GLib.Variant | null, flags: ParamFlags): ParamSpec
1095
1095
  /**
1096
1096
  * Registers `name` as the name of a new static type derived
1097
1097
  * from %G_TYPE_PARAM.
@@ -1103,7 +1103,7 @@ export function param_spec_variant(name: string | null, nick: string | null, blu
1103
1103
  * @param pspec_info The #GParamSpecTypeInfo for this #GParamSpec type.
1104
1104
  * @returns The new type identifier.
1105
1105
  */
1106
- export function param_type_register_static(name: string | null, pspec_info: ParamSpecTypeInfo): GType
1106
+ export function param_type_register_static(name: string, pspec_info: ParamSpecTypeInfo): GType
1107
1107
  /**
1108
1108
  * Transforms `src_value` into `dest_value` if possible, and then
1109
1109
  * validates `dest_value,` in order for it to conform to `pspec`. If
@@ -1168,7 +1168,7 @@ export function param_values_cmp(pspec: ParamSpec, value1: any, value2: any): nu
1168
1168
  * @param name the name of the new pointer type.
1169
1169
  * @returns a new %G_TYPE_POINTER derived type id for @name.
1170
1170
  */
1171
- export function pointer_type_register_static(name: string | null): GType
1171
+ export function pointer_type_register_static(name: string): GType
1172
1172
  /**
1173
1173
  * A predefined #GSignalAccumulator for signals intended to be used as a
1174
1174
  * hook for application code to provide a particular value. Usually
@@ -1231,7 +1231,7 @@ export function signal_chain_from_overridden(instance_and_params: any[], return_
1231
1231
  * @param after whether the handler should be called before or after the default handler of the signal.
1232
1232
  * @returns the handler ID (always greater than 0 for successful connections)
1233
1233
  */
1234
- export function signal_connect_closure(instance: Object, detailed_signal: string | null, closure: TClosure, after: boolean): number
1234
+ export function signal_connect_closure(instance: Object, detailed_signal: string, closure: TClosure, after: boolean): number
1235
1235
  /**
1236
1236
  * Connects a closure to a signal for a particular object.
1237
1237
  *
@@ -1440,7 +1440,7 @@ export function signal_has_handler_pending(instance: Object, signal_id: number,
1440
1440
  * @param name the canonical name of the signal
1441
1441
  * @returns %TRUE if @name is a valid signal name, %FALSE otherwise.
1442
1442
  */
1443
- export function signal_is_valid_name(name: string | null): boolean
1443
+ export function signal_is_valid_name(name: string): boolean
1444
1444
  /**
1445
1445
  * Lists the signals by id that a certain instance or interface type
1446
1446
  * created. Further information about the signals can be acquired through
@@ -1465,7 +1465,7 @@ export function signal_list_ids(itype: GType): number[]
1465
1465
  * @param itype the type that the signal operates on.
1466
1466
  * @returns the signal's identifying number, or 0 if no signal was found.
1467
1467
  */
1468
- export function signal_lookup(name: string | null, itype: GType): number
1468
+ export function signal_lookup(name: string, itype: GType): number
1469
1469
  /**
1470
1470
  * Given the signal's identifier, finds its name.
1471
1471
  *
@@ -1495,7 +1495,7 @@ export function signal_override_class_closure(signal_id: number, instance_type:
1495
1495
  * @param force_detail_quark %TRUE forces creation of a #GQuark for the detail.
1496
1496
  * @returns Whether the signal name could successfully be parsed and @signal_id_p and @detail_p contain valid return values.
1497
1497
  */
1498
- export function signal_parse_name(detailed_signal: string | null, itype: GType, force_detail_quark: boolean): [ /* returnType */ boolean, /* signal_id_p */ number, /* detail_p */ GLib.Quark ]
1498
+ export function signal_parse_name(detailed_signal: string, itype: GType, force_detail_quark: boolean): [ /* returnType */ boolean, /* signal_id_p */ number, /* detail_p */ GLib.Quark ]
1499
1499
  /**
1500
1500
  * Queries the signal system for in-depth information about a
1501
1501
  * specific signal. This function will fill in a user-provided
@@ -1543,7 +1543,7 @@ export function signal_stop_emission(instance: Object, signal_id: number, detail
1543
1543
  * @param instance the object whose signal handlers you wish to stop.
1544
1544
  * @param detailed_signal a string of the form "signal-name::detail".
1545
1545
  */
1546
- export function signal_stop_emission_by_name(instance: Object, detailed_signal: string | null): void
1546
+ export function signal_stop_emission_by_name(instance: Object, detailed_signal: string): void
1547
1547
  /**
1548
1548
  * Creates a new closure which invokes the function found at the offset
1549
1549
  * `struct_offset` in the class structure of the interface or classed type
@@ -1737,7 +1737,7 @@ export function type_free_instance(instance: TypeInstance): void
1737
1737
  * @param name type name to look up
1738
1738
  * @returns corresponding type ID or 0
1739
1739
  */
1740
- export function type_from_name(name: string | null): GType
1740
+ export function type_from_name(name: string): GType
1741
1741
  /**
1742
1742
  * Internal function, used to extract the fundamental type ID portion.
1743
1743
  * Use G_TYPE_FUNDAMENTAL() instead.
@@ -1876,8 +1876,8 @@ export function type_is_a(type: GType, is_a_type: GType): boolean
1876
1876
  * @returns static type name or %NULL
1877
1877
  */
1878
1878
  export function type_name(type: GType): string | null
1879
- export function type_name_from_class(g_class: TypeClass): string | null
1880
- export function type_name_from_instance(instance: TypeInstance): string | null
1879
+ export function type_name_from_class(g_class: TypeClass): string
1880
+ export function type_name_from_instance(instance: TypeInstance): string
1881
1881
  /**
1882
1882
  * Given a `leaf_type` and a `root_type` which is contained in its
1883
1883
  * ancestry, return the type that `root_type` is the immediate parent
@@ -1930,7 +1930,7 @@ export function type_query(type: GType): /* query */ TypeQuery
1930
1930
  * @param flags bitwise combination of #GTypeFlags values
1931
1931
  * @returns the new type identifier or %G_TYPE_INVALID if registration failed
1932
1932
  */
1933
- export function type_register_dynamic(parent_type: GType, type_name: string | null, plugin: TypePlugin, flags: TypeFlags): GType
1933
+ export function type_register_dynamic(parent_type: GType, type_name: string, plugin: TypePlugin, flags: TypeFlags): GType
1934
1934
  /**
1935
1935
  * Registers `type_id` as the predefined identifier and `type_name` as the
1936
1936
  * name of a fundamental type. If `type_id` is already registered, or a
@@ -1946,7 +1946,7 @@ export function type_register_dynamic(parent_type: GType, type_name: string | nu
1946
1946
  * @param flags bitwise combination of #GTypeFlags values
1947
1947
  * @returns the predefined type identifier
1948
1948
  */
1949
- export function type_register_fundamental(type_id: GType, type_name: string | null, info: TypeInfo, finfo: TypeFundamentalInfo, flags: TypeFlags): GType
1949
+ export function type_register_fundamental(type_id: GType, type_name: string, info: TypeInfo, finfo: TypeFundamentalInfo, flags: TypeFlags): GType
1950
1950
  /**
1951
1951
  * Registers `type_name` as the name of a new static type derived from
1952
1952
  * `parent_type`. The type system uses the information contained in the
@@ -1959,7 +1959,7 @@ export function type_register_fundamental(type_id: GType, type_name: string | nu
1959
1959
  * @param flags bitwise combination of #GTypeFlags values
1960
1960
  * @returns the new type identifier
1961
1961
  */
1962
- export function type_register_static(parent_type: GType, type_name: string | null, info: TypeInfo, flags: TypeFlags): GType
1962
+ export function type_register_static(parent_type: GType, type_name: string, info: TypeInfo, flags: TypeFlags): GType
1963
1963
  /**
1964
1964
  * Attaches arbitrary data to a type.
1965
1965
  * @param type a #GType
@@ -3167,7 +3167,7 @@ export interface Binding {
3167
3167
  * of the binding.
3168
3168
  * @returns the name of the source property
3169
3169
  */
3170
- get_source_property(): string | null
3170
+ get_source_property(): string
3171
3171
  /**
3172
3172
  * Retrieves the #GObject instance used as the target of the binding.
3173
3173
  *
@@ -3186,7 +3186,7 @@ export interface Binding {
3186
3186
  * of the binding.
3187
3187
  * @returns the name of the target property
3188
3188
  */
3189
- get_target_property(): string | null
3189
+ get_target_property(): string
3190
3190
  /**
3191
3191
  * Explicitly releases the binding between the source and the target
3192
3192
  * property expressed by `binding`.
@@ -3366,7 +3366,7 @@ export interface BindingGroup {
3366
3366
  * @param target_property the property on `target` to bind
3367
3367
  * @param flags the flags used to create the #GBinding
3368
3368
  */
3369
- bind(source_property: string | null, target: Object, target_property: string | null, flags: BindingFlags): void
3369
+ bind(source_property: string, target: Object, target_property: string, flags: BindingFlags): void
3370
3370
  /**
3371
3371
  * Creates a binding between `source_property` on the source object and
3372
3372
  * `target_property` on `target,` allowing you to set the transformation
@@ -3385,7 +3385,7 @@ export interface BindingGroup {
3385
3385
  * @param transform_to a #GClosure wrapping the transformation function from the source object to the `target,` or %NULL to use the default
3386
3386
  * @param transform_from a #GClosure wrapping the transformation function from the `target` to the source object, or %NULL to use the default
3387
3387
  */
3388
- bind_full(source_property: string | null, target: Object, target_property: string | null, flags: BindingFlags, transform_to: TClosure | null, transform_from: TClosure | null): void
3388
+ bind_full(source_property: string, target: Object, target_property: string, flags: BindingFlags, transform_to: TClosure | null, transform_from: TClosure | null): void
3389
3389
  /**
3390
3390
  * Gets the source object used for binding properties.
3391
3391
  * @returns a #GObject or %NULL.
@@ -3557,7 +3557,7 @@ export interface Object {
3557
3557
  * @param flags flags to pass to #GBinding
3558
3558
  * @returns the #GBinding instance representing the binding between the two #GObject instances. The binding is released whenever the #GBinding reference count reaches zero.
3559
3559
  */
3560
- bind_property(source_property: string | null, target: Object, target_property: string | null, flags: BindingFlags): Binding
3560
+ bind_property(source_property: string, target: Object, target_property: string, flags: BindingFlags): Binding
3561
3561
  /**
3562
3562
  * Creates a binding between `source_property` on `source` and `target_property`
3563
3563
  * on `target,` allowing you to set the transformation functions to be used by
@@ -3574,7 +3574,7 @@ export interface Object {
3574
3574
  * @param transform_from a #GClosure wrapping the transformation function from the `target` to the `source,` or %NULL to use the default
3575
3575
  * @returns the #GBinding instance representing the binding between the two #GObject instances. The binding is released whenever the #GBinding reference count reaches zero.
3576
3576
  */
3577
- bind_property_full(source_property: string | null, target: Object, target_property: string | null, flags: BindingFlags, transform_to: TClosure, transform_from: TClosure): Binding
3577
+ bind_property_full(source_property: string, target: Object, target_property: string, flags: BindingFlags, transform_to: TClosure, transform_from: TClosure): Binding
3578
3578
  /**
3579
3579
  * This function is intended for #GObject implementations to re-enforce
3580
3580
  * a [floating][floating-ref] object reference. Doing this is seldom
@@ -3599,7 +3599,7 @@ export interface Object {
3599
3599
  * @param key name of the key for that association
3600
3600
  * @returns the data if found, or %NULL if no such data exists.
3601
3601
  */
3602
- get_data(key: string | null): any | null
3602
+ get_data(key: string): any | null
3603
3603
  /**
3604
3604
  * Gets a property of an object.
3605
3605
  *
@@ -3620,7 +3620,7 @@ export interface Object {
3620
3620
  * @param property_name the name of the property to get
3621
3621
  * @param value return location for the property value
3622
3622
  */
3623
- get_property(property_name: string | null, value: any): void
3623
+ get_property(property_name: string, value: any): void
3624
3624
  /**
3625
3625
  * This function gets back user data pointers stored via
3626
3626
  * g_object_set_qdata().
@@ -3655,7 +3655,7 @@ export interface Object {
3655
3655
  * called.
3656
3656
  * @param property_name the name of a property installed on the class of `object`.
3657
3657
  */
3658
- notify(property_name: string | null): void
3658
+ notify(property_name: string): void
3659
3659
  /**
3660
3660
  * Emits a "notify" signal for the property specified by `pspec` on `object`.
3661
3661
  *
@@ -3747,20 +3747,20 @@ export interface Object {
3747
3747
  * @param key name of the key
3748
3748
  * @param data data to associate with that key
3749
3749
  */
3750
- set_data(key: string | null, data: any | null): void
3750
+ set_data(key: string, data: any | null): void
3751
3751
  /**
3752
3752
  * Sets a property on an object.
3753
3753
  * @param property_name the name of the property to set
3754
3754
  * @param value the value
3755
3755
  */
3756
- set_property(property_name: string | null, value: any): void
3756
+ set_property(property_name: string, value: any): void
3757
3757
  /**
3758
3758
  * Remove a specified datum from the object's data associations,
3759
3759
  * without invoking the association's destroy handler.
3760
3760
  * @param key name of the key
3761
3761
  * @returns the data if found, or %NULL if no such data exists.
3762
3762
  */
3763
- steal_data(key: string | null): any | null
3763
+ steal_data(key: string): any | null
3764
3764
  /**
3765
3765
  * This function gets back user data pointers stored via
3766
3766
  * g_object_set_qdata() and removes the `data` from object
@@ -3925,7 +3925,7 @@ export class Object {
3925
3925
  * @param property_name name of a property to look up.
3926
3926
  * @returns the #GParamSpec for the property of the interface with the name @property_name, or %NULL if no such property exists.
3927
3927
  */
3928
- static interface_find_property(g_iface: TypeInterface, property_name: string | null): ParamSpec
3928
+ static interface_find_property(g_iface: TypeInterface, property_name: string): ParamSpec
3929
3929
  /**
3930
3930
  * Add a property to an interface; this is only useful for interfaces
3931
3931
  * that are added to GObject-derived types. Adding a property to an
@@ -3971,7 +3971,7 @@ export interface ParamSpec {
3971
3971
  * name of this parameter: always an interned string
3972
3972
  * @field
3973
3973
  */
3974
- name: string | null
3974
+ name: string
3975
3975
  /**
3976
3976
  * #GParamFlags flags for this parameter
3977
3977
  * @field
@@ -4009,7 +4009,7 @@ export interface ParamSpec {
4009
4009
  * This allows for pointer-value comparisons.
4010
4010
  * @returns the name of @pspec.
4011
4011
  */
4012
- get_name(): string | null
4012
+ get_name(): string
4013
4013
  /**
4014
4014
  * Gets the GQuark for the name.
4015
4015
  * @returns the GQuark for @pspec->name.
@@ -4019,7 +4019,7 @@ export interface ParamSpec {
4019
4019
  * Get the nickname of a #GParamSpec.
4020
4020
  * @returns the nickname of @pspec.
4021
4021
  */
4022
- get_nick(): string | null
4022
+ get_nick(): string
4023
4023
  /**
4024
4024
  * Gets back user data pointers stored via g_param_spec_set_qdata().
4025
4025
  * @param quark a #GQuark, naming the user data pointer
@@ -4111,7 +4111,7 @@ export class ParamSpec {
4111
4111
  * @param name the canonical name of the property
4112
4112
  * @returns %TRUE if @name is a valid property name, %FALSE otherwise.
4113
4113
  */
4114
- static is_valid_name(name: string | null): boolean
4114
+ static is_valid_name(name: string): boolean
4115
4115
  static char(name: string, nick: string, blurb: string, flags: ParamFlags, minimum: number, maximum: number, defaultValue: number): ParamSpecChar
4116
4116
  static uchar(name: string, nick: string, blurb: string, flags: ParamFlags, minimum: number, maximum: number, defaultValue: number): ParamSpecUChar
4117
4117
  static int(name: string, nick: string, blurb: string, flags: ParamFlags, minimum: number, maximum: number, defaultValue: number): ParamSpecInt
@@ -4974,7 +4974,7 @@ export interface SignalGroup {
4974
4974
  * @param closure the closure to connect.
4975
4975
  * @param after whether the handler should be called before or after the default handler of the signal.
4976
4976
  */
4977
- connect_closure(detailed_signal: string | null, closure: TClosure, after: boolean): void
4977
+ connect_closure(detailed_signal: string, closure: TClosure, after: boolean): void
4978
4978
  /**
4979
4979
  * Connects `c_handler` to the signal `detailed_signal`
4980
4980
  * on the target instance of `self`.
@@ -4984,7 +4984,7 @@ export interface SignalGroup {
4984
4984
  * @param c_handler the #GCallback to connect
4985
4985
  * @param flags the flags used to create the signal connection
4986
4986
  */
4987
- connect_data(detailed_signal: string | null, c_handler: Callback, flags: ConnectFlags): void
4987
+ connect_data(detailed_signal: string, c_handler: Callback, flags: ConnectFlags): void
4988
4988
  /**
4989
4989
  * Connects `c_handler` to the signal `detailed_signal`
4990
4990
  * on the target instance of `self`.
@@ -4996,7 +4996,7 @@ export interface SignalGroup {
4996
4996
  * @param detailed_signal a string of the form "signal-name::detail"
4997
4997
  * @param c_handler the #GCallback to connect
4998
4998
  */
4999
- connect_swapped(detailed_signal: string | null, c_handler: Callback): void
4999
+ connect_swapped(detailed_signal: string, c_handler: Callback): void
5000
5000
  /**
5001
5001
  * Gets the target instance used when connecting signals.
5002
5002
  * @returns The target instance
@@ -5146,7 +5146,7 @@ export interface TypeModule extends TypePlugin {
5146
5146
  * @param const_static_values an array of #GEnumValue structs for the possible enumeration values. The array is terminated by a struct with all members being 0.
5147
5147
  * @returns the new or existing type ID
5148
5148
  */
5149
- register_enum(name: string | null, const_static_values: EnumValue): GType
5149
+ register_enum(name: string, const_static_values: EnumValue): GType
5150
5150
  /**
5151
5151
  * Looks up or registers a flags type that is implemented with a particular
5152
5152
  * type plugin. If a type with name `type_name` was previously registered,
@@ -5162,7 +5162,7 @@ export interface TypeModule extends TypePlugin {
5162
5162
  * @param const_static_values an array of #GFlagsValue structs for the possible flags values. The array is terminated by a struct with all members being 0.
5163
5163
  * @returns the new or existing type ID
5164
5164
  */
5165
- register_flags(name: string | null, const_static_values: FlagsValue): GType
5165
+ register_flags(name: string, const_static_values: FlagsValue): GType
5166
5166
  /**
5167
5167
  * Looks up or registers a type that is implemented with a particular
5168
5168
  * type plugin. If a type with name `type_name` was previously registered,
@@ -5184,12 +5184,12 @@ export interface TypeModule extends TypePlugin {
5184
5184
  * @param flags flags field providing details about the type
5185
5185
  * @returns the new or existing type ID
5186
5186
  */
5187
- register_type(parent_type: GType, type_name: string | null, type_info: TypeInfo, flags: TypeFlags): GType
5187
+ register_type(parent_type: GType, type_name: string, type_info: TypeInfo, flags: TypeFlags): GType
5188
5188
  /**
5189
5189
  * Sets the name for a #GTypeModule
5190
5190
  * @param name a human-readable name to use in error messages.
5191
5191
  */
5192
- set_name(name: string | null): void
5192
+ set_name(name: string): void
5193
5193
  /**
5194
5194
  * Decreases the use count of a #GTypeModule by one. If the
5195
5195
  * result is zero, the module will be unloaded. (However, the
@@ -5866,12 +5866,12 @@ export interface EnumValue {
5866
5866
  * the name of the value
5867
5867
  * @field
5868
5868
  */
5869
- value_name: string | null
5869
+ value_name: string
5870
5870
  /**
5871
5871
  * the nickname of the value
5872
5872
  * @field
5873
5873
  */
5874
- value_nick: string | null
5874
+ value_nick: string
5875
5875
  }
5876
5876
 
5877
5877
  /**
@@ -5938,12 +5938,12 @@ export interface FlagsValue {
5938
5938
  * the name of the value
5939
5939
  * @field
5940
5940
  */
5941
- value_name: string | null
5941
+ value_name: string
5942
5942
  /**
5943
5943
  * the nickname of the value
5944
5944
  * @field
5945
5945
  */
5946
- value_nick: string | null
5946
+ value_nick: string
5947
5947
  }
5948
5948
 
5949
5949
  /**
@@ -6044,7 +6044,7 @@ export interface ObjectClass {
6044
6044
  * @param property_name the name of the property to look up
6045
6045
  * @returns the #GParamSpec for the property, or %NULL if the class doesn't have a property of that name
6046
6046
  */
6047
- find_property(oclass: Object | Function | GType, property_name: string | null): ParamSpec
6047
+ find_property(oclass: Object | Function | GType, property_name: string): ParamSpec
6048
6048
  /**
6049
6049
  * Installs new properties from an array of #GParamSpecs.
6050
6050
  *
@@ -6156,7 +6156,7 @@ export interface ObjectClass {
6156
6156
  * @param property_id the new property ID
6157
6157
  * @param name the name of a property registered in a parent class or in an interface of this class.
6158
6158
  */
6159
- override_property(oclass: Object | Function | GType, property_id: number, name: string | null): void
6159
+ override_property(oclass: Object | Function | GType, property_id: number, name: string): void
6160
6160
  }
6161
6161
 
6162
6162
  /**
@@ -6290,7 +6290,7 @@ export interface ParamSpecPool {
6290
6290
  * @param walk_ancestors If %TRUE, also try to find a #GParamSpec with `param_name` owned by an ancestor of `owner_type`.
6291
6291
  * @returns The found #GParamSpec, or %NULL if no matching #GParamSpec was found.
6292
6292
  */
6293
- lookup(param_name: string | null, owner_type: GType, walk_ancestors: boolean): ParamSpec | null
6293
+ lookup(param_name: string, owner_type: GType, walk_ancestors: boolean): ParamSpec | null
6294
6294
  /**
6295
6295
  * Removes a #GParamSpec from the pool.
6296
6296
  * @param pspec the #GParamSpec to remove
@@ -6365,7 +6365,7 @@ export interface Parameter {
6365
6365
  * the parameter name
6366
6366
  * @field
6367
6367
  */
6368
- name: string | null
6368
+ name: string
6369
6369
  /**
6370
6370
  * the parameter value
6371
6371
  * @field
@@ -6436,7 +6436,7 @@ export interface SignalQuery {
6436
6436
  * The signal name.
6437
6437
  * @field
6438
6438
  */
6439
- signal_name: string | null
6439
+ signal_name: string
6440
6440
  /**
6441
6441
  * The interface/instance type that this signal can be emitted for.
6442
6442
  * @field
@@ -6900,7 +6900,7 @@ export interface TypeQuery {
6900
6900
  * the name of the type
6901
6901
  * @field
6902
6902
  */
6903
- type_name: string | null
6903
+ type_name: string
6904
6904
  /**
6905
6905
  * the size of the class structure
6906
6906
  * @field
@@ -6966,7 +6966,7 @@ export interface TypeValueTable {
6966
6966
  * needs to be used, and for collection of floats `'d'`.
6967
6967
  * @field
6968
6968
  */
6969
- collect_format: string | null
6969
+ collect_format: string
6970
6970
  /**
6971
6971
  * Function to initialize a GValue from the values
6972
6972
  * collected from variadic arguments
@@ -6979,7 +6979,7 @@ export interface TypeValueTable {
6979
6979
  * only of `'p'`s to provide lcopy_value() with pointers to storage locations.
6980
6980
  * @field
6981
6981
  */
6982
- lcopy_format: string | null
6982
+ lcopy_format: string
6983
6983
  /**
6984
6984
  * Function to store the contents of a value into the
6985
6985
  * locations collected from variadic arguments
package/gobject-2.0.d.ts CHANGED
@@ -723,14 +723,14 @@ function enum_get_value(enum_class: EnumClass, value: number): EnumValue | null
723
723
  * @param name the name to look up
724
724
  * @returns the #GEnumValue with name @name, or %NULL if the enumeration doesn't have a member with that name
725
725
  */
726
- function enum_get_value_by_name(enum_class: EnumClass, name: string | null): EnumValue | null
726
+ function enum_get_value_by_name(enum_class: EnumClass, name: string): EnumValue | null
727
727
  /**
728
728
  * Looks up a #GEnumValue by nickname.
729
729
  * @param enum_class a #GEnumClass
730
730
  * @param nick the nickname to look up
731
731
  * @returns the #GEnumValue with nickname @nick, or %NULL if the enumeration doesn't have a member with that nickname
732
732
  */
733
- function enum_get_value_by_nick(enum_class: EnumClass, nick: string | null): EnumValue | null
733
+ function enum_get_value_by_nick(enum_class: EnumClass, nick: string): EnumValue | null
734
734
  /**
735
735
  * Registers a new static enumeration type with the name `name`.
736
736
  *
@@ -741,7 +741,7 @@ function enum_get_value_by_nick(enum_class: EnumClass, nick: string | null): Enu
741
741
  * @param const_static_values An array of #GEnumValue structs for the possible enumeration values. The array is terminated by a struct with all members being 0. GObject keeps a reference to the data, so it cannot be stack-allocated.
742
742
  * @returns The new type identifier.
743
743
  */
744
- function enum_register_static(name: string | null, const_static_values: EnumValue): GType
744
+ function enum_register_static(name: string, const_static_values: EnumValue): GType
745
745
  /**
746
746
  * Pretty-prints `value` in the form of the enum’s name.
747
747
  *
@@ -773,14 +773,14 @@ function flags_get_first_value(flags_class: FlagsClass, value: number): FlagsVal
773
773
  * @param name the name to look up
774
774
  * @returns the #GFlagsValue with name @name, or %NULL if there is no flag with that name
775
775
  */
776
- function flags_get_value_by_name(flags_class: FlagsClass, name: string | null): FlagsValue | null
776
+ function flags_get_value_by_name(flags_class: FlagsClass, name: string): FlagsValue | null
777
777
  /**
778
778
  * Looks up a #GFlagsValue by nickname.
779
779
  * @param flags_class a #GFlagsClass
780
780
  * @param nick the nickname to look up
781
781
  * @returns the #GFlagsValue with nickname @nick, or %NULL if there is no flag with that nickname
782
782
  */
783
- function flags_get_value_by_nick(flags_class: FlagsClass, nick: string | null): FlagsValue | null
783
+ function flags_get_value_by_nick(flags_class: FlagsClass, nick: string): FlagsValue | null
784
784
  /**
785
785
  * Registers a new static flags type with the name `name`.
786
786
  *
@@ -791,7 +791,7 @@ function flags_get_value_by_nick(flags_class: FlagsClass, nick: string | null):
791
791
  * @param const_static_values An array of #GFlagsValue structs for the possible flags values. The array is terminated by a struct with all members being 0. GObject keeps a reference to the data, so it cannot be stack-allocated.
792
792
  * @returns The new type identifier.
793
793
  */
794
- function flags_register_static(name: string | null, const_static_values: FlagsValue): GType
794
+ function flags_register_static(name: string, const_static_values: FlagsValue): GType
795
795
  /**
796
796
  * Pretty-prints `value` in the form of the flag names separated by ` | ` and
797
797
  * sorted. Any extra bits will be shown at the end as a hexadecimal number.
@@ -819,7 +819,7 @@ function gtype_get_type(): GType
819
819
  * @param flags flags for the property specified
820
820
  * @returns a newly created parameter specification
821
821
  */
822
- function param_spec_boolean(name: string | null, nick: string | null, blurb: string | null, default_value: boolean, flags: ParamFlags): ParamSpec
822
+ function param_spec_boolean(name: string, nick: string | null, blurb: string | null, default_value: boolean, flags: ParamFlags): ParamSpec
823
823
  /**
824
824
  * Creates a new #GParamSpecBoxed instance specifying a %G_TYPE_BOXED
825
825
  * derived property.
@@ -832,7 +832,7 @@ function param_spec_boolean(name: string | null, nick: string | null, blurb: str
832
832
  * @param flags flags for the property specified
833
833
  * @returns a newly created parameter specification
834
834
  */
835
- function param_spec_boxed(name: string | null, nick: string | null, blurb: string | null, boxed_type: GType, flags: ParamFlags): ParamSpec
835
+ function param_spec_boxed(name: string, nick: string | null, blurb: string | null, boxed_type: GType, flags: ParamFlags): ParamSpec
836
836
  /**
837
837
  * Creates a new #GParamSpecChar instance specifying a %G_TYPE_CHAR property.
838
838
  * @param name canonical name of the property specified
@@ -844,7 +844,7 @@ function param_spec_boxed(name: string | null, nick: string | null, blurb: strin
844
844
  * @param flags flags for the property specified
845
845
  * @returns a newly created parameter specification
846
846
  */
847
- function param_spec_char(name: string | null, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
847
+ function param_spec_char(name: string, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
848
848
  /**
849
849
  * Creates a new #GParamSpecDouble instance specifying a %G_TYPE_DOUBLE
850
850
  * property.
@@ -859,7 +859,7 @@ function param_spec_char(name: string | null, nick: string | null, blurb: string
859
859
  * @param flags flags for the property specified
860
860
  * @returns a newly created parameter specification
861
861
  */
862
- function param_spec_double(name: string | null, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
862
+ function param_spec_double(name: string, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
863
863
  /**
864
864
  * Creates a new #GParamSpecEnum instance specifying a %G_TYPE_ENUM
865
865
  * property.
@@ -873,7 +873,7 @@ function param_spec_double(name: string | null, nick: string | null, blurb: stri
873
873
  * @param flags flags for the property specified
874
874
  * @returns a newly created parameter specification
875
875
  */
876
- function param_spec_enum(name: string | null, nick: string | null, blurb: string | null, enum_type: GType, default_value: number, flags: ParamFlags): ParamSpec
876
+ function param_spec_enum(name: string, nick: string | null, blurb: string | null, enum_type: GType, default_value: number, flags: ParamFlags): ParamSpec
877
877
  /**
878
878
  * Creates a new #GParamSpecFlags instance specifying a %G_TYPE_FLAGS
879
879
  * property.
@@ -887,7 +887,7 @@ function param_spec_enum(name: string | null, nick: string | null, blurb: string
887
887
  * @param flags flags for the property specified
888
888
  * @returns a newly created parameter specification
889
889
  */
890
- function param_spec_flags(name: string | null, nick: string | null, blurb: string | null, flags_type: GType, default_value: number, flags: ParamFlags): ParamSpec
890
+ function param_spec_flags(name: string, nick: string | null, blurb: string | null, flags_type: GType, default_value: number, flags: ParamFlags): ParamSpec
891
891
  /**
892
892
  * Creates a new #GParamSpecFloat instance specifying a %G_TYPE_FLOAT property.
893
893
  *
@@ -901,7 +901,7 @@ function param_spec_flags(name: string | null, nick: string | null, blurb: strin
901
901
  * @param flags flags for the property specified
902
902
  * @returns a newly created parameter specification
903
903
  */
904
- function param_spec_float(name: string | null, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
904
+ function param_spec_float(name: string, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
905
905
  /**
906
906
  * Creates a new #GParamSpecGType instance specifying a
907
907
  * %G_TYPE_GTYPE property.
@@ -914,7 +914,7 @@ function param_spec_float(name: string | null, nick: string | null, blurb: strin
914
914
  * @param flags flags for the property specified
915
915
  * @returns a newly created parameter specification
916
916
  */
917
- function param_spec_gtype(name: string | null, nick: string | null, blurb: string | null, is_a_type: GType, flags: ParamFlags): ParamSpec
917
+ function param_spec_gtype(name: string, nick: string | null, blurb: string | null, is_a_type: GType, flags: ParamFlags): ParamSpec
918
918
  /**
919
919
  * Creates a new #GParamSpecInt instance specifying a %G_TYPE_INT property.
920
920
  *
@@ -928,7 +928,7 @@ function param_spec_gtype(name: string | null, nick: string | null, blurb: strin
928
928
  * @param flags flags for the property specified
929
929
  * @returns a newly created parameter specification
930
930
  */
931
- function param_spec_int(name: string | null, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
931
+ function param_spec_int(name: string, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
932
932
  /**
933
933
  * Creates a new #GParamSpecInt64 instance specifying a %G_TYPE_INT64 property.
934
934
  *
@@ -942,7 +942,7 @@ function param_spec_int(name: string | null, nick: string | null, blurb: string
942
942
  * @param flags flags for the property specified
943
943
  * @returns a newly created parameter specification
944
944
  */
945
- function param_spec_int64(name: string | null, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
945
+ function param_spec_int64(name: string, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
946
946
  /**
947
947
  * Creates a new #GParamSpecLong instance specifying a %G_TYPE_LONG property.
948
948
  *
@@ -956,7 +956,7 @@ function param_spec_int64(name: string | null, nick: string | null, blurb: strin
956
956
  * @param flags flags for the property specified
957
957
  * @returns a newly created parameter specification
958
958
  */
959
- function param_spec_long(name: string | null, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
959
+ function param_spec_long(name: string, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
960
960
  /**
961
961
  * Creates a new #GParamSpecBoxed instance specifying a %G_TYPE_OBJECT
962
962
  * derived property.
@@ -969,7 +969,7 @@ function param_spec_long(name: string | null, nick: string | null, blurb: string
969
969
  * @param flags flags for the property specified
970
970
  * @returns a newly created parameter specification
971
971
  */
972
- function param_spec_object(name: string | null, nick: string | null, blurb: string | null, object_type: GType, flags: ParamFlags): ParamSpec
972
+ function param_spec_object(name: string, nick: string | null, blurb: string | null, object_type: GType, flags: ParamFlags): ParamSpec
973
973
  /**
974
974
  * Creates a new #GParamSpecParam instance specifying a %G_TYPE_PARAM
975
975
  * property.
@@ -982,7 +982,7 @@ function param_spec_object(name: string | null, nick: string | null, blurb: stri
982
982
  * @param flags flags for the property specified
983
983
  * @returns a newly created parameter specification
984
984
  */
985
- function param_spec_param(name: string | null, nick: string | null, blurb: string | null, param_type: GType, flags: ParamFlags): ParamSpec
985
+ function param_spec_param(name: string, nick: string | null, blurb: string | null, param_type: GType, flags: ParamFlags): ParamSpec
986
986
  /**
987
987
  * Creates a new #GParamSpecPointer instance specifying a pointer property.
988
988
  * Where possible, it is better to use g_param_spec_object() or
@@ -995,7 +995,7 @@ function param_spec_param(name: string | null, nick: string | null, blurb: strin
995
995
  * @param flags flags for the property specified
996
996
  * @returns a newly created parameter specification
997
997
  */
998
- function param_spec_pointer(name: string | null, nick: string | null, blurb: string | null, flags: ParamFlags): ParamSpec
998
+ function param_spec_pointer(name: string, nick: string | null, blurb: string | null, flags: ParamFlags): ParamSpec
999
999
  /**
1000
1000
  * Creates a new #GParamSpecString instance.
1001
1001
  *
@@ -1007,7 +1007,7 @@ function param_spec_pointer(name: string | null, nick: string | null, blurb: str
1007
1007
  * @param flags flags for the property specified
1008
1008
  * @returns a newly created parameter specification
1009
1009
  */
1010
- function param_spec_string(name: string | null, nick: string | null, blurb: string | null, default_value: string | null, flags: ParamFlags): ParamSpec
1010
+ function param_spec_string(name: string, nick: string | null, blurb: string | null, default_value: string | null, flags: ParamFlags): ParamSpec
1011
1011
  /**
1012
1012
  * Creates a new #GParamSpecUChar instance specifying a %G_TYPE_UCHAR property.
1013
1013
  * @param name canonical name of the property specified
@@ -1019,7 +1019,7 @@ function param_spec_string(name: string | null, nick: string | null, blurb: stri
1019
1019
  * @param flags flags for the property specified
1020
1020
  * @returns a newly created parameter specification
1021
1021
  */
1022
- function param_spec_uchar(name: string | null, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
1022
+ function param_spec_uchar(name: string, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
1023
1023
  /**
1024
1024
  * Creates a new #GParamSpecUInt instance specifying a %G_TYPE_UINT property.
1025
1025
  *
@@ -1033,7 +1033,7 @@ function param_spec_uchar(name: string | null, nick: string | null, blurb: strin
1033
1033
  * @param flags flags for the property specified
1034
1034
  * @returns a newly created parameter specification
1035
1035
  */
1036
- function param_spec_uint(name: string | null, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
1036
+ function param_spec_uint(name: string, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
1037
1037
  /**
1038
1038
  * Creates a new #GParamSpecUInt64 instance specifying a %G_TYPE_UINT64
1039
1039
  * property.
@@ -1048,7 +1048,7 @@ function param_spec_uint(name: string | null, nick: string | null, blurb: string
1048
1048
  * @param flags flags for the property specified
1049
1049
  * @returns a newly created parameter specification
1050
1050
  */
1051
- function param_spec_uint64(name: string | null, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
1051
+ function param_spec_uint64(name: string, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
1052
1052
  /**
1053
1053
  * Creates a new #GParamSpecULong instance specifying a %G_TYPE_ULONG
1054
1054
  * property.
@@ -1063,7 +1063,7 @@ function param_spec_uint64(name: string | null, nick: string | null, blurb: stri
1063
1063
  * @param flags flags for the property specified
1064
1064
  * @returns a newly created parameter specification
1065
1065
  */
1066
- function param_spec_ulong(name: string | null, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
1066
+ function param_spec_ulong(name: string, nick: string | null, blurb: string | null, minimum: number, maximum: number, default_value: number, flags: ParamFlags): ParamSpec
1067
1067
  /**
1068
1068
  * Creates a new #GParamSpecUnichar instance specifying a %G_TYPE_UINT
1069
1069
  * property. #GValue structures for this property can be accessed with
@@ -1077,7 +1077,7 @@ function param_spec_ulong(name: string | null, nick: string | null, blurb: strin
1077
1077
  * @param flags flags for the property specified
1078
1078
  * @returns a newly created parameter specification
1079
1079
  */
1080
- function param_spec_unichar(name: string | null, nick: string | null, blurb: string | null, default_value: string, flags: ParamFlags): ParamSpec
1080
+ function param_spec_unichar(name: string, nick: string | null, blurb: string | null, default_value: string, flags: ParamFlags): ParamSpec
1081
1081
  /**
1082
1082
  * Creates a new #GParamSpecVariant instance specifying a #GVariant
1083
1083
  * property.
@@ -1093,7 +1093,7 @@ function param_spec_unichar(name: string | null, nick: string | null, blurb: str
1093
1093
  * @param flags flags for the property specified
1094
1094
  * @returns the newly created #GParamSpec
1095
1095
  */
1096
- function param_spec_variant(name: string | null, nick: string | null, blurb: string | null, type: GLib.VariantType, default_value: GLib.Variant | null, flags: ParamFlags): ParamSpec
1096
+ function param_spec_variant(name: string, nick: string | null, blurb: string | null, type: GLib.VariantType, default_value: GLib.Variant | null, flags: ParamFlags): ParamSpec
1097
1097
  /**
1098
1098
  * Registers `name` as the name of a new static type derived
1099
1099
  * from %G_TYPE_PARAM.
@@ -1105,7 +1105,7 @@ function param_spec_variant(name: string | null, nick: string | null, blurb: str
1105
1105
  * @param pspec_info The #GParamSpecTypeInfo for this #GParamSpec type.
1106
1106
  * @returns The new type identifier.
1107
1107
  */
1108
- function param_type_register_static(name: string | null, pspec_info: ParamSpecTypeInfo): GType
1108
+ function param_type_register_static(name: string, pspec_info: ParamSpecTypeInfo): GType
1109
1109
  /**
1110
1110
  * Transforms `src_value` into `dest_value` if possible, and then
1111
1111
  * validates `dest_value,` in order for it to conform to `pspec`. If
@@ -1170,7 +1170,7 @@ function param_values_cmp(pspec: ParamSpec, value1: any, value2: any): number
1170
1170
  * @param name the name of the new pointer type.
1171
1171
  * @returns a new %G_TYPE_POINTER derived type id for @name.
1172
1172
  */
1173
- function pointer_type_register_static(name: string | null): GType
1173
+ function pointer_type_register_static(name: string): GType
1174
1174
  /**
1175
1175
  * A predefined #GSignalAccumulator for signals intended to be used as a
1176
1176
  * hook for application code to provide a particular value. Usually
@@ -1233,7 +1233,7 @@ function signal_chain_from_overridden(instance_and_params: any[], return_value:
1233
1233
  * @param after whether the handler should be called before or after the default handler of the signal.
1234
1234
  * @returns the handler ID (always greater than 0 for successful connections)
1235
1235
  */
1236
- function signal_connect_closure(instance: Object, detailed_signal: string | null, closure: TClosure, after: boolean): number
1236
+ function signal_connect_closure(instance: Object, detailed_signal: string, closure: TClosure, after: boolean): number
1237
1237
  /**
1238
1238
  * Connects a closure to a signal for a particular object.
1239
1239
  *
@@ -1442,7 +1442,7 @@ function signal_has_handler_pending(instance: Object, signal_id: number, detail:
1442
1442
  * @param name the canonical name of the signal
1443
1443
  * @returns %TRUE if @name is a valid signal name, %FALSE otherwise.
1444
1444
  */
1445
- function signal_is_valid_name(name: string | null): boolean
1445
+ function signal_is_valid_name(name: string): boolean
1446
1446
  /**
1447
1447
  * Lists the signals by id that a certain instance or interface type
1448
1448
  * created. Further information about the signals can be acquired through
@@ -1467,7 +1467,7 @@ function signal_list_ids(itype: GType): number[]
1467
1467
  * @param itype the type that the signal operates on.
1468
1468
  * @returns the signal's identifying number, or 0 if no signal was found.
1469
1469
  */
1470
- function signal_lookup(name: string | null, itype: GType): number
1470
+ function signal_lookup(name: string, itype: GType): number
1471
1471
  /**
1472
1472
  * Given the signal's identifier, finds its name.
1473
1473
  *
@@ -1497,7 +1497,7 @@ function signal_override_class_closure(signal_id: number, instance_type: GType,
1497
1497
  * @param force_detail_quark %TRUE forces creation of a #GQuark for the detail.
1498
1498
  * @returns Whether the signal name could successfully be parsed and @signal_id_p and @detail_p contain valid return values.
1499
1499
  */
1500
- function signal_parse_name(detailed_signal: string | null, itype: GType, force_detail_quark: boolean): [ /* returnType */ boolean, /* signal_id_p */ number, /* detail_p */ GLib.Quark ]
1500
+ function signal_parse_name(detailed_signal: string, itype: GType, force_detail_quark: boolean): [ /* returnType */ boolean, /* signal_id_p */ number, /* detail_p */ GLib.Quark ]
1501
1501
  /**
1502
1502
  * Queries the signal system for in-depth information about a
1503
1503
  * specific signal. This function will fill in a user-provided
@@ -1545,7 +1545,7 @@ function signal_stop_emission(instance: Object, signal_id: number, detail: GLib.
1545
1545
  * @param instance the object whose signal handlers you wish to stop.
1546
1546
  * @param detailed_signal a string of the form "signal-name::detail".
1547
1547
  */
1548
- function signal_stop_emission_by_name(instance: Object, detailed_signal: string | null): void
1548
+ function signal_stop_emission_by_name(instance: Object, detailed_signal: string): void
1549
1549
  /**
1550
1550
  * Creates a new closure which invokes the function found at the offset
1551
1551
  * `struct_offset` in the class structure of the interface or classed type
@@ -1739,7 +1739,7 @@ function type_free_instance(instance: TypeInstance): void
1739
1739
  * @param name type name to look up
1740
1740
  * @returns corresponding type ID or 0
1741
1741
  */
1742
- function type_from_name(name: string | null): GType
1742
+ function type_from_name(name: string): GType
1743
1743
  /**
1744
1744
  * Internal function, used to extract the fundamental type ID portion.
1745
1745
  * Use G_TYPE_FUNDAMENTAL() instead.
@@ -1878,8 +1878,8 @@ function type_is_a(type: GType, is_a_type: GType): boolean
1878
1878
  * @returns static type name or %NULL
1879
1879
  */
1880
1880
  function type_name(type: GType): string | null
1881
- function type_name_from_class(g_class: TypeClass): string | null
1882
- function type_name_from_instance(instance: TypeInstance): string | null
1881
+ function type_name_from_class(g_class: TypeClass): string
1882
+ function type_name_from_instance(instance: TypeInstance): string
1883
1883
  /**
1884
1884
  * Given a `leaf_type` and a `root_type` which is contained in its
1885
1885
  * ancestry, return the type that `root_type` is the immediate parent
@@ -1932,7 +1932,7 @@ function type_query(type: GType): /* query */ TypeQuery
1932
1932
  * @param flags bitwise combination of #GTypeFlags values
1933
1933
  * @returns the new type identifier or %G_TYPE_INVALID if registration failed
1934
1934
  */
1935
- function type_register_dynamic(parent_type: GType, type_name: string | null, plugin: TypePlugin, flags: TypeFlags): GType
1935
+ function type_register_dynamic(parent_type: GType, type_name: string, plugin: TypePlugin, flags: TypeFlags): GType
1936
1936
  /**
1937
1937
  * Registers `type_id` as the predefined identifier and `type_name` as the
1938
1938
  * name of a fundamental type. If `type_id` is already registered, or a
@@ -1948,7 +1948,7 @@ function type_register_dynamic(parent_type: GType, type_name: string | null, plu
1948
1948
  * @param flags bitwise combination of #GTypeFlags values
1949
1949
  * @returns the predefined type identifier
1950
1950
  */
1951
- function type_register_fundamental(type_id: GType, type_name: string | null, info: TypeInfo, finfo: TypeFundamentalInfo, flags: TypeFlags): GType
1951
+ function type_register_fundamental(type_id: GType, type_name: string, info: TypeInfo, finfo: TypeFundamentalInfo, flags: TypeFlags): GType
1952
1952
  /**
1953
1953
  * Registers `type_name` as the name of a new static type derived from
1954
1954
  * `parent_type`. The type system uses the information contained in the
@@ -1961,7 +1961,7 @@ function type_register_fundamental(type_id: GType, type_name: string | null, inf
1961
1961
  * @param flags bitwise combination of #GTypeFlags values
1962
1962
  * @returns the new type identifier
1963
1963
  */
1964
- function type_register_static(parent_type: GType, type_name: string | null, info: TypeInfo, flags: TypeFlags): GType
1964
+ function type_register_static(parent_type: GType, type_name: string, info: TypeInfo, flags: TypeFlags): GType
1965
1965
  /**
1966
1966
  * Attaches arbitrary data to a type.
1967
1967
  * @param type a #GType
@@ -3169,7 +3169,7 @@ interface Binding {
3169
3169
  * of the binding.
3170
3170
  * @returns the name of the source property
3171
3171
  */
3172
- get_source_property(): string | null
3172
+ get_source_property(): string
3173
3173
  /**
3174
3174
  * Retrieves the #GObject instance used as the target of the binding.
3175
3175
  *
@@ -3188,7 +3188,7 @@ interface Binding {
3188
3188
  * of the binding.
3189
3189
  * @returns the name of the target property
3190
3190
  */
3191
- get_target_property(): string | null
3191
+ get_target_property(): string
3192
3192
  /**
3193
3193
  * Explicitly releases the binding between the source and the target
3194
3194
  * property expressed by `binding`.
@@ -3368,7 +3368,7 @@ interface BindingGroup {
3368
3368
  * @param target_property the property on `target` to bind
3369
3369
  * @param flags the flags used to create the #GBinding
3370
3370
  */
3371
- bind(source_property: string | null, target: Object, target_property: string | null, flags: BindingFlags): void
3371
+ bind(source_property: string, target: Object, target_property: string, flags: BindingFlags): void
3372
3372
  /**
3373
3373
  * Creates a binding between `source_property` on the source object and
3374
3374
  * `target_property` on `target,` allowing you to set the transformation
@@ -3387,7 +3387,7 @@ interface BindingGroup {
3387
3387
  * @param transform_to a #GClosure wrapping the transformation function from the source object to the `target,` or %NULL to use the default
3388
3388
  * @param transform_from a #GClosure wrapping the transformation function from the `target` to the source object, or %NULL to use the default
3389
3389
  */
3390
- bind_full(source_property: string | null, target: Object, target_property: string | null, flags: BindingFlags, transform_to: TClosure | null, transform_from: TClosure | null): void
3390
+ bind_full(source_property: string, target: Object, target_property: string, flags: BindingFlags, transform_to: TClosure | null, transform_from: TClosure | null): void
3391
3391
  /**
3392
3392
  * Gets the source object used for binding properties.
3393
3393
  * @returns a #GObject or %NULL.
@@ -3559,7 +3559,7 @@ interface Object {
3559
3559
  * @param flags flags to pass to #GBinding
3560
3560
  * @returns the #GBinding instance representing the binding between the two #GObject instances. The binding is released whenever the #GBinding reference count reaches zero.
3561
3561
  */
3562
- bind_property(source_property: string | null, target: Object, target_property: string | null, flags: BindingFlags): Binding
3562
+ bind_property(source_property: string, target: Object, target_property: string, flags: BindingFlags): Binding
3563
3563
  /**
3564
3564
  * Creates a binding between `source_property` on `source` and `target_property`
3565
3565
  * on `target,` allowing you to set the transformation functions to be used by
@@ -3576,7 +3576,7 @@ interface Object {
3576
3576
  * @param transform_from a #GClosure wrapping the transformation function from the `target` to the `source,` or %NULL to use the default
3577
3577
  * @returns the #GBinding instance representing the binding between the two #GObject instances. The binding is released whenever the #GBinding reference count reaches zero.
3578
3578
  */
3579
- bind_property_full(source_property: string | null, target: Object, target_property: string | null, flags: BindingFlags, transform_to: TClosure, transform_from: TClosure): Binding
3579
+ bind_property_full(source_property: string, target: Object, target_property: string, flags: BindingFlags, transform_to: TClosure, transform_from: TClosure): Binding
3580
3580
  /**
3581
3581
  * This function is intended for #GObject implementations to re-enforce
3582
3582
  * a [floating][floating-ref] object reference. Doing this is seldom
@@ -3601,7 +3601,7 @@ interface Object {
3601
3601
  * @param key name of the key for that association
3602
3602
  * @returns the data if found, or %NULL if no such data exists.
3603
3603
  */
3604
- get_data(key: string | null): any | null
3604
+ get_data(key: string): any | null
3605
3605
  /**
3606
3606
  * Gets a property of an object.
3607
3607
  *
@@ -3622,7 +3622,7 @@ interface Object {
3622
3622
  * @param property_name the name of the property to get
3623
3623
  * @param value return location for the property value
3624
3624
  */
3625
- get_property(property_name: string | null, value: any): void
3625
+ get_property(property_name: string, value: any): void
3626
3626
  /**
3627
3627
  * This function gets back user data pointers stored via
3628
3628
  * g_object_set_qdata().
@@ -3657,7 +3657,7 @@ interface Object {
3657
3657
  * called.
3658
3658
  * @param property_name the name of a property installed on the class of `object`.
3659
3659
  */
3660
- notify(property_name: string | null): void
3660
+ notify(property_name: string): void
3661
3661
  /**
3662
3662
  * Emits a "notify" signal for the property specified by `pspec` on `object`.
3663
3663
  *
@@ -3749,20 +3749,20 @@ interface Object {
3749
3749
  * @param key name of the key
3750
3750
  * @param data data to associate with that key
3751
3751
  */
3752
- set_data(key: string | null, data: any | null): void
3752
+ set_data(key: string, data: any | null): void
3753
3753
  /**
3754
3754
  * Sets a property on an object.
3755
3755
  * @param property_name the name of the property to set
3756
3756
  * @param value the value
3757
3757
  */
3758
- set_property(property_name: string | null, value: any): void
3758
+ set_property(property_name: string, value: any): void
3759
3759
  /**
3760
3760
  * Remove a specified datum from the object's data associations,
3761
3761
  * without invoking the association's destroy handler.
3762
3762
  * @param key name of the key
3763
3763
  * @returns the data if found, or %NULL if no such data exists.
3764
3764
  */
3765
- steal_data(key: string | null): any | null
3765
+ steal_data(key: string): any | null
3766
3766
  /**
3767
3767
  * This function gets back user data pointers stored via
3768
3768
  * g_object_set_qdata() and removes the `data` from object
@@ -3927,7 +3927,7 @@ class Object {
3927
3927
  * @param property_name name of a property to look up.
3928
3928
  * @returns the #GParamSpec for the property of the interface with the name @property_name, or %NULL if no such property exists.
3929
3929
  */
3930
- static interface_find_property(g_iface: TypeInterface, property_name: string | null): ParamSpec
3930
+ static interface_find_property(g_iface: TypeInterface, property_name: string): ParamSpec
3931
3931
  /**
3932
3932
  * Add a property to an interface; this is only useful for interfaces
3933
3933
  * that are added to GObject-derived types. Adding a property to an
@@ -3973,7 +3973,7 @@ interface ParamSpec {
3973
3973
  * name of this parameter: always an interned string
3974
3974
  * @field
3975
3975
  */
3976
- name: string | null
3976
+ name: string
3977
3977
  /**
3978
3978
  * #GParamFlags flags for this parameter
3979
3979
  * @field
@@ -4011,7 +4011,7 @@ interface ParamSpec {
4011
4011
  * This allows for pointer-value comparisons.
4012
4012
  * @returns the name of @pspec.
4013
4013
  */
4014
- get_name(): string | null
4014
+ get_name(): string
4015
4015
  /**
4016
4016
  * Gets the GQuark for the name.
4017
4017
  * @returns the GQuark for @pspec->name.
@@ -4021,7 +4021,7 @@ interface ParamSpec {
4021
4021
  * Get the nickname of a #GParamSpec.
4022
4022
  * @returns the nickname of @pspec.
4023
4023
  */
4024
- get_nick(): string | null
4024
+ get_nick(): string
4025
4025
  /**
4026
4026
  * Gets back user data pointers stored via g_param_spec_set_qdata().
4027
4027
  * @param quark a #GQuark, naming the user data pointer
@@ -4113,7 +4113,7 @@ class ParamSpec {
4113
4113
  * @param name the canonical name of the property
4114
4114
  * @returns %TRUE if @name is a valid property name, %FALSE otherwise.
4115
4115
  */
4116
- static is_valid_name(name: string | null): boolean
4116
+ static is_valid_name(name: string): boolean
4117
4117
  static char(name: string, nick: string, blurb: string, flags: ParamFlags, minimum: number, maximum: number, defaultValue: number): ParamSpecChar
4118
4118
  static uchar(name: string, nick: string, blurb: string, flags: ParamFlags, minimum: number, maximum: number, defaultValue: number): ParamSpecUChar
4119
4119
  static int(name: string, nick: string, blurb: string, flags: ParamFlags, minimum: number, maximum: number, defaultValue: number): ParamSpecInt
@@ -4976,7 +4976,7 @@ interface SignalGroup {
4976
4976
  * @param closure the closure to connect.
4977
4977
  * @param after whether the handler should be called before or after the default handler of the signal.
4978
4978
  */
4979
- connect_closure(detailed_signal: string | null, closure: TClosure, after: boolean): void
4979
+ connect_closure(detailed_signal: string, closure: TClosure, after: boolean): void
4980
4980
  /**
4981
4981
  * Connects `c_handler` to the signal `detailed_signal`
4982
4982
  * on the target instance of `self`.
@@ -4986,7 +4986,7 @@ interface SignalGroup {
4986
4986
  * @param c_handler the #GCallback to connect
4987
4987
  * @param flags the flags used to create the signal connection
4988
4988
  */
4989
- connect_data(detailed_signal: string | null, c_handler: Callback, flags: ConnectFlags): void
4989
+ connect_data(detailed_signal: string, c_handler: Callback, flags: ConnectFlags): void
4990
4990
  /**
4991
4991
  * Connects `c_handler` to the signal `detailed_signal`
4992
4992
  * on the target instance of `self`.
@@ -4998,7 +4998,7 @@ interface SignalGroup {
4998
4998
  * @param detailed_signal a string of the form "signal-name::detail"
4999
4999
  * @param c_handler the #GCallback to connect
5000
5000
  */
5001
- connect_swapped(detailed_signal: string | null, c_handler: Callback): void
5001
+ connect_swapped(detailed_signal: string, c_handler: Callback): void
5002
5002
  /**
5003
5003
  * Gets the target instance used when connecting signals.
5004
5004
  * @returns The target instance
@@ -5148,7 +5148,7 @@ interface TypeModule extends TypePlugin {
5148
5148
  * @param const_static_values an array of #GEnumValue structs for the possible enumeration values. The array is terminated by a struct with all members being 0.
5149
5149
  * @returns the new or existing type ID
5150
5150
  */
5151
- register_enum(name: string | null, const_static_values: EnumValue): GType
5151
+ register_enum(name: string, const_static_values: EnumValue): GType
5152
5152
  /**
5153
5153
  * Looks up or registers a flags type that is implemented with a particular
5154
5154
  * type plugin. If a type with name `type_name` was previously registered,
@@ -5164,7 +5164,7 @@ interface TypeModule extends TypePlugin {
5164
5164
  * @param const_static_values an array of #GFlagsValue structs for the possible flags values. The array is terminated by a struct with all members being 0.
5165
5165
  * @returns the new or existing type ID
5166
5166
  */
5167
- register_flags(name: string | null, const_static_values: FlagsValue): GType
5167
+ register_flags(name: string, const_static_values: FlagsValue): GType
5168
5168
  /**
5169
5169
  * Looks up or registers a type that is implemented with a particular
5170
5170
  * type plugin. If a type with name `type_name` was previously registered,
@@ -5186,12 +5186,12 @@ interface TypeModule extends TypePlugin {
5186
5186
  * @param flags flags field providing details about the type
5187
5187
  * @returns the new or existing type ID
5188
5188
  */
5189
- register_type(parent_type: GType, type_name: string | null, type_info: TypeInfo, flags: TypeFlags): GType
5189
+ register_type(parent_type: GType, type_name: string, type_info: TypeInfo, flags: TypeFlags): GType
5190
5190
  /**
5191
5191
  * Sets the name for a #GTypeModule
5192
5192
  * @param name a human-readable name to use in error messages.
5193
5193
  */
5194
- set_name(name: string | null): void
5194
+ set_name(name: string): void
5195
5195
  /**
5196
5196
  * Decreases the use count of a #GTypeModule by one. If the
5197
5197
  * result is zero, the module will be unloaded. (However, the
@@ -5868,12 +5868,12 @@ interface EnumValue {
5868
5868
  * the name of the value
5869
5869
  * @field
5870
5870
  */
5871
- value_name: string | null
5871
+ value_name: string
5872
5872
  /**
5873
5873
  * the nickname of the value
5874
5874
  * @field
5875
5875
  */
5876
- value_nick: string | null
5876
+ value_nick: string
5877
5877
  }
5878
5878
 
5879
5879
  /**
@@ -5940,12 +5940,12 @@ interface FlagsValue {
5940
5940
  * the name of the value
5941
5941
  * @field
5942
5942
  */
5943
- value_name: string | null
5943
+ value_name: string
5944
5944
  /**
5945
5945
  * the nickname of the value
5946
5946
  * @field
5947
5947
  */
5948
- value_nick: string | null
5948
+ value_nick: string
5949
5949
  }
5950
5950
 
5951
5951
  /**
@@ -6046,7 +6046,7 @@ interface ObjectClass {
6046
6046
  * @param property_name the name of the property to look up
6047
6047
  * @returns the #GParamSpec for the property, or %NULL if the class doesn't have a property of that name
6048
6048
  */
6049
- find_property(oclass: Object | Function | GType, property_name: string | null): ParamSpec
6049
+ find_property(oclass: Object | Function | GType, property_name: string): ParamSpec
6050
6050
  /**
6051
6051
  * Installs new properties from an array of #GParamSpecs.
6052
6052
  *
@@ -6158,7 +6158,7 @@ interface ObjectClass {
6158
6158
  * @param property_id the new property ID
6159
6159
  * @param name the name of a property registered in a parent class or in an interface of this class.
6160
6160
  */
6161
- override_property(oclass: Object | Function | GType, property_id: number, name: string | null): void
6161
+ override_property(oclass: Object | Function | GType, property_id: number, name: string): void
6162
6162
  }
6163
6163
 
6164
6164
  /**
@@ -6292,7 +6292,7 @@ interface ParamSpecPool {
6292
6292
  * @param walk_ancestors If %TRUE, also try to find a #GParamSpec with `param_name` owned by an ancestor of `owner_type`.
6293
6293
  * @returns The found #GParamSpec, or %NULL if no matching #GParamSpec was found.
6294
6294
  */
6295
- lookup(param_name: string | null, owner_type: GType, walk_ancestors: boolean): ParamSpec | null
6295
+ lookup(param_name: string, owner_type: GType, walk_ancestors: boolean): ParamSpec | null
6296
6296
  /**
6297
6297
  * Removes a #GParamSpec from the pool.
6298
6298
  * @param pspec the #GParamSpec to remove
@@ -6367,7 +6367,7 @@ interface Parameter {
6367
6367
  * the parameter name
6368
6368
  * @field
6369
6369
  */
6370
- name: string | null
6370
+ name: string
6371
6371
  /**
6372
6372
  * the parameter value
6373
6373
  * @field
@@ -6438,7 +6438,7 @@ interface SignalQuery {
6438
6438
  * The signal name.
6439
6439
  * @field
6440
6440
  */
6441
- signal_name: string | null
6441
+ signal_name: string
6442
6442
  /**
6443
6443
  * The interface/instance type that this signal can be emitted for.
6444
6444
  * @field
@@ -6902,7 +6902,7 @@ interface TypeQuery {
6902
6902
  * the name of the type
6903
6903
  * @field
6904
6904
  */
6905
- type_name: string | null
6905
+ type_name: string
6906
6906
  /**
6907
6907
  * the size of the class structure
6908
6908
  * @field
@@ -6968,7 +6968,7 @@ interface TypeValueTable {
6968
6968
  * needs to be used, and for collection of floats `'d'`.
6969
6969
  * @field
6970
6970
  */
6971
- collect_format: string | null
6971
+ collect_format: string
6972
6972
  /**
6973
6973
  * Function to initialize a GValue from the values
6974
6974
  * collected from variadic arguments
@@ -6981,7 +6981,7 @@ interface TypeValueTable {
6981
6981
  * only of `'p'`s to provide lcopy_value() with pointers to storage locations.
6982
6982
  * @field
6983
6983
  */
6984
- lcopy_format: string | null
6984
+ lcopy_format: string
6985
6985
  /**
6986
6986
  * Function to store the contents of a value into the
6987
6987
  * locations collected from variadic arguments
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/gobject-2.0",
3
- "version": "2.78.0-3.2.6",
3
+ "version": "2.78.0-3.2.7",
4
4
  "description": "GJS TypeScript type definitions for GObject-2.0, generated from library version 2.78.0",
5
5
  "type": "module",
6
6
  "module": "gobject-2.0.js",
@@ -25,8 +25,8 @@
25
25
  "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit gobject-2.0.d.cts"
26
26
  },
27
27
  "dependencies": {
28
- "@girs/gjs": "^3.2.6",
29
- "@girs/glib-2.0": "^2.78.0-3.2.6"
28
+ "@girs/gjs": "^3.2.7",
29
+ "@girs/glib-2.0": "^2.78.0-3.2.7"
30
30
  },
31
31
  "devDependencies": {
32
32
  "typescript": "*"