@girs/glib-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/glib-2.0.d.cts CHANGED
@@ -3680,19 +3680,19 @@ export const BIG_ENDIAN: number
3680
3680
  * Used for specifying valid identifier characters
3681
3681
  * in #GScannerConfig.
3682
3682
  */
3683
- export const CSET_A_2_Z: string | null
3683
+ export const CSET_A_2_Z: string
3684
3684
  /**
3685
3685
  * The set of ASCII digits.
3686
3686
  * Used for specifying valid identifier characters
3687
3687
  * in #GScannerConfig.
3688
3688
  */
3689
- export const CSET_DIGITS: string | null
3689
+ export const CSET_DIGITS: string
3690
3690
  /**
3691
3691
  * The set of lowercase ASCII alphabet characters.
3692
3692
  * Used for specifying valid identifier characters
3693
3693
  * in #GScannerConfig.
3694
3694
  */
3695
- export const CSET_a_2_z: string | null
3695
+ export const CSET_a_2_z: string
3696
3696
  /**
3697
3697
  * The C standard version the code is compiling against, it's normally
3698
3698
  * defined with the same value of `__STDC_VERSION__` for C standard
@@ -3732,7 +3732,7 @@ export const DIR_SEPARATOR: number
3732
3732
  * The directory separator as a string.
3733
3733
  * This is "/" on UNIX machines and "\" under Windows.
3734
3734
  */
3735
- export const DIR_SEPARATOR_S: string | null
3735
+ export const DIR_SEPARATOR_S: string
3736
3736
  /**
3737
3737
  * The base of natural logarithms.
3738
3738
  */
@@ -3757,7 +3757,7 @@ export const E: number
3757
3757
  * ```
3758
3758
  *
3759
3759
  */
3760
- export const GINT16_FORMAT: string | null
3760
+ export const GINT16_FORMAT: string
3761
3761
  /**
3762
3762
  * The platform dependent length modifier for conversion specifiers
3763
3763
  * for scanning and printing values of type #gint16 or #guint16. It
@@ -3777,7 +3777,7 @@ export const GINT16_FORMAT: string | null
3777
3777
  * `int16_t` values, even though the in-memory representation is the same.
3778
3778
  * Standard C macros like `PRId16` and `SCNd16` should be used for `int16_t`.
3779
3779
  */
3780
- export const GINT16_MODIFIER: string | null
3780
+ export const GINT16_MODIFIER: string
3781
3781
  /**
3782
3782
  * This is the platform dependent conversion specifier for scanning
3783
3783
  * and printing values of type #gint32. See also %G_GINT16_FORMAT.
@@ -3786,7 +3786,7 @@ export const GINT16_MODIFIER: string | null
3786
3786
  * `int32_t` values, even though the in-memory representation is the same.
3787
3787
  * Standard C macros like `PRId32` and `SCNd32` should be used for `int32_t`.
3788
3788
  */
3789
- export const GINT32_FORMAT: string | null
3789
+ export const GINT32_FORMAT: string
3790
3790
  /**
3791
3791
  * The platform dependent length modifier for conversion specifiers
3792
3792
  * for scanning and printing values of type #gint32 or #guint32. It
@@ -3796,7 +3796,7 @@ export const GINT32_FORMAT: string | null
3796
3796
  * `int32_t` values, even though the in-memory representation is the same.
3797
3797
  * Standard C macros like `PRId32` and `SCNd32` should be used for `int32_t`.
3798
3798
  */
3799
- export const GINT32_MODIFIER: string | null
3799
+ export const GINT32_MODIFIER: string
3800
3800
  /**
3801
3801
  * This is the platform dependent conversion specifier for scanning
3802
3802
  * and printing values of type #gint64. See also %G_GINT16_FORMAT.
@@ -3812,7 +3812,7 @@ export const GINT32_MODIFIER: string | null
3812
3812
  * `int64_t` values, even though the in-memory representation is the same.
3813
3813
  * Standard C macros like `PRId64` and `SCNd64` should be used for `int64_t`.
3814
3814
  */
3815
- export const GINT64_FORMAT: string | null
3815
+ export const GINT64_FORMAT: string
3816
3816
  /**
3817
3817
  * The platform dependent length modifier for conversion specifiers
3818
3818
  * for scanning and printing values of type #gint64 or #guint64.
@@ -3826,7 +3826,7 @@ export const GINT64_FORMAT: string | null
3826
3826
  * `int64_t` values, even though the in-memory representation is the same.
3827
3827
  * Standard C macros like `PRId64` and `SCNd64` should be used for `int64_t`.
3828
3828
  */
3829
- export const GINT64_MODIFIER: string | null
3829
+ export const GINT64_MODIFIER: string
3830
3830
  /**
3831
3831
  * This is the platform dependent conversion specifier for scanning
3832
3832
  * and printing values of type #gintptr.
@@ -3837,7 +3837,7 @@ export const GINT64_MODIFIER: string | null
3837
3837
  * Standard C macros like `PRIdPTR` and `SCNdPTR` should be used for
3838
3838
  * `intptr_t`.
3839
3839
  */
3840
- export const GINTPTR_FORMAT: string | null
3840
+ export const GINTPTR_FORMAT: string
3841
3841
  /**
3842
3842
  * The platform dependent length modifier for conversion specifiers
3843
3843
  * for scanning and printing values of type #gintptr or #guintptr.
@@ -3849,17 +3849,17 @@ export const GINTPTR_FORMAT: string | null
3849
3849
  * Standard C macros like `PRIdPTR` and `SCNdPTR` should be used for
3850
3850
  * `intptr_t`.
3851
3851
  */
3852
- export const GINTPTR_MODIFIER: string | null
3852
+ export const GINTPTR_MODIFIER: string
3853
3853
  /**
3854
3854
  * Expands to "" on all modern compilers, and to __FUNCTION__ on gcc
3855
3855
  * version 2.x. Don't use it.
3856
3856
  */
3857
- export const GNUC_FUNCTION: string | null
3857
+ export const GNUC_FUNCTION: string
3858
3858
  /**
3859
3859
  * Expands to "" on all modern compilers, and to __PRETTY_FUNCTION__
3860
3860
  * on gcc version 2.x. Don't use it.
3861
3861
  */
3862
- export const GNUC_PRETTY_FUNCTION: string | null
3862
+ export const GNUC_PRETTY_FUNCTION: string
3863
3863
  /**
3864
3864
  * This is the platform dependent conversion specifier for scanning
3865
3865
  * and printing values of type #gsize. See also %G_GINT16_FORMAT.
@@ -3869,7 +3869,7 @@ export const GNUC_PRETTY_FUNCTION: string | null
3869
3869
  * same. The standard C `"zu"` format should be used for `size_t`,
3870
3870
  * assuming a C99-compliant `printf` implementation is available.
3871
3871
  */
3872
- export const GSIZE_FORMAT: string | null
3872
+ export const GSIZE_FORMAT: string
3873
3873
  /**
3874
3874
  * The platform dependent length modifier for conversion specifiers
3875
3875
  * for scanning and printing values of type #gsize. It
@@ -3880,7 +3880,7 @@ export const GSIZE_FORMAT: string | null
3880
3880
  * same. The Standard C `"z"` modifier should be used for `size_t`,
3881
3881
  * assuming a C99-compliant `printf` implementation is available.
3882
3882
  */
3883
- export const GSIZE_MODIFIER: string | null
3883
+ export const GSIZE_MODIFIER: string
3884
3884
  /**
3885
3885
  * This is the platform dependent conversion specifier for scanning
3886
3886
  * and printing values of type #gssize. See also %G_GINT16_FORMAT.
@@ -3890,7 +3890,7 @@ export const GSIZE_MODIFIER: string | null
3890
3890
  * representation is the same.
3891
3891
  * On POSIX platforms, the `"zd"` format should be used for `ssize_t`.
3892
3892
  */
3893
- export const GSSIZE_FORMAT: string | null
3893
+ export const GSSIZE_FORMAT: string
3894
3894
  /**
3895
3895
  * The platform dependent length modifier for conversion specifiers
3896
3896
  * for scanning and printing values of type #gssize. It
@@ -3901,7 +3901,7 @@ export const GSSIZE_FORMAT: string | null
3901
3901
  * representation is the same.
3902
3902
  * On POSIX platforms, the `"z"` modifier should be used for `ssize_t`.
3903
3903
  */
3904
- export const GSSIZE_MODIFIER: string | null
3904
+ export const GSSIZE_MODIFIER: string
3905
3905
  /**
3906
3906
  * This is the platform dependent conversion specifier for scanning
3907
3907
  * and printing values of type #guint16. See also %G_GINT16_FORMAT
@@ -3910,7 +3910,7 @@ export const GSSIZE_MODIFIER: string | null
3910
3910
  * `uint16_t` values, even though the in-memory representation is the same.
3911
3911
  * Standard C macros like `PRIu16` and `SCNu16` should be used for `uint16_t`.
3912
3912
  */
3913
- export const GUINT16_FORMAT: string | null
3913
+ export const GUINT16_FORMAT: string
3914
3914
  /**
3915
3915
  * This is the platform dependent conversion specifier for scanning
3916
3916
  * and printing values of type #guint32. See also %G_GINT16_FORMAT.
@@ -3919,7 +3919,7 @@ export const GUINT16_FORMAT: string | null
3919
3919
  * `uint32_t` values, even though the in-memory representation is the same.
3920
3920
  * Standard C macros like `PRIu32` and `SCNu32` should be used for `uint32_t`.
3921
3921
  */
3922
- export const GUINT32_FORMAT: string | null
3922
+ export const GUINT32_FORMAT: string
3923
3923
  /**
3924
3924
  * This is the platform dependent conversion specifier for scanning
3925
3925
  * and printing values of type #guint64. See also %G_GINT16_FORMAT.
@@ -3935,7 +3935,7 @@ export const GUINT32_FORMAT: string | null
3935
3935
  * `uint64_t` values, even though the in-memory representation is the same.
3936
3936
  * Standard C macros like `PRIu64` and `SCNu64` should be used for `uint64_t`.
3937
3937
  */
3938
- export const GUINT64_FORMAT: string | null
3938
+ export const GUINT64_FORMAT: string
3939
3939
  /**
3940
3940
  * This is the platform dependent conversion specifier
3941
3941
  * for scanning and printing values of type #guintptr.
@@ -3946,7 +3946,7 @@ export const GUINT64_FORMAT: string | null
3946
3946
  * Standard C macros like `PRIuPTR` and `SCNuPTR` should be used for
3947
3947
  * `uintptr_t`.
3948
3948
  */
3949
- export const GUINTPTR_FORMAT: string | null
3949
+ export const GUINTPTR_FORMAT: string
3950
3950
  export const HAVE_GINT64: number
3951
3951
  export const HAVE_GNUC_VARARGS: number
3952
3952
  /**
@@ -3976,110 +3976,110 @@ export const IEEE754_FLOAT_BIAS: number
3976
3976
  * Consult the specification for more
3977
3977
  * details about the meanings of the keys below.
3978
3978
  */
3979
- export const KEY_FILE_DESKTOP_GROUP: string | null
3979
+ export const KEY_FILE_DESKTOP_GROUP: string
3980
3980
  /**
3981
3981
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a string list
3982
3982
  * giving the available application actions.
3983
3983
  */
3984
- export const KEY_FILE_DESKTOP_KEY_ACTIONS: string | null
3984
+ export const KEY_FILE_DESKTOP_KEY_ACTIONS: string
3985
3985
  /**
3986
3986
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a list
3987
3987
  * of strings giving the categories in which the desktop entry
3988
3988
  * should be shown in a menu.
3989
3989
  */
3990
- export const KEY_FILE_DESKTOP_KEY_CATEGORIES: string | null
3990
+ export const KEY_FILE_DESKTOP_KEY_CATEGORIES: string
3991
3991
  /**
3992
3992
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a localized
3993
3993
  * string giving the tooltip for the desktop entry.
3994
3994
  */
3995
- export const KEY_FILE_DESKTOP_KEY_COMMENT: string | null
3995
+ export const KEY_FILE_DESKTOP_KEY_COMMENT: string
3996
3996
  /**
3997
3997
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a boolean
3998
3998
  * set to true if the application is D-Bus activatable.
3999
3999
  */
4000
- export const KEY_FILE_DESKTOP_KEY_DBUS_ACTIVATABLE: string | null
4000
+ export const KEY_FILE_DESKTOP_KEY_DBUS_ACTIVATABLE: string
4001
4001
  /**
4002
4002
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a string
4003
4003
  * giving the command line to execute. It is only valid for desktop
4004
4004
  * entries with the `Application` type.
4005
4005
  */
4006
- export const KEY_FILE_DESKTOP_KEY_EXEC: string | null
4006
+ export const KEY_FILE_DESKTOP_KEY_EXEC: string
4007
4007
  /**
4008
4008
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a localized
4009
4009
  * string giving the generic name of the desktop entry.
4010
4010
  */
4011
- export const KEY_FILE_DESKTOP_KEY_GENERIC_NAME: string | null
4011
+ export const KEY_FILE_DESKTOP_KEY_GENERIC_NAME: string
4012
4012
  /**
4013
4013
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a boolean
4014
4014
  * stating whether the desktop entry has been deleted by the user.
4015
4015
  */
4016
- export const KEY_FILE_DESKTOP_KEY_HIDDEN: string | null
4016
+ export const KEY_FILE_DESKTOP_KEY_HIDDEN: string
4017
4017
  /**
4018
4018
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a localized
4019
4019
  * string giving the name of the icon to be displayed for the desktop
4020
4020
  * entry.
4021
4021
  */
4022
- export const KEY_FILE_DESKTOP_KEY_ICON: string | null
4022
+ export const KEY_FILE_DESKTOP_KEY_ICON: string
4023
4023
  /**
4024
4024
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a list
4025
4025
  * of strings giving the MIME types supported by this desktop entry.
4026
4026
  */
4027
- export const KEY_FILE_DESKTOP_KEY_MIME_TYPE: string | null
4027
+ export const KEY_FILE_DESKTOP_KEY_MIME_TYPE: string
4028
4028
  /**
4029
4029
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a localized
4030
4030
  * string giving the specific name of the desktop entry.
4031
4031
  */
4032
- export const KEY_FILE_DESKTOP_KEY_NAME: string | null
4032
+ export const KEY_FILE_DESKTOP_KEY_NAME: string
4033
4033
  /**
4034
4034
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a list of
4035
4035
  * strings identifying the environments that should not display the
4036
4036
  * desktop entry.
4037
4037
  */
4038
- export const KEY_FILE_DESKTOP_KEY_NOT_SHOW_IN: string | null
4038
+ export const KEY_FILE_DESKTOP_KEY_NOT_SHOW_IN: string
4039
4039
  /**
4040
4040
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a boolean
4041
4041
  * stating whether the desktop entry should be shown in menus.
4042
4042
  */
4043
- export const KEY_FILE_DESKTOP_KEY_NO_DISPLAY: string | null
4043
+ export const KEY_FILE_DESKTOP_KEY_NO_DISPLAY: string
4044
4044
  /**
4045
4045
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a list of
4046
4046
  * strings identifying the environments that should display the
4047
4047
  * desktop entry.
4048
4048
  */
4049
- export const KEY_FILE_DESKTOP_KEY_ONLY_SHOW_IN: string | null
4049
+ export const KEY_FILE_DESKTOP_KEY_ONLY_SHOW_IN: string
4050
4050
  /**
4051
4051
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a string
4052
4052
  * containing the working directory to run the program in. It is only
4053
4053
  * valid for desktop entries with the `Application` type.
4054
4054
  */
4055
- export const KEY_FILE_DESKTOP_KEY_PATH: string | null
4055
+ export const KEY_FILE_DESKTOP_KEY_PATH: string
4056
4056
  /**
4057
4057
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a boolean
4058
4058
  * stating whether the application supports the
4059
4059
  * [Startup Notification Protocol Specification](http://www.freedesktop.org/Standards/startup-notification-spec).
4060
4060
  */
4061
- export const KEY_FILE_DESKTOP_KEY_STARTUP_NOTIFY: string | null
4061
+ export const KEY_FILE_DESKTOP_KEY_STARTUP_NOTIFY: string
4062
4062
  /**
4063
4063
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is string
4064
4064
  * identifying the WM class or name hint of a window that the application
4065
4065
  * will create, which can be used to emulate Startup Notification with
4066
4066
  * older applications.
4067
4067
  */
4068
- export const KEY_FILE_DESKTOP_KEY_STARTUP_WM_CLASS: string | null
4068
+ export const KEY_FILE_DESKTOP_KEY_STARTUP_WM_CLASS: string
4069
4069
  /**
4070
4070
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a boolean
4071
4071
  * stating whether the program should be run in a terminal window.
4072
4072
  *
4073
4073
  * It is only valid for desktop entries with the `Application` type.
4074
4074
  */
4075
- export const KEY_FILE_DESKTOP_KEY_TERMINAL: string | null
4075
+ export const KEY_FILE_DESKTOP_KEY_TERMINAL: string
4076
4076
  /**
4077
4077
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a string
4078
4078
  * giving the file name of a binary on disk used to determine if the
4079
4079
  * program is actually installed. It is only valid for desktop entries
4080
4080
  * with the `Application` type.
4081
4081
  */
4082
- export const KEY_FILE_DESKTOP_KEY_TRY_EXEC: string | null
4082
+ export const KEY_FILE_DESKTOP_KEY_TRY_EXEC: string
4083
4083
  /**
4084
4084
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a string
4085
4085
  * giving the type of the desktop entry.
@@ -4088,34 +4088,34 @@ export const KEY_FILE_DESKTOP_KEY_TRY_EXEC: string | null
4088
4088
  * %G_KEY_FILE_DESKTOP_TYPE_LINK, or
4089
4089
  * %G_KEY_FILE_DESKTOP_TYPE_DIRECTORY.
4090
4090
  */
4091
- export const KEY_FILE_DESKTOP_KEY_TYPE: string | null
4091
+ export const KEY_FILE_DESKTOP_KEY_TYPE: string
4092
4092
  /**
4093
4093
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a string
4094
4094
  * giving the URL to access. It is only valid for desktop entries
4095
4095
  * with the `Link` type.
4096
4096
  */
4097
- export const KEY_FILE_DESKTOP_KEY_URL: string | null
4097
+ export const KEY_FILE_DESKTOP_KEY_URL: string
4098
4098
  /**
4099
4099
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a string
4100
4100
  * giving the version of the Desktop Entry Specification used for
4101
4101
  * the desktop entry file.
4102
4102
  */
4103
- export const KEY_FILE_DESKTOP_KEY_VERSION: string | null
4103
+ export const KEY_FILE_DESKTOP_KEY_VERSION: string
4104
4104
  /**
4105
4105
  * The value of the %G_KEY_FILE_DESKTOP_KEY_TYPE, key for desktop
4106
4106
  * entries representing applications.
4107
4107
  */
4108
- export const KEY_FILE_DESKTOP_TYPE_APPLICATION: string | null
4108
+ export const KEY_FILE_DESKTOP_TYPE_APPLICATION: string
4109
4109
  /**
4110
4110
  * The value of the %G_KEY_FILE_DESKTOP_KEY_TYPE, key for desktop
4111
4111
  * entries representing directories.
4112
4112
  */
4113
- export const KEY_FILE_DESKTOP_TYPE_DIRECTORY: string | null
4113
+ export const KEY_FILE_DESKTOP_TYPE_DIRECTORY: string
4114
4114
  /**
4115
4115
  * The value of the %G_KEY_FILE_DESKTOP_KEY_TYPE, key for desktop
4116
4116
  * entries representing links to documents.
4117
4117
  */
4118
- export const KEY_FILE_DESKTOP_TYPE_LINK: string | null
4118
+ export const KEY_FILE_DESKTOP_TYPE_LINK: string
4119
4119
  /**
4120
4120
  * Specifies one of the possible types of byte order.
4121
4121
  * See %G_BYTE_ORDER.
@@ -4266,7 +4266,7 @@ export const MININT8: number
4266
4266
  * linked against at application run time.
4267
4267
  */
4268
4268
  export const MINOR_VERSION: number
4269
- export const MODULE_SUFFIX: string | null
4269
+ export const MODULE_SUFFIX: string
4270
4270
  /**
4271
4271
  * If a long option in the main group has this name, it is not treated as a
4272
4272
  * regular option. Instead it collects all non-option arguments which would
@@ -4279,7 +4279,7 @@ export const MODULE_SUFFIX: string | null
4279
4279
  * for leftover arguments has the advantage that GOption takes care of
4280
4280
  * necessary encoding conversions for strings or filenames.
4281
4281
  */
4282
- export const OPTION_REMAINING: string | null
4282
+ export const OPTION_REMAINING: string
4283
4283
  /**
4284
4284
  * Specifies one of the possible types of byte order
4285
4285
  * (currently unused). See %G_BYTE_ORDER.
@@ -4293,7 +4293,7 @@ export const PI: number
4293
4293
  * A format specifier that can be used in printf()-style format strings
4294
4294
  * when printing a #GPid.
4295
4295
  */
4296
- export const PID_FORMAT: string | null
4296
+ export const PID_FORMAT: string
4297
4297
  /**
4298
4298
  * Pi divided by 2.
4299
4299
  */
@@ -4306,7 +4306,7 @@ export const PI_4: number
4306
4306
  * A format specifier that can be used in printf()-style format strings
4307
4307
  * when printing the `fd` member of a #GPollFD.
4308
4308
  */
4309
- export const POLLFD_FORMAT: string | null
4309
+ export const POLLFD_FORMAT: string
4310
4310
  /**
4311
4311
  * Use this for default priority event sources.
4312
4312
  *
@@ -4375,7 +4375,7 @@ export const SEARCHPATH_SEPARATOR: number
4375
4375
  * The search path separator as a string.
4376
4376
  * This is ":" on UNIX machines and ";" under Windows.
4377
4377
  */
4378
- export const SEARCHPATH_SEPARATOR_S: string | null
4378
+ export const SEARCHPATH_SEPARATOR_S: string
4379
4379
  export const SIZEOF_LONG: number
4380
4380
  export const SIZEOF_SIZE_T: number
4381
4381
  export const SIZEOF_SSIZE_T: number
@@ -4397,7 +4397,7 @@ export const SQRT2: number
4397
4397
  /**
4398
4398
  * The standard delimiters, used in g_strdelimit().
4399
4399
  */
4400
- export const STR_DELIMITERS: string | null
4400
+ export const STR_DELIMITERS: string
4401
4401
  export const SYSDEF_AF_INET: number
4402
4402
  export const SYSDEF_AF_INET6: number
4403
4403
  export const SYSDEF_AF_UNIX: number
@@ -4429,7 +4429,7 @@ export const SYSDEF_MSG_PEEK: number
4429
4429
  * calls to functions like g_get_user_cache_dir(), the caller must be prepared
4430
4430
  * to create the directory if it doesn’t exist.
4431
4431
  */
4432
- export const TEST_OPTION_ISOLATE_DIRS: string | null
4432
+ export const TEST_OPTION_ISOLATE_DIRS: string
4433
4433
  /**
4434
4434
  * Evaluates to a time span of one day.
4435
4435
  */
@@ -4461,12 +4461,12 @@ export const UNICHAR_MAX_DECOMPOSITION_LENGTH: number
4461
4461
  * Generic delimiters characters as defined in
4462
4462
  * [RFC 3986](https://tools.ietf.org/html/rfc3986). Includes `:/?#[]```.
4463
4463
  */
4464
- export const URI_RESERVED_CHARS_GENERIC_DELIMITERS: string | null
4464
+ export const URI_RESERVED_CHARS_GENERIC_DELIMITERS: string
4465
4465
  /**
4466
4466
  * Subcomponent delimiter characters as defined in
4467
4467
  * [RFC 3986](https://tools.ietf.org/html/rfc3986). Includes `!$&'()*+,;=`.
4468
4468
  */
4469
- export const URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS: string | null
4469
+ export const URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS: string
4470
4470
  /**
4471
4471
  * Number of microseconds in one second (1 million).
4472
4472
  * This macro is provided for code readability.
@@ -4597,7 +4597,7 @@ export function ascii_dtostr(buffer: string | null, buf_len: number, d: number):
4597
4597
  * @param d The #gdouble to convert
4598
4598
  * @returns The pointer to the buffer with the converted string.
4599
4599
  */
4600
- export function ascii_formatd(buffer: string | null, buf_len: number, format: string | null, d: number): string | null
4600
+ export function ascii_formatd(buffer: string | null, buf_len: number, format: string, d: number): string | null
4601
4601
  /**
4602
4602
  * Compare two strings, ignoring the case of ASCII characters.
4603
4603
  *
@@ -4618,14 +4618,14 @@ export function ascii_formatd(buffer: string | null, buf_len: number, format: st
4618
4618
  * @param s2 string to compare with `s1`
4619
4619
  * @returns 0 if the strings match, a negative value if @s1 < @s2, or a positive value if @s1 > @s2.
4620
4620
  */
4621
- export function ascii_strcasecmp(s1: string | null, s2: string | null): number
4621
+ export function ascii_strcasecmp(s1: string, s2: string): number
4622
4622
  /**
4623
4623
  * Converts all upper case ASCII letters to lower case ASCII letters.
4624
4624
  * @param str a string
4625
4625
  * @param len length of `str` in bytes, or -1 if `str` is nul-terminated
4626
4626
  * @returns a newly-allocated string, with all the upper case characters in @str converted to lower case, with semantics that exactly match g_ascii_tolower(). (Note that this is unlike the old g_strdown(), which modified the string in place.)
4627
4627
  */
4628
- export function ascii_strdown(str: string | null, len: number): string | null
4628
+ export function ascii_strdown(str: string, len: number): string | null
4629
4629
  /**
4630
4630
  * A convenience function for converting a string to a signed number.
4631
4631
  *
@@ -4654,7 +4654,7 @@ export function ascii_strdown(str: string | null, len: number): string | null
4654
4654
  * @param max an upper bound (inclusive)
4655
4655
  * @returns %TRUE if @str was a number, otherwise %FALSE.
4656
4656
  */
4657
- export function ascii_string_to_signed(str: string | null, base: number, min: number, max: number): [ /* returnType */ boolean, /* out_num */ number ]
4657
+ export function ascii_string_to_signed(str: string, base: number, min: number, max: number): [ /* returnType */ boolean, /* out_num */ number ]
4658
4658
  /**
4659
4659
  * A convenience function for converting a string to an unsigned number.
4660
4660
  *
@@ -4684,7 +4684,7 @@ export function ascii_string_to_signed(str: string | null, base: number, min: nu
4684
4684
  * @param max an upper bound (inclusive)
4685
4685
  * @returns %TRUE if @str was a number, otherwise %FALSE.
4686
4686
  */
4687
- export function ascii_string_to_unsigned(str: string | null, base: number, min: number, max: number): [ /* returnType */ boolean, /* out_num */ number ]
4687
+ export function ascii_string_to_unsigned(str: string, base: number, min: number, max: number): [ /* returnType */ boolean, /* out_num */ number ]
4688
4688
  /**
4689
4689
  * Compare `s1` and `s2`, ignoring the case of ASCII characters and any
4690
4690
  * characters after the first `n` in each string. If either string is
@@ -4703,7 +4703,7 @@ export function ascii_string_to_unsigned(str: string | null, base: number, min:
4703
4703
  * @param n number of characters to compare
4704
4704
  * @returns 0 if the strings match, a negative value if @s1 < @s2, or a positive value if @s1 > @s2.
4705
4705
  */
4706
- export function ascii_strncasecmp(s1: string | null, s2: string | null, n: number): number
4706
+ export function ascii_strncasecmp(s1: string, s2: string, n: number): number
4707
4707
  /**
4708
4708
  * Converts a string to a #gdouble value.
4709
4709
  *
@@ -4731,7 +4731,7 @@ export function ascii_strncasecmp(s1: string | null, s2: string | null, n: numbe
4731
4731
  * @param nptr the string to convert to a numeric value.
4732
4732
  * @returns the #gdouble value.
4733
4733
  */
4734
- export function ascii_strtod(nptr: string | null): [ /* returnType */ number, /* endptr */ string | null ]
4734
+ export function ascii_strtod(nptr: string): [ /* returnType */ number, /* endptr */ string ]
4735
4735
  /**
4736
4736
  * Converts a string to a #gint64 value.
4737
4737
  * This function behaves like the standard strtoll() function
@@ -4754,7 +4754,7 @@ export function ascii_strtod(nptr: string | null): [ /* returnType */ number, /*
4754
4754
  * @param base to be used for the conversion, 2..36 or 0
4755
4755
  * @returns the #gint64 value or zero on error.
4756
4756
  */
4757
- export function ascii_strtoll(nptr: string | null, base: number): [ /* returnType */ number, /* endptr */ string | null ]
4757
+ export function ascii_strtoll(nptr: string, base: number): [ /* returnType */ number, /* endptr */ string ]
4758
4758
  /**
4759
4759
  * Converts a string to a #guint64 value.
4760
4760
  * This function behaves like the standard strtoull() function
@@ -4782,14 +4782,14 @@ export function ascii_strtoll(nptr: string | null, base: number): [ /* returnTyp
4782
4782
  * @param base to be used for the conversion, 2..36 or 0
4783
4783
  * @returns the #guint64 value or zero on error.
4784
4784
  */
4785
- export function ascii_strtoull(nptr: string | null, base: number): [ /* returnType */ number, /* endptr */ string | null ]
4785
+ export function ascii_strtoull(nptr: string, base: number): [ /* returnType */ number, /* endptr */ string ]
4786
4786
  /**
4787
4787
  * Converts all lower case ASCII letters to upper case ASCII letters.
4788
4788
  * @param str a string
4789
4789
  * @param len length of `str` in bytes, or -1 if `str` is nul-terminated
4790
4790
  * @returns a newly allocated string, with all the lower case characters in @str converted to upper case, with semantics that exactly match g_ascii_toupper(). (Note that this is unlike the old g_strup(), which modified the string in place.)
4791
4791
  */
4792
- export function ascii_strup(str: string | null, len: number): string | null
4792
+ export function ascii_strup(str: string, len: number): string | null
4793
4793
  /**
4794
4794
  * Convert a character to ASCII lower case.
4795
4795
  *
@@ -4827,12 +4827,12 @@ export function ascii_toupper(c: number): number
4827
4827
  * @returns If @c is a hex digit (according to g_ascii_isxdigit()), its numeric value. Otherwise, -1.
4828
4828
  */
4829
4829
  export function ascii_xdigit_value(c: number): number
4830
- export function assert_warning(log_domain: string | null, file: string | null, line: number, pretty_function: string | null, expression: string | null): void
4831
- export function assertion_message(domain: string | null, file: string | null, line: number, func: string | null, message: string | null): void
4832
- export function assertion_message_cmpint(domain: string | null, file: string | null, line: number, func: string | null, expr: string | null, arg1: number, cmp: string | null, arg2: number, numtype: number): void
4833
- export function assertion_message_cmpstr(domain: string | null, file: string | null, line: number, func: string | null, expr: string | null, arg1: string | null, cmp: string | null, arg2: string | null): void
4834
- export function assertion_message_cmpstrv(domain: string | null, file: string | null, line: number, func: string | null, expr: string | null, arg1: string | null, arg2: string | null, first_wrong_idx: number): void
4835
- export function assertion_message_error(domain: string | null, file: string | null, line: number, func: string | null, expr: string | null, error: Error, error_domain: Quark, error_code: number): void
4830
+ export function assert_warning(log_domain: string, file: string, line: number, pretty_function: string, expression: string): void
4831
+ export function assertion_message(domain: string, file: string, line: number, func: string, message: string): void
4832
+ export function assertion_message_cmpint(domain: string, file: string, line: number, func: string, expr: string, arg1: number, cmp: string, arg2: number, numtype: number): void
4833
+ export function assertion_message_cmpstr(domain: string, file: string, line: number, func: string, expr: string, arg1: string, cmp: string, arg2: string): void
4834
+ export function assertion_message_cmpstrv(domain: string, file: string, line: number, func: string, expr: string, arg1: string, arg2: string, first_wrong_idx: number): void
4835
+ export function assertion_message_error(domain: string, file: string, line: number, func: string, expr: string, error: Error, error_domain: Quark, error_code: number): void
4836
4836
  /**
4837
4837
  * Specifies a function to be called at normal program termination.
4838
4838
  *
@@ -5284,7 +5284,7 @@ export function atomic_ref_count_init(arc: number): void
5284
5284
  * @param text zero-terminated string with base64 text to decode
5285
5285
  * @returns newly allocated buffer containing the binary data that @text represents. The returned buffer must be freed with g_free().
5286
5286
  */
5287
- export function base64_decode(text: string | null): Uint8Array
5287
+ export function base64_decode(text: string): Uint8Array
5288
5288
  /**
5289
5289
  * Decode a sequence of Base-64 encoded text into binary data
5290
5290
  * by overwriting the input data.
@@ -5451,7 +5451,7 @@ export function build_filenamev(args: string[]): string
5451
5451
  * @param args %NULL-terminated array of strings containing the path elements.
5452
5452
  * @returns a newly-allocated string that must be freed with g_free().
5453
5453
  */
5454
- export function build_pathv(separator: string | null, args: string[]): string
5454
+ export function build_pathv(separator: string, args: string[]): string
5455
5455
  /**
5456
5456
  * Frees the memory allocated by the #GByteArray. If `free_segment` is
5457
5457
  * %TRUE it frees the actual byte data. If the reference count of
@@ -5700,7 +5700,7 @@ export function compute_checksum_for_data(checksum_type: ChecksumType, data: Uin
5700
5700
  * @param length the length of the string, or -1 if the string is null-terminated.
5701
5701
  * @returns the checksum as a hexadecimal string, or %NULL if g_checksum_new() fails for @checksum_type. The returned string should be freed with g_free() when done using it.
5702
5702
  */
5703
- export function compute_checksum_for_string(checksum_type: ChecksumType, str: string | null, length: number): string | null
5703
+ export function compute_checksum_for_string(checksum_type: ChecksumType, str: string, length: number): string | null
5704
5704
  /**
5705
5705
  * Computes the HMAC for a binary `data`. This is a
5706
5706
  * convenience wrapper for g_hmac_new(), g_hmac_get_string()
@@ -5735,7 +5735,7 @@ export function compute_hmac_for_data(digest_type: ChecksumType, key: Uint8Array
5735
5735
  * @param length the length of the string, or -1 if the string is nul-terminated
5736
5736
  * @returns the HMAC as a hexadecimal string. The returned string should be freed with g_free() when done using it.
5737
5737
  */
5738
- export function compute_hmac_for_string(digest_type: ChecksumType, key: Uint8Array, str: string | null, length: number): string | null
5738
+ export function compute_hmac_for_string(digest_type: ChecksumType, key: Uint8Array, str: string, length: number): string | null
5739
5739
  /**
5740
5740
  * Converts a string from one character set to another.
5741
5741
  *
@@ -5756,7 +5756,7 @@ export function compute_hmac_for_string(digest_type: ChecksumType, key: Uint8Arr
5756
5756
  * @param from_codeset character set of `str`.
5757
5757
  * @returns If the conversion was successful, a newly allocated buffer containing the converted string, which must be freed with g_free(). Otherwise %NULL and @error will be set.
5758
5758
  */
5759
- export function convert(str: Uint8Array, to_codeset: string | null, from_codeset: string | null): [ /* returnType */ Uint8Array, /* bytes_read */ number ]
5759
+ export function convert(str: Uint8Array, to_codeset: string, from_codeset: string): [ /* returnType */ Uint8Array, /* bytes_read */ number ]
5760
5760
  export function convert_error_quark(): Quark
5761
5761
  /**
5762
5762
  * Converts a string from one character set to another, possibly
@@ -5782,7 +5782,7 @@ export function convert_error_quark(): Quark
5782
5782
  * @param fallback UTF-8 string to use in place of characters not present in the target encoding. (The string must be representable in the target encoding). If %NULL, characters not in the target encoding will be represented as Unicode escapes \uxxxx or \Uxxxxyyyy.
5783
5783
  * @returns If the conversion was successful, a newly allocated buffer containing the converted string, which must be freed with g_free(). Otherwise %NULL and @error will be set.
5784
5784
  */
5785
- export function convert_with_fallback(str: Uint8Array, to_codeset: string | null, from_codeset: string | null, fallback: string | null): [ /* returnType */ Uint8Array, /* bytes_read */ number ]
5785
+ export function convert_with_fallback(str: Uint8Array, to_codeset: string, from_codeset: string, fallback: string): [ /* returnType */ Uint8Array, /* bytes_read */ number ]
5786
5786
  /**
5787
5787
  * Calls the given function for each data element of the datalist. The
5788
5788
  * function is called with each data element's #GQuark id and data,
@@ -5805,7 +5805,7 @@ export function datalist_foreach(datalist: Data, func: DataForeachFunc): void
5805
5805
  * @param key the string identifying a data element.
5806
5806
  * @returns the data element, or %NULL if it is not found.
5807
5807
  */
5808
- export function datalist_get_data(datalist: Data, key: string | null): any | null
5808
+ export function datalist_get_data(datalist: Data, key: string): any | null
5809
5809
  /**
5810
5810
  * Gets flags values packed in together with the datalist.
5811
5811
  * See g_datalist_set_flags().
@@ -5935,7 +5935,7 @@ export function date_is_leap_year(year: DateYear): boolean
5935
5935
  * @param date valid #GDate
5936
5936
  * @returns number of characters written to the buffer, or 0 the buffer was too small
5937
5937
  */
5938
- export function date_strftime(s: string | null, slen: number, format: string | null, date: Date): number
5938
+ export function date_strftime(s: string | null, slen: number, format: string, date: Date): number
5939
5939
  /**
5940
5940
  * Returns %TRUE if the day of the month is valid (a day is valid if it's
5941
5941
  * between 1 and 31 inclusive).
@@ -5991,7 +5991,7 @@ export function date_valid_year(year: DateYear): boolean
5991
5991
  * @param category a locale category
5992
5992
  * @returns the translated string for the given locale category
5993
5993
  */
5994
- export function dcgettext(domain: string | null, msgid: string | null, category: number): string | null
5994
+ export function dcgettext(domain: string | null, msgid: string, category: number): string
5995
5995
  /**
5996
5996
  * This function is a wrapper of dgettext() which does not translate
5997
5997
  * the message if the default domain as set with textdomain() has no
@@ -6029,7 +6029,7 @@ export function dcgettext(domain: string | null, msgid: string | null, category:
6029
6029
  * @param msgid message to translate
6030
6030
  * @returns The translated string
6031
6031
  */
6032
- export function dgettext(domain: string | null, msgid: string | null): string | null
6032
+ export function dgettext(domain: string | null, msgid: string): string
6033
6033
  /**
6034
6034
  * Creates a subdirectory in the preferred directory for temporary
6035
6035
  * files (as returned by g_get_tmp_dir()).
@@ -6084,7 +6084,7 @@ export function direct_hash(v: any | null): number
6084
6084
  * @param n the quantity for which translation is needed
6085
6085
  * @returns The translated string
6086
6086
  */
6087
- export function dngettext(domain: string | null, msgid: string | null, msgid_plural: string | null, n: number): string | null
6087
+ export function dngettext(domain: string | null, msgid: string, msgid_plural: string, n: number): string
6088
6088
  /**
6089
6089
  * Compares the two #gdouble values being pointed to and returns
6090
6090
  * %TRUE if they are equal.
@@ -6124,7 +6124,7 @@ export function double_hash(v: any): number
6124
6124
  * @param msgidoffset the offset of the message id in `msgctxid`
6125
6125
  * @returns The translated string
6126
6126
  */
6127
- export function dpgettext(domain: string | null, msgctxtid: string | null, msgidoffset: number): string | null
6127
+ export function dpgettext(domain: string | null, msgctxtid: string, msgidoffset: number): string
6128
6128
  /**
6129
6129
  * This function is a variant of g_dgettext() which supports
6130
6130
  * a disambiguating message context. GNU gettext uses the
@@ -6141,7 +6141,7 @@ export function dpgettext(domain: string | null, msgctxtid: string | null, msgid
6141
6141
  * @param msgid the message
6142
6142
  * @returns The translated string
6143
6143
  */
6144
- export function dpgettext2(domain: string | null, context: string | null, msgid: string | null): string | null
6144
+ export function dpgettext2(domain: string | null, context: string, msgid: string): string
6145
6145
  /**
6146
6146
  * Returns the value of the environment variable `variable` in the
6147
6147
  * provided list `envp`.
@@ -6440,7 +6440,7 @@ export function filename_display_name(filename: string): string | null
6440
6440
  * @param uri a uri describing a filename (escaped, encoded in ASCII).
6441
6441
  * @returns a newly-allocated string holding the resulting filename, or %NULL on an error.
6442
6442
  */
6443
- export function filename_from_uri(uri: string | null): [ /* returnType */ string, /* hostname */ string | null ]
6443
+ export function filename_from_uri(uri: string): [ /* returnType */ string, /* hostname */ string | null ]
6444
6444
  /**
6445
6445
  * Converts a string from UTF-8 to the encoding GLib uses for
6446
6446
  * filenames. Note that on Windows GLib uses UTF-8 for filenames;
@@ -6456,7 +6456,7 @@ export function filename_from_uri(uri: string | null): [ /* returnType */ string
6456
6456
  * @param len the length of the string, or -1 if the string is nul-terminated.
6457
6457
  * @returns The converted string, or %NULL on an error.
6458
6458
  */
6459
- export function filename_from_utf8(utf8string: string | null, len: number): [ /* returnType */ string, /* bytes_read */ number, /* bytes_written */ number ]
6459
+ export function filename_from_utf8(utf8string: string, len: number): [ /* returnType */ string, /* bytes_read */ number, /* bytes_written */ number ]
6460
6460
  /**
6461
6461
  * Converts an absolute filename to an escaped ASCII-encoded URI, with the path
6462
6462
  * component following Section 3.3. of RFC 2396.
@@ -6615,7 +6615,7 @@ export function get_application_name(): string | null
6615
6615
  * freed.
6616
6616
  * @returns %TRUE if the returned charset is UTF-8
6617
6617
  */
6618
- export function get_charset(): [ /* returnType */ boolean, /* charset */ string | null ]
6618
+ export function get_charset(): [ /* returnType */ boolean, /* charset */ string ]
6619
6619
  /**
6620
6620
  * Gets the character set for the current locale.
6621
6621
  * @returns a newly allocated string containing the name of the character set. This string must be freed with g_free().
@@ -6641,7 +6641,7 @@ export function get_codeset(): string | null
6641
6641
  * freed.
6642
6642
  * @returns %TRUE if the returned charset is UTF-8
6643
6643
  */
6644
- export function get_console_charset(): [ /* returnType */ boolean, /* charset */ string | null ]
6644
+ export function get_console_charset(): [ /* returnType */ boolean, /* charset */ string ]
6645
6645
  /**
6646
6646
  * Gets the current directory.
6647
6647
  *
@@ -6746,7 +6746,7 @@ export function get_home_dir(): string
6746
6746
  * The encoding of the returned string is UTF-8.
6747
6747
  * @returns the host name of the machine.
6748
6748
  */
6749
- export function get_host_name(): string | null
6749
+ export function get_host_name(): string
6750
6750
  /**
6751
6751
  * Computes a list of applicable locale names, which can be used to
6752
6752
  * e.g. construct locale-dependent filenames or search paths. The returned
@@ -6776,7 +6776,7 @@ export function get_language_names(): string[]
6776
6776
  * @param category_name a locale category name
6777
6777
  * @returns a %NULL-terminated array of strings owned by the thread g_get_language_names_with_category was called from. It must not be modified or freed. It must be copied if planned to be used in another thread.
6778
6778
  */
6779
- export function get_language_names_with_category(category_name: string | null): string[]
6779
+ export function get_language_names_with_category(category_name: string): string[]
6780
6780
  /**
6781
6781
  * Returns a list of derived variants of `locale,` which can be used to
6782
6782
  * e.g. construct locale-dependent filenames or search paths. The returned
@@ -6796,7 +6796,7 @@ export function get_language_names_with_category(category_name: string | null):
6796
6796
  * @param locale a locale identifier
6797
6797
  * @returns a newly allocated array of newly allocated strings with the locale variants. Free with g_strfreev().
6798
6798
  */
6799
- export function get_locale_variants(locale: string | null): string[]
6799
+ export function get_locale_variants(locale: string): string[]
6800
6800
  /**
6801
6801
  * Queries the system monotonic time.
6802
6802
  *
@@ -6831,7 +6831,7 @@ export function get_num_processors(): number
6831
6831
  * @param key_name a key for the OS info being requested, for example %G_OS_INFO_KEY_NAME.
6832
6832
  * @returns The associated value for the requested key or %NULL if this information is not provided.
6833
6833
  */
6834
- export function get_os_info(key_name: string | null): string | null
6834
+ export function get_os_info(key_name: string): string | null
6835
6835
  /**
6836
6836
  * Gets the name of the program. This name should not be localized,
6837
6837
  * in contrast to g_get_application_name().
@@ -7319,7 +7319,7 @@ export function hook_unref(hook_list: HookList, hook: Hook): void
7319
7319
  * @param hostname a hostname
7320
7320
  * @returns %TRUE if @hostname contains any ASCII-encoded segments.
7321
7321
  */
7322
- export function hostname_is_ascii_encoded(hostname: string | null): boolean
7322
+ export function hostname_is_ascii_encoded(hostname: string): boolean
7323
7323
  /**
7324
7324
  * Tests if `hostname` is the string form of an IPv4 or IPv6 address.
7325
7325
  * (Eg, "192.168.0.1".)
@@ -7328,7 +7328,7 @@ export function hostname_is_ascii_encoded(hostname: string | null): boolean
7328
7328
  * @param hostname a hostname (or IP address in string form)
7329
7329
  * @returns %TRUE if @hostname is an IP address
7330
7330
  */
7331
- export function hostname_is_ip_address(hostname: string | null): boolean
7331
+ export function hostname_is_ip_address(hostname: string): boolean
7332
7332
  /**
7333
7333
  * Tests if `hostname` contains Unicode characters. If this returns
7334
7334
  * %TRUE, you need to encode the hostname with g_hostname_to_ascii()
@@ -7340,7 +7340,7 @@ export function hostname_is_ip_address(hostname: string | null): boolean
7340
7340
  * @param hostname a hostname
7341
7341
  * @returns %TRUE if @hostname contains any non-ASCII characters
7342
7342
  */
7343
- export function hostname_is_non_ascii(hostname: string | null): boolean
7343
+ export function hostname_is_non_ascii(hostname: string): boolean
7344
7344
  /**
7345
7345
  * Converts `hostname` to its canonical ASCII form; an ASCII-only
7346
7346
  * string containing no uppercase letters and not ending with a
@@ -7348,7 +7348,7 @@ export function hostname_is_non_ascii(hostname: string | null): boolean
7348
7348
  * @param hostname a valid UTF-8 or ASCII hostname
7349
7349
  * @returns an ASCII hostname, which must be freed, or %NULL if @hostname is in some way invalid.
7350
7350
  */
7351
- export function hostname_to_ascii(hostname: string | null): string | null
7351
+ export function hostname_to_ascii(hostname: string): string | null
7352
7352
  /**
7353
7353
  * Converts `hostname` to its canonical presentation form; a UTF-8
7354
7354
  * string in Unicode normalization form C, containing no uppercase
@@ -7360,7 +7360,7 @@ export function hostname_to_ascii(hostname: string | null): string | null
7360
7360
  * @param hostname a valid UTF-8 or ASCII hostname
7361
7361
  * @returns a UTF-8 hostname, which must be freed, or %NULL if @hostname is in some way invalid.
7362
7362
  */
7363
- export function hostname_to_unicode(hostname: string | null): string | null
7363
+ export function hostname_to_unicode(hostname: string): string | null
7364
7364
  /**
7365
7365
  * Adds a function to be called whenever there are no higher priority
7366
7366
  * events pending.
@@ -7458,7 +7458,7 @@ export function int_hash(v: any): number
7458
7458
  * @param string a static string
7459
7459
  * @returns a canonical representation for the string
7460
7460
  */
7461
- export function intern_static_string(string: string | null): string | null
7461
+ export function intern_static_string(string: string | null): string
7462
7462
  /**
7463
7463
  * Returns a canonical representation for `string`. Interned strings
7464
7464
  * can be compared for equality by comparing the pointers, instead of
@@ -7470,7 +7470,7 @@ export function intern_static_string(string: string | null): string | null
7470
7470
  * @param string a string
7471
7471
  * @returns a canonical representation for the string
7472
7472
  */
7473
- export function intern_string(string: string | null): string | null
7473
+ export function intern_string(string: string | null): string
7474
7474
  /**
7475
7475
  * Adds the #GIOChannel into the default main loop context
7476
7476
  * with the given priority.
@@ -7539,7 +7539,7 @@ export function listenv(): string[]
7539
7539
  * @param len the length of the string, or -1 if the string is nul-terminated.
7540
7540
  * @returns A newly-allocated buffer containing the converted string, or %NULL on an error, and error will be set.
7541
7541
  */
7542
- export function locale_from_utf8(utf8string: string | null, len: number): [ /* returnType */ Uint8Array, /* bytes_read */ number ]
7542
+ export function locale_from_utf8(utf8string: string, len: number): [ /* returnType */ Uint8Array, /* bytes_read */ number ]
7543
7543
  /**
7544
7544
  * Converts a string which is in the encoding used for strings by
7545
7545
  * the C runtime (usually the same as that used by the operating
@@ -7609,7 +7609,7 @@ export function log_get_debug_enabled(): boolean
7609
7609
  * @param log_domain the log domain
7610
7610
  * @param handler_id the id of the handler, which was returned in g_log_set_handler()
7611
7611
  */
7612
- export function log_remove_handler(log_domain: string | null, handler_id: number): void
7612
+ export function log_remove_handler(log_domain: string, handler_id: number): void
7613
7613
  /**
7614
7614
  * Sets the message levels which are always fatal, in any log domain.
7615
7615
  * When a message with any of these levels is logged the program terminates.
@@ -7659,7 +7659,7 @@ export function log_set_debug_enabled(enabled: boolean): void
7659
7659
  * @param fatal_mask the new fatal mask
7660
7660
  * @returns the old fatal mask for the log domain
7661
7661
  */
7662
- export function log_set_fatal_mask(log_domain: string | null, fatal_mask: LogLevelFlags): LogLevelFlags
7662
+ export function log_set_fatal_mask(log_domain: string, fatal_mask: LogLevelFlags): LogLevelFlags
7663
7663
  /**
7664
7664
  * Like g_log_set_handler(), but takes a destroy notify for the `user_data`.
7665
7665
  *
@@ -8083,7 +8083,7 @@ export function markup_error_quark(): Quark
8083
8083
  * @param length length of `text` in bytes, or -1 if the text is nul-terminated
8084
8084
  * @returns a newly allocated string with the escaped text
8085
8085
  */
8086
- export function markup_escape_text(text: string | null, length: number): string | null
8086
+ export function markup_escape_text(text: string, length: number): string | null
8087
8087
  /**
8088
8088
  * Checks whether the allocator used by g_malloc() is the system's
8089
8089
  * malloc implementation. If it returns %TRUE memory allocated with
@@ -8191,7 +8191,7 @@ export function number_parser_error_quark(): Quark
8191
8191
  * calling g_on_error_stack_trace() instead.
8192
8192
  * @param prg_name the program name, needed by gdb for the "[S]tack trace" option. If `prg_name` is %NULL, g_get_prgname() is called to get the program name (which will work correctly if gdk_init() or gtk_init() has been called)
8193
8193
  */
8194
- export function on_error_query(prg_name: string | null): void
8194
+ export function on_error_query(prg_name: string): void
8195
8195
  /**
8196
8196
  * Invokes gdb, which attaches to the current process and shows a
8197
8197
  * stack trace. Called by g_on_error_query() when the "[S]tack trace"
@@ -8208,7 +8208,7 @@ export function on_error_query(prg_name: string | null): void
8208
8208
  * handle that exception (see [Running GLib Applications](glib-running.html)).
8209
8209
  * @param prg_name the program name, needed by gdb for the "[S]tack trace" option
8210
8210
  */
8211
- export function on_error_stack_trace(prg_name: string | null): void
8211
+ export function on_error_stack_trace(prg_name: string): void
8212
8212
  /**
8213
8213
  * Function to be called when starting a critical initialization
8214
8214
  * section. The argument `location` must point to a static
@@ -8356,7 +8356,7 @@ export function path_skip_root(file_name: string): string | null
8356
8356
  * @param string the UTF-8 encoded string to match
8357
8357
  * @returns %TRUE if @string matches @pspec
8358
8358
  */
8359
- export function pattern_match_simple(pattern: string | null, string: string | null): boolean
8359
+ export function pattern_match_simple(pattern: string, string: string): boolean
8360
8360
  /**
8361
8361
  * This is equivalent to g_bit_lock, but working on pointers (or other
8362
8362
  * pointer-sized values).
@@ -8427,7 +8427,7 @@ export function poll(fds: PollFD, nfds: number, timeout: number): number
8427
8427
  * @param err a return location for a #GError, or %NULL
8428
8428
  * @param prefix string to prefix `err` with
8429
8429
  */
8430
- export function prefix_error_literal(err: Error | null, prefix: string | null): void
8430
+ export function prefix_error_literal(err: Error | null, prefix: string): void
8431
8431
  /**
8432
8432
  * If `dest` is %NULL, free `src;` otherwise, moves `src` into *`dest`.
8433
8433
  * The error variable `dest` points to must be %NULL.
@@ -8478,7 +8478,7 @@ export function quark_from_string(string: string | null): Quark
8478
8478
  * @param quark a #GQuark.
8479
8479
  * @returns the string associated with the #GQuark
8480
8480
  */
8481
- export function quark_to_string(quark: Quark): string | null
8481
+ export function quark_to_string(quark: Quark): string
8482
8482
  /**
8483
8483
  * Gets the #GQuark associated with the given string, or 0 if string is
8484
8484
  * %NULL or it has no associated #GQuark.
@@ -8663,7 +8663,7 @@ export function ref_string_length(str: string | null): number
8663
8663
  * @param str a NUL-terminated string
8664
8664
  * @returns the newly created reference counted string
8665
8665
  */
8666
- export function ref_string_new(str: string | null): string | null
8666
+ export function ref_string_new(str: string): string | null
8667
8667
  /**
8668
8668
  * Creates a new reference counted string and copies the content of `str`
8669
8669
  * into it.
@@ -8674,7 +8674,7 @@ export function ref_string_new(str: string | null): string | null
8674
8674
  * @param str a NUL-terminated string
8675
8675
  * @returns the newly created reference counted string, or a new reference to an existing string
8676
8676
  */
8677
- export function ref_string_new_intern(str: string | null): string | null
8677
+ export function ref_string_new_intern(str: string): string | null
8678
8678
  /**
8679
8679
  * Creates a new reference counted string and copies the contents of `str`
8680
8680
  * into it, up to `len` bytes.
@@ -8685,7 +8685,7 @@ export function ref_string_new_intern(str: string | null): string | null
8685
8685
  * @param len length of `str` to use, or -1 if `str` is nul-terminated
8686
8686
  * @returns the newly created reference counted string
8687
8687
  */
8688
- export function ref_string_new_len(str: string | null, len: number): string | null
8688
+ export function ref_string_new_len(str: string, len: number): string | null
8689
8689
  /**
8690
8690
  * Releases a reference on a string; if it was the last reference, the
8691
8691
  * resources allocated by the string are freed as well.
@@ -8705,7 +8705,7 @@ export function ref_string_release(str: string | null): void
8705
8705
  * @param replacement the replacement string
8706
8706
  * @returns whether @replacement is a valid replacement string
8707
8707
  */
8708
- export function regex_check_replacement(replacement: string | null): [ /* returnType */ boolean, /* has_references */ boolean ]
8708
+ export function regex_check_replacement(replacement: string): [ /* returnType */ boolean, /* has_references */ boolean ]
8709
8709
  export function regex_error_quark(): Quark
8710
8710
  /**
8711
8711
  * Escapes the nul characters in `string` to "\x00". It can be used
@@ -8717,7 +8717,7 @@ export function regex_error_quark(): Quark
8717
8717
  * @param length the length of `string`
8718
8718
  * @returns a newly-allocated escaped string
8719
8719
  */
8720
- export function regex_escape_nul(string: string | null, length: number): string | null
8720
+ export function regex_escape_nul(string: string, length: number): string | null
8721
8721
  /**
8722
8722
  * Escapes the special characters used for regular expressions
8723
8723
  * in `string,` for instance "a.b*c" becomes "a\.b\*c". This
@@ -8730,7 +8730,7 @@ export function regex_escape_nul(string: string | null, length: number): string
8730
8730
  * @param length the length of `string,` in bytes, or -1 if `string` is nul-terminated
8731
8731
  * @returns a newly-allocated escaped string
8732
8732
  */
8733
- export function regex_escape_string(string: string | null, length: number): string | null
8733
+ export function regex_escape_string(string: string, length: number): string | null
8734
8734
  /**
8735
8735
  * Scans for a match in `string` for `pattern`.
8736
8736
  *
@@ -8748,7 +8748,7 @@ export function regex_escape_string(string: string | null, length: number): stri
8748
8748
  * @param match_options match options, or 0
8749
8749
  * @returns %TRUE if the string matched, %FALSE otherwise
8750
8750
  */
8751
- export function regex_match_simple(pattern: string | null, string: string | null, compile_options: RegexCompileFlags, match_options: RegexMatchFlags): boolean
8751
+ export function regex_match_simple(pattern: string, string: string, compile_options: RegexCompileFlags, match_options: RegexMatchFlags): boolean
8752
8752
  /**
8753
8753
  * Breaks the string on the pattern, and returns an array of
8754
8754
  * the tokens. If the pattern contains capturing parentheses,
@@ -8783,7 +8783,7 @@ export function regex_match_simple(pattern: string | null, string: string | null
8783
8783
  * @param match_options match options, or 0
8784
8784
  * @returns a %NULL-terminated array of strings. Free it using g_strfreev()
8785
8785
  */
8786
- export function regex_split_simple(pattern: string | null, string: string | null, compile_options: RegexCompileFlags, match_options: RegexMatchFlags): string[]
8786
+ export function regex_split_simple(pattern: string, string: string, compile_options: RegexCompileFlags, match_options: RegexMatchFlags): string[]
8787
8787
  /**
8788
8788
  * Resets the cache used for g_get_user_special_dir(), so
8789
8789
  * that the latest on-disk version is used. Call this only
@@ -8900,7 +8900,7 @@ export function sequence_swap(a: SequenceIter, b: SequenceIter): void
8900
8900
  * or when displaying an application's name in the task list.
8901
8901
  * @param application_name localized name of the application
8902
8902
  */
8903
- export function set_application_name(application_name: string | null): void
8903
+ export function set_application_name(application_name: string): void
8904
8904
  /**
8905
8905
  * Does nothing if `err` is %NULL; if `err` is non-%NULL, then *`err`
8906
8906
  * must be %NULL. A new #GError is created and assigned to *`err`.
@@ -8911,7 +8911,7 @@ export function set_application_name(application_name: string | null): void
8911
8911
  * @param code error code
8912
8912
  * @param message error message
8913
8913
  */
8914
- export function set_error_literal(domain: Quark, code: number, message: string | null): /* err */ Error
8914
+ export function set_error_literal(domain: Quark, code: number, message: string): /* err */ Error
8915
8915
  /**
8916
8916
  * Sets the name of the program. This name should not be localized,
8917
8917
  * in contrast to g_set_application_name().
@@ -8927,7 +8927,7 @@ export function set_error_literal(domain: Quark, code: number, message: string |
8927
8927
  * could only be called once per process.
8928
8928
  * @param prgname the name of the program.
8929
8929
  */
8930
- export function set_prgname(prgname: string | null): void
8930
+ export function set_prgname(prgname: string): void
8931
8931
  /**
8932
8932
  * Sets an environment variable. On UNIX, both the variable's name and
8933
8933
  * value can be arbitrary byte strings, except that the variable's name
@@ -9160,7 +9160,7 @@ export function source_remove_by_user_data(user_data: any | null): boolean
9160
9160
  * @param tag a #GSource ID
9161
9161
  * @param name debug name for the source
9162
9162
  */
9163
- export function source_set_name_by_id(tag: number, name: string | null): void
9163
+ export function source_set_name_by_id(tag: number, name: string): void
9164
9164
  /**
9165
9165
  * Gets the smallest prime number from a built-in array of primes which
9166
9166
  * is larger than `num`. This is used within GLib to calculate the optimum
@@ -9589,7 +9589,7 @@ export function spawn_sync(working_directory: string | null, argv: string[], env
9589
9589
  * @param src source string.
9590
9590
  * @returns a pointer to the trailing nul byte in `dest`.
9591
9591
  */
9592
- export function stpcpy(dest: string | null, src: string | null): string | null
9592
+ export function stpcpy(dest: string | null, src: string): string | null
9593
9593
  /**
9594
9594
  * Compares two strings for byte-by-byte equality and returns %TRUE
9595
9595
  * if they are equal. It can be passed to g_hash_table_new() as the
@@ -9610,14 +9610,14 @@ export function str_equal(v1: any, v2: any): boolean
9610
9610
  * @param prefix the nul-terminated prefix to look for
9611
9611
  * @returns %TRUE if @str begins with @prefix, %FALSE otherwise.
9612
9612
  */
9613
- export function str_has_prefix(str: string | null, prefix: string | null): boolean
9613
+ export function str_has_prefix(str: string, prefix: string): boolean
9614
9614
  /**
9615
9615
  * Looks whether the string `str` ends with `suffix`.
9616
9616
  * @param str a nul-terminated string
9617
9617
  * @param suffix the nul-terminated suffix to look for
9618
9618
  * @returns %TRUE if @str end with @suffix, %FALSE otherwise.
9619
9619
  */
9620
- export function str_has_suffix(str: string | null, suffix: string | null): boolean
9620
+ export function str_has_suffix(str: string, suffix: string): boolean
9621
9621
  /**
9622
9622
  * Converts a string to a hash value.
9623
9623
  *
@@ -9643,7 +9643,7 @@ export function str_hash(v: any): number
9643
9643
  * @param str a string
9644
9644
  * @returns %TRUE if @str is ASCII
9645
9645
  */
9646
- export function str_is_ascii(str: string | null): boolean
9646
+ export function str_is_ascii(str: string): boolean
9647
9647
  /**
9648
9648
  * Checks if a search conducted for `search_term` should match
9649
9649
  * `potential_hit`.
@@ -9672,7 +9672,7 @@ export function str_is_ascii(str: string | null): boolean
9672
9672
  * @param accept_alternates %TRUE to accept ASCII alternates
9673
9673
  * @returns %TRUE if @potential_hit is a hit
9674
9674
  */
9675
- export function str_match_string(search_term: string | null, potential_hit: string | null, accept_alternates: boolean): boolean
9675
+ export function str_match_string(search_term: string, potential_hit: string, accept_alternates: boolean): boolean
9676
9676
  /**
9677
9677
  * Transliterate `str` to plain ASCII.
9678
9678
  *
@@ -9696,7 +9696,7 @@ export function str_match_string(search_term: string | null, potential_hit: stri
9696
9696
  * @param from_locale the source locale, if known
9697
9697
  * @returns a string in plain ASCII
9698
9698
  */
9699
- export function str_to_ascii(str: string | null, from_locale: string | null): string | null
9699
+ export function str_to_ascii(str: string, from_locale: string | null): string | null
9700
9700
  /**
9701
9701
  * Tokenises `string` and performs folding on each token.
9702
9702
  *
@@ -9717,7 +9717,7 @@ export function str_to_ascii(str: string | null, from_locale: string | null): st
9717
9717
  * @param translit_locale the language code (like 'de' or 'en_GB') from which `string` originates
9718
9718
  * @returns the folded tokens
9719
9719
  */
9720
- export function str_tokenize_and_fold(string: string | null, translit_locale: string | null): [ /* returnType */ string[], /* ascii_alternates */ string[] ]
9720
+ export function str_tokenize_and_fold(string: string, translit_locale: string | null): [ /* returnType */ string[], /* ascii_alternates */ string[] ]
9721
9721
  /**
9722
9722
  * For each character in `string,` if the character is not in `valid_chars,`
9723
9723
  * replaces the character with `substitutor`.
@@ -9745,7 +9745,7 @@ export function str_tokenize_and_fold(string: string | null, translit_locale: st
9745
9745
  * @param substitutor replacement character for disallowed bytes
9746
9746
  * @returns the modified @string
9747
9747
  */
9748
- export function strcanon(string: string | null, valid_chars: string | null, substitutor: number): string | null
9748
+ export function strcanon(string: string | null, valid_chars: string, substitutor: number): string | null
9749
9749
  /**
9750
9750
  * A case-insensitive string comparison, corresponding to the standard
9751
9751
  * strcasecmp() function on platforms which support it.
@@ -9753,7 +9753,7 @@ export function strcanon(string: string | null, valid_chars: string | null, subs
9753
9753
  * @param s2 a string to compare with `s1`
9754
9754
  * @returns 0 if the strings match, a negative value if @s1 < @s2, or a positive value if @s1 > @s2.
9755
9755
  */
9756
- export function strcasecmp(s1: string | null, s2: string | null): number
9756
+ export function strcasecmp(s1: string, s2: string): number
9757
9757
  /**
9758
9758
  * Removes trailing whitespace from a string.
9759
9759
  *
@@ -9799,7 +9799,7 @@ export function strcmp0(str1: string | null, str2: string | null): number
9799
9799
  * @param source a string to compress
9800
9800
  * @returns a newly-allocated copy of @source with all escaped character compressed
9801
9801
  */
9802
- export function strcompress(source: string | null): string | null
9802
+ export function strcompress(source: string): string | null
9803
9803
  /**
9804
9804
  * Converts any delimiter characters in `string` to `new_delimiter`.
9805
9805
  *
@@ -9868,7 +9868,7 @@ export function strdup(str: string | null): string | null
9868
9868
  * @param errnum the system error number. See the standard C %errno documentation
9869
9869
  * @returns a UTF-8 string describing the error code. If the error code is unknown, it returns a string like "Unknown error: <code>".
9870
9870
  */
9871
- export function strerror(errnum: number): string | null
9871
+ export function strerror(errnum: number): string
9872
9872
  /**
9873
9873
  * Escapes the special characters '\b', '\f', '\n', '\r', '\t', '\v', '\'
9874
9874
  * and '"' in the string `source` by inserting a '\' before
@@ -9882,7 +9882,7 @@ export function strerror(errnum: number): string | null
9882
9882
  * @param exceptions a string of characters not to escape in `source`
9883
9883
  * @returns a newly-allocated copy of @source with certain characters escaped. See above.
9884
9884
  */
9885
- export function strescape(source: string | null, exceptions: string | null): string | null
9885
+ export function strescape(source: string, exceptions: string | null): string | null
9886
9886
  /**
9887
9887
  * Frees a %NULL-terminated array of strings, as well as each
9888
9888
  * string it contains.
@@ -9897,7 +9897,7 @@ export function strfreev(str_array: string | null): void
9897
9897
  * @param msgval another string
9898
9898
  * @returns @msgval, unless @msgval is identical to @msgid and contains a '|' character, in which case a pointer to the substring of msgid after the first '|' character is returned.
9899
9899
  */
9900
- export function strip_context(msgid: string | null, msgval: string | null): string | null
9900
+ export function strip_context(msgid: string, msgval: string): string
9901
9901
  /**
9902
9902
  * Joins a number of strings together to form one long string, with the
9903
9903
  * optional `separator` inserted between each of them. The returned string
@@ -9930,7 +9930,7 @@ export function strjoinv(separator: string | null, str_array: string | null): st
9930
9930
  * @param dest_size length of `dest` buffer in bytes (not length of existing string inside `dest)`
9931
9931
  * @returns size of attempted result, which is MIN (dest_size, strlen (original dest)) + strlen (src), so if retval >= dest_size, truncation occurred.
9932
9932
  */
9933
- export function strlcat(dest: string | null, src: string | null, dest_size: number): number
9933
+ export function strlcat(dest: string | null, src: string, dest_size: number): number
9934
9934
  /**
9935
9935
  * Portability wrapper that calls strlcpy() on systems which have it,
9936
9936
  * and emulates strlcpy() otherwise. Copies `src` to `dest;` `dest` is
@@ -9951,7 +9951,7 @@ export function strlcat(dest: string | null, src: string | null, dest_size: numb
9951
9951
  * @param dest_size length of `dest` in bytes
9952
9952
  * @returns length of @src
9953
9953
  */
9954
- export function strlcpy(dest: string | null, src: string | null, dest_size: number): number
9954
+ export function strlcpy(dest: string | null, src: string, dest_size: number): number
9955
9955
  /**
9956
9956
  * A case-insensitive string comparison, corresponding to the standard
9957
9957
  * strncasecmp() function on platforms which support it. It is similar
@@ -9962,7 +9962,7 @@ export function strlcpy(dest: string | null, src: string | null, dest_size: numb
9962
9962
  * @param n the maximum number of characters to compare
9963
9963
  * @returns 0 if the strings match, a negative value if @s1 < @s2, or a positive value if @s1 > @s2.
9964
9964
  */
9965
- export function strncasecmp(s1: string | null, s2: string | null, n: number): number
9965
+ export function strncasecmp(s1: string, s2: string, n: number): number
9966
9966
  /**
9967
9967
  * Duplicates the first `n` bytes of a string, returning a newly-allocated
9968
9968
  * buffer `n` + 1 bytes long which will always be nul-terminated. If `str`
@@ -9976,7 +9976,7 @@ export function strncasecmp(s1: string | null, s2: string | null, n: number): nu
9976
9976
  * @param n the maximum number of bytes to copy from `str`
9977
9977
  * @returns a newly-allocated buffer containing the first @n bytes of @str, nul-terminated
9978
9978
  */
9979
- export function strndup(str: string | null, n: number): string | null
9979
+ export function strndup(str: string, n: number): string | null
9980
9980
  /**
9981
9981
  * Creates a new string `length` bytes long filled with `fill_char`.
9982
9982
  * The returned string should be freed when no longer needed.
@@ -10003,7 +10003,7 @@ export function strreverse(string: string | null): string | null
10003
10003
  * @param needle the nul-terminated string to search for
10004
10004
  * @returns a pointer to the found occurrence, or %NULL if not found.
10005
10005
  */
10006
- export function strrstr(haystack: string | null, needle: string | null): string | null
10006
+ export function strrstr(haystack: string, needle: string): string | null
10007
10007
  /**
10008
10008
  * Searches the string `haystack` for the last occurrence
10009
10009
  * of the string `needle,` limiting the length of the search
@@ -10013,7 +10013,7 @@ export function strrstr(haystack: string | null, needle: string | null): string
10013
10013
  * @param needle the nul-terminated string to search for
10014
10014
  * @returns a pointer to the found occurrence, or %NULL if not found.
10015
10015
  */
10016
- export function strrstr_len(haystack: string | null, haystack_len: number, needle: string | null): string | null
10016
+ export function strrstr_len(haystack: string, haystack_len: number, needle: string): string | null
10017
10017
  /**
10018
10018
  * Returns a string describing the given signal, e.g. "Segmentation fault".
10019
10019
  * You should use this function in preference to strsignal(), because it
@@ -10022,7 +10022,7 @@ export function strrstr_len(haystack: string | null, haystack_len: number, needl
10022
10022
  * @param signum the signal number. See the `signal` documentation
10023
10023
  * @returns a UTF-8 string describing the signal. If the signal is unknown, it returns "unknown signal (<signum>)".
10024
10024
  */
10025
- export function strsignal(signum: number): string | null
10025
+ export function strsignal(signum: number): string
10026
10026
  /**
10027
10027
  * Splits a string into a maximum of `max_tokens` pieces, using the given
10028
10028
  * `delimiter`. If `max_tokens` is reached, the remainder of `string` is
@@ -10043,7 +10043,7 @@ export function strsignal(signum: number): string | null
10043
10043
  * @param max_tokens the maximum number of pieces to split `string` into. If this is less than 1, the string is split completely.
10044
10044
  * @returns a newly-allocated %NULL-terminated array of strings. Use g_strfreev() to free it.
10045
10045
  */
10046
- export function strsplit(string: string | null, delimiter: string | null, max_tokens: number): string[]
10046
+ export function strsplit(string: string, delimiter: string, max_tokens: number): string[]
10047
10047
  /**
10048
10048
  * Splits `string` into a number of tokens not containing any of the characters
10049
10049
  * in `delimiter`. A token is the (possibly empty) longest string that does not
@@ -10071,7 +10071,7 @@ export function strsplit(string: string | null, delimiter: string | null, max_to
10071
10071
  * @param max_tokens The maximum number of tokens to split `string` into. If this is less than 1, the string is split completely
10072
10072
  * @returns a newly-allocated %NULL-terminated array of strings. Use g_strfreev() to free it.
10073
10073
  */
10074
- export function strsplit_set(string: string | null, delimiters: string | null, max_tokens: number): string[]
10074
+ export function strsplit_set(string: string, delimiters: string, max_tokens: number): string[]
10075
10075
  /**
10076
10076
  * Searches the string `haystack` for the first occurrence
10077
10077
  * of the string `needle,` limiting the length of the search
@@ -10081,7 +10081,7 @@ export function strsplit_set(string: string | null, delimiters: string | null, m
10081
10081
  * @param needle the string to search for
10082
10082
  * @returns a pointer to the found occurrence, or %NULL if not found.
10083
10083
  */
10084
- export function strstr_len(haystack: string | null, haystack_len: number, needle: string | null): string | null
10084
+ export function strstr_len(haystack: string, haystack_len: number, needle: string): string | null
10085
10085
  /**
10086
10086
  * Converts a string to a #gdouble value.
10087
10087
  * It calls the standard strtod() function to handle the conversion, but
@@ -10097,7 +10097,7 @@ export function strstr_len(haystack: string | null, haystack_len: number, needle
10097
10097
  * @param nptr the string to convert to a numeric value.
10098
10098
  * @returns the #gdouble value.
10099
10099
  */
10100
- export function strtod(nptr: string | null): [ /* returnType */ number, /* endptr */ string | null ]
10100
+ export function strtod(nptr: string): [ /* returnType */ number, /* endptr */ string ]
10101
10101
  /**
10102
10102
  * Converts a string to upper case.
10103
10103
  * @param string the string to convert
@@ -10110,7 +10110,7 @@ export function strup(string: string | null): string | null
10110
10110
  * @param str a string
10111
10111
  * @returns %TRUE if @str is an element of @strv, according to g_str_equal().
10112
10112
  */
10113
- export function strv_contains(strv: string | null, str: string | null): boolean
10113
+ export function strv_contains(strv: string, str: string): boolean
10114
10114
  /**
10115
10115
  * Checks if `strv1` and `strv2` contain exactly the same elements in exactly the
10116
10116
  * same order. Elements are compared using g_str_equal(). To match independently
@@ -10122,7 +10122,7 @@ export function strv_contains(strv: string | null, str: string | null): boolean
10122
10122
  * @param strv2 another %NULL-terminated array of strings
10123
10123
  * @returns %TRUE if @strv1 and @strv2 are equal
10124
10124
  */
10125
- export function strv_equal(strv1: string | null, strv2: string | null): boolean
10125
+ export function strv_equal(strv1: string, strv2: string): boolean
10126
10126
  export function strv_get_type(): GObject.GType
10127
10127
  /**
10128
10128
  * Returns the length of the given %NULL-terminated
@@ -10149,7 +10149,7 @@ export function strv_length(str_array: string | null): number
10149
10149
  * @param test_data Test data argument for the test function.
10150
10150
  * @param test_func The test function to invoke for this test.
10151
10151
  */
10152
- export function test_add_data_func(testpath: string | null, test_data: any | null, test_func: TestDataFunc): void
10152
+ export function test_add_data_func(testpath: string, test_data: any | null, test_func: TestDataFunc): void
10153
10153
  /**
10154
10154
  * Create a new test case, as with g_test_add_data_func(), but freeing
10155
10155
  * `test_data` after the test run is complete.
@@ -10157,7 +10157,7 @@ export function test_add_data_func(testpath: string | null, test_data: any | nul
10157
10157
  * @param test_data Test data argument for the test function.
10158
10158
  * @param test_func The test function to invoke for this test.
10159
10159
  */
10160
- export function test_add_data_func_full(testpath: string | null, test_data: any | null, test_func: TestDataFunc): void
10160
+ export function test_add_data_func_full(testpath: string, test_data: any | null, test_func: TestDataFunc): void
10161
10161
  /**
10162
10162
  * Create a new test case, similar to g_test_create_case(). However
10163
10163
  * the test is assumed to use no fixture, and test suites are automatically
@@ -10174,8 +10174,8 @@ export function test_add_data_func_full(testpath: string | null, test_data: any
10174
10174
  * @param testpath /-separated test case path name for the test.
10175
10175
  * @param test_func The test function to invoke for this test.
10176
10176
  */
10177
- export function test_add_func(testpath: string | null, test_func: TestFunc): void
10178
- export function test_assert_expected_messages_internal(domain: string | null, file: string | null, line: number, func: string | null): void
10177
+ export function test_add_func(testpath: string, test_func: TestFunc): void
10178
+ export function test_assert_expected_messages_internal(domain: string, file: string, line: number, func: string): void
10179
10179
  /**
10180
10180
  * This function adds a message to test reports that
10181
10181
  * associates a bug URI with a test case.
@@ -10189,7 +10189,7 @@ export function test_assert_expected_messages_internal(domain: string | null, fi
10189
10189
  * is already a valid URI.
10190
10190
  * @param bug_uri_snippet Bug specific bug tracker URI or URI portion.
10191
10191
  */
10192
- export function test_bug(bug_uri_snippet: string | null): void
10192
+ export function test_bug(bug_uri_snippet: string): void
10193
10193
  /**
10194
10194
  * Specify the base URI for bug reports.
10195
10195
  *
@@ -10207,7 +10207,7 @@ export function test_bug(bug_uri_snippet: string | null): void
10207
10207
  * from the value provided by g_test_bug().
10208
10208
  * @param uri_pattern the base pattern for bug URIs
10209
10209
  */
10210
- export function test_bug_base(uri_pattern: string | null): void
10210
+ export function test_bug_base(uri_pattern: string): void
10211
10211
  /**
10212
10212
  * Attempt to disable system crash reporting infrastructure.
10213
10213
  *
@@ -10257,7 +10257,7 @@ export function test_disable_crash_reporting(): void
10257
10257
  * @param log_level the log level of the message
10258
10258
  * @param pattern a glob-style [pattern][glib-Glob-style-pattern-matching]
10259
10259
  */
10260
- export function test_expect_message(log_domain: string | null, log_level: LogLevelFlags, pattern: string | null): void
10260
+ export function test_expect_message(log_domain: string | null, log_level: LogLevelFlags, pattern: string): void
10261
10261
  /**
10262
10262
  * Indicates that a test failed. This function can be called
10263
10263
  * multiple times from the same test. You can use this function
@@ -10315,7 +10315,7 @@ export function test_get_dir(file_type: TestFileType): string
10315
10315
  * Note that this is a test path, not a file system path.
10316
10316
  * @returns the test path for the test currently being run
10317
10317
  */
10318
- export function test_get_path(): string | null
10318
+ export function test_get_path(): string
10319
10319
  /**
10320
10320
  * Indicates that a test failed because of some incomplete
10321
10321
  * functionality. This function can be called multiple times
@@ -10330,7 +10330,7 @@ export function test_get_path(): string | null
10330
10330
  * @param msg explanation
10331
10331
  */
10332
10332
  export function test_incomplete(msg: string | null): void
10333
- export function test_log_type_name(log_type: TestLogType): string | null
10333
+ export function test_log_type_name(log_type: TestLogType): string
10334
10334
  /**
10335
10335
  * This function enqueus a callback `destroy_func` to be executed
10336
10336
  * during the next test case teardown phase. This is most useful
@@ -10488,7 +10488,7 @@ export function test_subprocess(): boolean
10488
10488
  *
10489
10489
  * @param summary One or two sentences summarising what the test checks, and how it checks it.
10490
10490
  */
10491
- export function test_summary(summary: string | null): void
10491
+ export function test_summary(summary: string): void
10492
10492
  /**
10493
10493
  * Get the number of seconds since the last start of the timer with
10494
10494
  * g_test_timer_start().
@@ -10505,7 +10505,7 @@ export function test_timer_last(): number
10505
10505
  * to be done. Call this function again to restart the timer.
10506
10506
  */
10507
10507
  export function test_timer_start(): void
10508
- export function test_trap_assertions(domain: string | null, file: string | null, line: number, func: string | null, assertion_flags: number, pattern: string | null): void
10508
+ export function test_trap_assertions(domain: string, file: string, line: number, func: string, assertion_flags: number, pattern: string): void
10509
10509
  /**
10510
10510
  * Fork the current test program to execute a test case that might
10511
10511
  * not return or that might abort.
@@ -10735,7 +10735,7 @@ export function thread_yield(): void
10735
10735
  * @param iso_date an ISO 8601 encoded date string
10736
10736
  * @returns %TRUE if the conversion was successful.
10737
10737
  */
10738
- export function time_val_from_iso8601(iso_date: string | null): [ /* returnType */ boolean, /* time_ */ TimeVal ]
10738
+ export function time_val_from_iso8601(iso_date: string): [ /* returnType */ boolean, /* time_ */ TimeVal ]
10739
10739
  /**
10740
10740
  * Sets a function to be called at regular intervals, with the given
10741
10741
  * priority. The function is called repeatedly until it returns
@@ -11224,7 +11224,7 @@ export function unichar_iszerowidth(c: string): boolean
11224
11224
  * @param c a Unicode character code
11225
11225
  * @returns number of bytes written
11226
11226
  */
11227
- export function unichar_to_utf8(c: string): [ /* returnType */ number, /* outbuf */ string | null ]
11227
+ export function unichar_to_utf8(c: string): [ /* returnType */ number, /* outbuf */ string ]
11228
11228
  /**
11229
11229
  * Converts a character to lower case.
11230
11230
  * @param c a Unicode character.
@@ -11350,7 +11350,7 @@ export function unix_fd_source_new(fd: number, condition: IOCondition): Source
11350
11350
  * @param user_name the username to get the passwd file entry for
11351
11351
  * @returns passwd entry, or %NULL on error; free the returned value with g_free()
11352
11352
  */
11353
- export function unix_get_passwd_entry(user_name: string | null): any | null
11353
+ export function unix_get_passwd_entry(user_name: string): any | null
11354
11354
  /**
11355
11355
  * Similar to the UNIX pipe() call, but on modern systems like Linux
11356
11356
  * uses the pipe2() system call, which atomically creates a pipe with
@@ -11469,7 +11469,7 @@ export function unsetenv(variable: string): void
11469
11469
  * @param fragment the fragment, or %NULL
11470
11470
  * @returns a new #GUri
11471
11471
  */
11472
- export function uri_build(flags: UriFlags, scheme: string | null, userinfo: string | null, host: string | null, port: number, path: string | null, query: string | null, fragment: string | null): Uri
11472
+ export function uri_build(flags: UriFlags, scheme: string, userinfo: string | null, host: string | null, port: number, path: string, query: string | null, fragment: string | null): Uri
11473
11473
  /**
11474
11474
  * Creates a new #GUri from the given components according to `flags`
11475
11475
  * (%G_URI_FLAGS_HAS_PASSWORD is added unconditionally). The `flags` must be
@@ -11491,7 +11491,7 @@ export function uri_build(flags: UriFlags, scheme: string | null, userinfo: stri
11491
11491
  * @param fragment the fragment, or %NULL
11492
11492
  * @returns a new #GUri
11493
11493
  */
11494
- export function uri_build_with_user(flags: UriFlags, scheme: string | null, user: string | null, password: string | null, auth_params: string | null, host: string | null, port: number, path: string | null, query: string | null, fragment: string | null): Uri
11494
+ export function uri_build_with_user(flags: UriFlags, scheme: string, user: string | null, password: string | null, auth_params: string | null, host: string | null, port: number, path: string, query: string | null, fragment: string | null): Uri
11495
11495
  export function uri_error_quark(): Quark
11496
11496
  /**
11497
11497
  * Escapes arbitrary data for use in a URI.
@@ -11524,7 +11524,7 @@ export function uri_escape_bytes(unescaped: Uint8Array, reserved_chars_allowed:
11524
11524
  * @param allow_utf8 %TRUE if the result can include UTF-8 characters.
11525
11525
  * @returns an escaped version of @unescaped. The returned string should be freed when no longer needed.
11526
11526
  */
11527
- export function uri_escape_string(unescaped: string | null, reserved_chars_allowed: string | null, allow_utf8: boolean): string | null
11527
+ export function uri_escape_string(unescaped: string, reserved_chars_allowed: string | null, allow_utf8: boolean): string | null
11528
11528
  /**
11529
11529
  * Parses `uri_string` according to `flags,` to determine whether it is a valid
11530
11530
  * [absolute URI][relative-absolute-uris], i.e. it does not need to be resolved
@@ -11538,7 +11538,7 @@ export function uri_escape_string(unescaped: string | null, reserved_chars_allow
11538
11538
  * @param flags flags for parsing `uri_string`
11539
11539
  * @returns %TRUE if @uri_string is a valid absolute URI, %FALSE on error.
11540
11540
  */
11541
- export function uri_is_valid(uri_string: string | null, flags: UriFlags): boolean
11541
+ export function uri_is_valid(uri_string: string, flags: UriFlags): boolean
11542
11542
  /**
11543
11543
  * Joins the given components together according to `flags` to create
11544
11544
  * an absolute URI string. `path` may not be %NULL (though it may be the empty
@@ -11564,7 +11564,7 @@ export function uri_is_valid(uri_string: string | null, flags: UriFlags): boolea
11564
11564
  * @param fragment the fragment, or %NULL
11565
11565
  * @returns an absolute URI string
11566
11566
  */
11567
- export function uri_join(flags: UriFlags, scheme: string | null, userinfo: string | null, host: string | null, port: number, path: string | null, query: string | null, fragment: string | null): string | null
11567
+ export function uri_join(flags: UriFlags, scheme: string | null, userinfo: string | null, host: string | null, port: number, path: string, query: string | null, fragment: string | null): string | null
11568
11568
  /**
11569
11569
  * Joins the given components together according to `flags` to create
11570
11570
  * an absolute URI string. `path` may not be %NULL (though it may be the empty
@@ -11587,7 +11587,7 @@ export function uri_join(flags: UriFlags, scheme: string | null, userinfo: strin
11587
11587
  * @param fragment the fragment, or %NULL
11588
11588
  * @returns an absolute URI string
11589
11589
  */
11590
- export function uri_join_with_user(flags: UriFlags, scheme: string | null, user: string | null, password: string | null, auth_params: string | null, host: string | null, port: number, path: string | null, query: string | null, fragment: string | null): string | null
11590
+ export function uri_join_with_user(flags: UriFlags, scheme: string | null, user: string | null, password: string | null, auth_params: string | null, host: string | null, port: number, path: string, query: string | null, fragment: string | null): string | null
11591
11591
  /**
11592
11592
  * Splits an URI list conforming to the text/uri-list
11593
11593
  * mime type defined in RFC 2483 into individual URIs,
@@ -11595,7 +11595,7 @@ export function uri_join_with_user(flags: UriFlags, scheme: string | null, user:
11595
11595
  * @param uri_list an URI list
11596
11596
  * @returns a newly allocated %NULL-terminated list of strings holding the individual URIs. The array should be freed with g_strfreev().
11597
11597
  */
11598
- export function uri_list_extract_uris(uri_list: string | null): string[]
11598
+ export function uri_list_extract_uris(uri_list: string): string[]
11599
11599
  /**
11600
11600
  * Parses `uri_string` according to `flags`. If the result is not a
11601
11601
  * valid [absolute URI][relative-absolute-uris], it will be discarded, and an
@@ -11604,7 +11604,7 @@ export function uri_list_extract_uris(uri_list: string | null): string[]
11604
11604
  * @param flags flags describing how to parse `uri_string`
11605
11605
  * @returns a new #GUri, or NULL on error.
11606
11606
  */
11607
- export function uri_parse(uri_string: string | null, flags: UriFlags): Uri
11607
+ export function uri_parse(uri_string: string, flags: UriFlags): Uri
11608
11608
  /**
11609
11609
  * Many URI schemes include one or more attribute/value pairs as part of the URI
11610
11610
  * value. This method can be used to parse them into a hash table. When an
@@ -11636,7 +11636,7 @@ export function uri_parse(uri_string: string | null, flags: UriFlags): Uri
11636
11636
  * @param flags flags to modify the way the parameters are handled.
11637
11637
  * @returns A hash table of attribute/value pairs, with both names and values fully-decoded; or %NULL on error.
11638
11638
  */
11639
- export function uri_parse_params(params: string | null, length: number, separators: string | null, flags: UriParamsFlags): HashTable
11639
+ export function uri_parse_params(params: string, length: number, separators: string, flags: UriParamsFlags): HashTable
11640
11640
  /**
11641
11641
  * Gets the scheme portion of a URI string.
11642
11642
  * [RFC 3986](https://tools.ietf.org/html/rfc3986#section-3) decodes the scheme
@@ -11650,7 +11650,7 @@ export function uri_parse_params(params: string | null, length: number, separato
11650
11650
  * @param uri a valid URI.
11651
11651
  * @returns The ‘scheme’ component of the URI, or %NULL on error. The returned string should be freed when no longer needed.
11652
11652
  */
11653
- export function uri_parse_scheme(uri: string | null): string | null
11653
+ export function uri_parse_scheme(uri: string): string | null
11654
11654
  /**
11655
11655
  * Gets the scheme portion of a URI string.
11656
11656
  * [RFC 3986](https://tools.ietf.org/html/rfc3986#section-3) decodes the scheme
@@ -11667,7 +11667,7 @@ export function uri_parse_scheme(uri: string | null): string | null
11667
11667
  * @param uri a valid URI.
11668
11668
  * @returns The ‘scheme’ component of the URI, or %NULL on error. The returned string is normalized to all-lowercase, and interned via g_intern_string(), so it does not need to be freed.
11669
11669
  */
11670
- export function uri_peek_scheme(uri: string | null): string | null
11670
+ export function uri_peek_scheme(uri: string): string | null
11671
11671
  /**
11672
11672
  * Parses `uri_ref` according to `flags` and, if it is a
11673
11673
  * [relative URI][relative-absolute-uris], resolves it relative to
@@ -11681,7 +11681,7 @@ export function uri_peek_scheme(uri: string | null): string | null
11681
11681
  * @param flags flags describing how to parse `uri_ref`
11682
11682
  * @returns the resolved URI string, or NULL on error.
11683
11683
  */
11684
- export function uri_resolve_relative(base_uri_string: string | null, uri_ref: string | null, flags: UriFlags): string | null
11684
+ export function uri_resolve_relative(base_uri_string: string | null, uri_ref: string, flags: UriFlags): string | null
11685
11685
  /**
11686
11686
  * Parses `uri_ref` (which can be an
11687
11687
  * [absolute or relative URI][relative-absolute-uris]) according to `flags,` and
@@ -11703,7 +11703,7 @@ export function uri_resolve_relative(base_uri_string: string | null, uri_ref: st
11703
11703
  * @param flags flags for parsing `uri_ref`
11704
11704
  * @returns %TRUE if @uri_ref parsed successfully, %FALSE on error.
11705
11705
  */
11706
- export function uri_split(uri_ref: string | null, flags: UriFlags): [ /* returnType */ boolean, /* scheme */ string | null, /* userinfo */ string | null, /* host */ string | null, /* port */ number, /* path */ string | null, /* query */ string | null, /* fragment */ string | null ]
11706
+ export function uri_split(uri_ref: string, flags: UriFlags): [ /* returnType */ boolean, /* scheme */ string | null, /* userinfo */ string | null, /* host */ string | null, /* port */ number, /* path */ string, /* query */ string | null, /* fragment */ string | null ]
11707
11707
  /**
11708
11708
  * Parses `uri_string` (which must be an [absolute URI][relative-absolute-uris])
11709
11709
  * according to `flags,` and returns the pieces relevant to connecting to a host.
@@ -11715,7 +11715,7 @@ export function uri_split(uri_ref: string | null, flags: UriFlags): [ /* returnT
11715
11715
  * @param flags flags for parsing `uri_string`
11716
11716
  * @returns %TRUE if @uri_string parsed successfully, %FALSE on error.
11717
11717
  */
11718
- export function uri_split_network(uri_string: string | null, flags: UriFlags): [ /* returnType */ boolean, /* scheme */ string | null, /* host */ string | null, /* port */ number ]
11718
+ export function uri_split_network(uri_string: string, flags: UriFlags): [ /* returnType */ boolean, /* scheme */ string | null, /* host */ string | null, /* port */ number ]
11719
11719
  /**
11720
11720
  * Parses `uri_ref` (which can be an
11721
11721
  * [absolute or relative URI][relative-absolute-uris]) according to `flags,` and
@@ -11732,7 +11732,7 @@ export function uri_split_network(uri_string: string | null, flags: UriFlags): [
11732
11732
  * @param flags flags for parsing `uri_ref`
11733
11733
  * @returns %TRUE if @uri_ref parsed successfully, %FALSE on error.
11734
11734
  */
11735
- export function uri_split_with_user(uri_ref: string | null, flags: UriFlags): [ /* returnType */ boolean, /* scheme */ string | null, /* user */ string | null, /* password */ string | null, /* auth_params */ string | null, /* host */ string | null, /* port */ number, /* path */ string | null, /* query */ string | null, /* fragment */ string | null ]
11735
+ export function uri_split_with_user(uri_ref: string, flags: UriFlags): [ /* returnType */ boolean, /* scheme */ string | null, /* user */ string | null, /* password */ string | null, /* auth_params */ string | null, /* host */ string | null, /* port */ number, /* path */ string, /* query */ string | null, /* fragment */ string | null ]
11736
11736
  /**
11737
11737
  * Unescapes a segment of an escaped string as binary data.
11738
11738
  *
@@ -11749,7 +11749,7 @@ export function uri_split_with_user(uri_ref: string | null, flags: UriFlags): [
11749
11749
  * @param illegal_characters a string of illegal characters not to be allowed, or %NULL.
11750
11750
  * @returns an unescaped version of @escaped_string or %NULL on error (if decoding failed, using %G_URI_ERROR_FAILED error code). The returned #GBytes should be unreffed when no longer needed.
11751
11751
  */
11752
- export function uri_unescape_bytes(escaped_string: string | null, length: number, illegal_characters: string | null): Bytes
11752
+ export function uri_unescape_bytes(escaped_string: string, length: number, illegal_characters: string | null): Bytes
11753
11753
  /**
11754
11754
  * Unescapes a segment of an escaped string.
11755
11755
  *
@@ -11779,7 +11779,7 @@ export function uri_unescape_segment(escaped_string: string | null, escaped_stri
11779
11779
  * @param illegal_characters a string of illegal characters not to be allowed, or %NULL.
11780
11780
  * @returns an unescaped version of @escaped_string. The returned string should be freed when no longer needed.
11781
11781
  */
11782
- export function uri_unescape_string(escaped_string: string | null, illegal_characters: string | null): string | null
11782
+ export function uri_unescape_string(escaped_string: string, illegal_characters: string | null): string | null
11783
11783
  /**
11784
11784
  * Pauses the current thread for the given number of microseconds.
11785
11785
  *
@@ -11831,7 +11831,7 @@ export function utf16_to_utf8(str: number[]): [ /* returnType */ string | null,
11831
11831
  * @param len length of `str,` in bytes, or -1 if `str` is nul-terminated.
11832
11832
  * @returns a newly allocated string, that is a case independent form of @str.
11833
11833
  */
11834
- export function utf8_casefold(str: string | null, len: number): string | null
11834
+ export function utf8_casefold(str: string, len: number): string | null
11835
11835
  /**
11836
11836
  * Compares two strings for ordering using the linguistically
11837
11837
  * correct rules for the [current locale][setlocale].
@@ -11847,7 +11847,7 @@ export function utf8_casefold(str: string | null, len: number): string | null
11847
11847
  * @param str2 a UTF-8 encoded string
11848
11848
  * @returns < 0 if @str1 compares before @str2, 0 if they compare equal, > 0 if @str1 compares after @str2.
11849
11849
  */
11850
- export function utf8_collate(str1: string | null, str2: string | null): number
11850
+ export function utf8_collate(str1: string, str2: string): number
11851
11851
  /**
11852
11852
  * Converts a string into a collation key that can be compared
11853
11853
  * with other collation keys produced by the same function using
@@ -11862,7 +11862,7 @@ export function utf8_collate(str1: string | null, str2: string | null): number
11862
11862
  * @param len length of `str,` in bytes, or -1 if `str` is nul-terminated.
11863
11863
  * @returns a newly allocated string. This string should be freed with g_free() when you are done with it.
11864
11864
  */
11865
- export function utf8_collate_key(str: string | null, len: number): string | null
11865
+ export function utf8_collate_key(str: string, len: number): string | null
11866
11866
  /**
11867
11867
  * Converts a string into a collation key that can be compared
11868
11868
  * with other collation keys produced by the same function using strcmp().
@@ -11879,7 +11879,7 @@ export function utf8_collate_key(str: string | null, len: number): string | null
11879
11879
  * @param len length of `str,` in bytes, or -1 if `str` is nul-terminated.
11880
11880
  * @returns a newly allocated string. This string should be freed with g_free() when you are done with it.
11881
11881
  */
11882
- export function utf8_collate_key_for_filename(str: string | null, len: number): string | null
11882
+ export function utf8_collate_key_for_filename(str: string, len: number): string | null
11883
11883
  /**
11884
11884
  * Finds the start of the next UTF-8 character in the string after `p`.
11885
11885
  *
@@ -11895,7 +11895,7 @@ export function utf8_collate_key_for_filename(str: string | null, len: number):
11895
11895
  * @param end a pointer to the byte following the end of the string, or %NULL to indicate that the string is nul-terminated
11896
11896
  * @returns a pointer to the found character or %NULL if @end is set and is reached
11897
11897
  */
11898
- export function utf8_find_next_char(p: string | null, end: string | null): string | null
11898
+ export function utf8_find_next_char(p: string, end: string | null): string | null
11899
11899
  /**
11900
11900
  * Given a position `p` with a UTF-8 encoded string `str,` find the start
11901
11901
  * of the previous UTF-8 character starting before `p`. Returns %NULL if no
@@ -11908,7 +11908,7 @@ export function utf8_find_next_char(p: string | null, end: string | null): strin
11908
11908
  * @param p pointer to some position within `str`
11909
11909
  * @returns a pointer to the found character or %NULL.
11910
11910
  */
11911
- export function utf8_find_prev_char(str: string | null, p: string | null): string | null
11911
+ export function utf8_find_prev_char(str: string, p: string): string | null
11912
11912
  /**
11913
11913
  * Converts a sequence of bytes encoded as UTF-8 to a Unicode character.
11914
11914
  *
@@ -11919,7 +11919,7 @@ export function utf8_find_prev_char(str: string | null, p: string | null): strin
11919
11919
  * @param p a pointer to Unicode character encoded as UTF-8
11920
11920
  * @returns the resulting character
11921
11921
  */
11922
- export function utf8_get_char(p: string | null): string
11922
+ export function utf8_get_char(p: string): string
11923
11923
  /**
11924
11924
  * Convert a sequence of bytes encoded as UTF-8 to a Unicode character.
11925
11925
  * This function checks for incomplete characters, for invalid characters
@@ -11933,7 +11933,7 @@ export function utf8_get_char(p: string | null): string
11933
11933
  * @param max_len the maximum number of bytes to read, or -1 if `p` is nul-terminated
11934
11934
  * @returns the resulting character. If @p points to a partial sequence at the end of a string that could begin a valid character (or if @max_len is zero), returns (gunichar)-2; otherwise, if @p does not point to a valid UTF-8 encoded Unicode character, returns (gunichar)-1.
11935
11935
  */
11936
- export function utf8_get_char_validated(p: string | null, max_len: number): string
11936
+ export function utf8_get_char_validated(p: string, max_len: number): string
11937
11937
  /**
11938
11938
  * If the provided string is valid UTF-8, return a copy of it. If not,
11939
11939
  * return a copy in which bytes that could not be interpreted as valid Unicode
@@ -11948,7 +11948,7 @@ export function utf8_get_char_validated(p: string | null, max_len: number): stri
11948
11948
  * @param len the maximum length of `str` to use, in bytes. If `len` < 0, then the string is nul-terminated.
11949
11949
  * @returns a valid UTF-8 string whose content resembles @str
11950
11950
  */
11951
- export function utf8_make_valid(str: string | null, len: number): string | null
11951
+ export function utf8_make_valid(str: string, len: number): string | null
11952
11952
  /**
11953
11953
  * Converts a string into canonical form, standardizing
11954
11954
  * such issues as whether a character with an accent
@@ -11980,7 +11980,7 @@ export function utf8_make_valid(str: string | null, len: number): string | null
11980
11980
  * @param mode the type of normalization to perform.
11981
11981
  * @returns a newly allocated string, that is the normalized form of @str, or %NULL if @str is not valid UTF-8.
11982
11982
  */
11983
- export function utf8_normalize(str: string | null, len: number, mode: NormalizeMode): string | null
11983
+ export function utf8_normalize(str: string, len: number, mode: NormalizeMode): string | null
11984
11984
  /**
11985
11985
  * Converts from an integer character offset to a pointer to a position
11986
11986
  * within the string.
@@ -11999,7 +11999,7 @@ export function utf8_normalize(str: string | null, len: number, mode: NormalizeM
11999
11999
  * @param offset a character offset within `str`
12000
12000
  * @returns the resulting pointer
12001
12001
  */
12002
- export function utf8_offset_to_pointer(str: string | null, offset: number): string | null
12002
+ export function utf8_offset_to_pointer(str: string, offset: number): string | null
12003
12003
  /**
12004
12004
  * Converts from a pointer to position within a string to an integer
12005
12005
  * character offset.
@@ -12010,7 +12010,7 @@ export function utf8_offset_to_pointer(str: string | null, offset: number): stri
12010
12010
  * @param pos a pointer to a position within `str`
12011
12011
  * @returns the resulting character offset
12012
12012
  */
12013
- export function utf8_pointer_to_offset(str: string | null, pos: string | null): number
12013
+ export function utf8_pointer_to_offset(str: string, pos: string): number
12014
12014
  /**
12015
12015
  * Finds the previous UTF-8 character in the string before `p`.
12016
12016
  *
@@ -12021,7 +12021,7 @@ export function utf8_pointer_to_offset(str: string | null, pos: string | null):
12021
12021
  * @param p a pointer to a position within a UTF-8 encoded string
12022
12022
  * @returns a pointer to the found character
12023
12023
  */
12024
- export function utf8_prev_char(p: string | null): string | null
12024
+ export function utf8_prev_char(p: string): string | null
12025
12025
  /**
12026
12026
  * Finds the leftmost occurrence of the given Unicode character
12027
12027
  * in a UTF-8 encoded string, while limiting the search to `len` bytes.
@@ -12031,7 +12031,7 @@ export function utf8_prev_char(p: string | null): string | null
12031
12031
  * @param c a Unicode character
12032
12032
  * @returns %NULL if the string does not contain the character, otherwise, a pointer to the start of the leftmost occurrence of the character in the string.
12033
12033
  */
12034
- export function utf8_strchr(p: string | null, len: number, c: string): string | null
12034
+ export function utf8_strchr(p: string, len: number, c: string): string | null
12035
12035
  /**
12036
12036
  * Converts all Unicode characters in the string that have a case
12037
12037
  * to lowercase. The exact manner that this is done depends
@@ -12041,7 +12041,7 @@ export function utf8_strchr(p: string | null, len: number, c: string): string |
12041
12041
  * @param len length of `str,` in bytes, or -1 if `str` is nul-terminated.
12042
12042
  * @returns a newly allocated string, with all characters converted to lowercase.
12043
12043
  */
12044
- export function utf8_strdown(str: string | null, len: number): string | null
12044
+ export function utf8_strdown(str: string, len: number): string | null
12045
12045
  /**
12046
12046
  * Computes the length of the string in characters, not including
12047
12047
  * the terminating nul character. If the `max'`th byte falls in the
@@ -12050,7 +12050,7 @@ export function utf8_strdown(str: string | null, len: number): string | null
12050
12050
  * @param max the maximum number of bytes to examine. If `max` is less than 0, then the string is assumed to be nul-terminated. If `max` is 0, `p` will not be examined and may be %NULL. If `max` is greater than 0, up to `max` bytes are examined
12051
12051
  * @returns the length of the string in characters
12052
12052
  */
12053
- export function utf8_strlen(p: string | null, max: number): number
12053
+ export function utf8_strlen(p: string, max: number): number
12054
12054
  /**
12055
12055
  * Like the standard C strncpy() function, but copies a given number
12056
12056
  * of characters instead of a given number of bytes. The `src` string
@@ -12064,7 +12064,7 @@ export function utf8_strlen(p: string | null, max: number): number
12064
12064
  * @param n character count
12065
12065
  * @returns @dest
12066
12066
  */
12067
- export function utf8_strncpy(dest: string | null, src: string | null, n: number): string | null
12067
+ export function utf8_strncpy(dest: string | null, src: string, n: number): string | null
12068
12068
  /**
12069
12069
  * Find the rightmost occurrence of the given Unicode character
12070
12070
  * in a UTF-8 encoded string, while limiting the search to `len` bytes.
@@ -12074,7 +12074,7 @@ export function utf8_strncpy(dest: string | null, src: string | null, n: number)
12074
12074
  * @param c a Unicode character
12075
12075
  * @returns %NULL if the string does not contain the character, otherwise, a pointer to the start of the rightmost occurrence of the character in the string.
12076
12076
  */
12077
- export function utf8_strrchr(p: string | null, len: number, c: string): string | null
12077
+ export function utf8_strrchr(p: string, len: number, c: string): string | null
12078
12078
  /**
12079
12079
  * Reverses a UTF-8 string. `str` must be valid UTF-8 encoded text.
12080
12080
  * (Use g_utf8_validate() on all text before trying to use UTF-8
@@ -12093,7 +12093,7 @@ export function utf8_strrchr(p: string | null, len: number, c: string): string |
12093
12093
  * @param len the maximum length of `str` to use, in bytes. If `len` < 0, then the string is nul-terminated.
12094
12094
  * @returns a newly-allocated string which is the reverse of @str
12095
12095
  */
12096
- export function utf8_strreverse(str: string | null, len: number): string | null
12096
+ export function utf8_strreverse(str: string, len: number): string | null
12097
12097
  /**
12098
12098
  * Converts all Unicode characters in the string that have a case
12099
12099
  * to uppercase. The exact manner that this is done depends
@@ -12104,7 +12104,7 @@ export function utf8_strreverse(str: string | null, len: number): string | null
12104
12104
  * @param len length of `str,` in bytes, or -1 if `str` is nul-terminated.
12105
12105
  * @returns a newly allocated string, with all characters converted to uppercase.
12106
12106
  */
12107
- export function utf8_strup(str: string | null, len: number): string | null
12107
+ export function utf8_strup(str: string, len: number): string | null
12108
12108
  /**
12109
12109
  * Copies a substring out of a UTF-8 encoded string.
12110
12110
  * The substring will contain `end_pos` - `start_pos` characters.
@@ -12116,7 +12116,7 @@ export function utf8_strup(str: string | null, len: number): string | null
12116
12116
  * @param end_pos another character offset within `str,` or `-1` to indicate the end of the string
12117
12117
  * @returns a newly allocated copy of the requested substring. Free with g_free() when no longer needed.
12118
12118
  */
12119
- export function utf8_substring(str: string | null, start_pos: number, end_pos: number): string | null
12119
+ export function utf8_substring(str: string, start_pos: number, end_pos: number): string | null
12120
12120
  /**
12121
12121
  * Convert a string from UTF-8 to a 32-bit fixed width
12122
12122
  * representation as UCS-4. A trailing 0 character will be added to the
@@ -12125,7 +12125,7 @@ export function utf8_substring(str: string | null, start_pos: number, end_pos: n
12125
12125
  * @param len the maximum length of `str` to use, in bytes. If `len` < 0, then the string is nul-terminated.
12126
12126
  * @returns a pointer to a newly allocated UCS-4 string. This value must be freed with g_free(). If an error occurs, %NULL will be returned and @error set.
12127
12127
  */
12128
- export function utf8_to_ucs4(str: string | null, len: number): [ /* returnType */ string, /* items_read */ number, /* items_written */ number ]
12128
+ export function utf8_to_ucs4(str: string, len: number): [ /* returnType */ string, /* items_read */ number, /* items_written */ number ]
12129
12129
  /**
12130
12130
  * Convert a string from UTF-8 to a 32-bit fixed width
12131
12131
  * representation as UCS-4, assuming valid UTF-8 input.
@@ -12136,7 +12136,7 @@ export function utf8_to_ucs4(str: string | null, len: number): [ /* returnType *
12136
12136
  * @param len the maximum length of `str` to use, in bytes. If `len` < 0, then the string is nul-terminated.
12137
12137
  * @returns a pointer to a newly allocated UCS-4 string. This value must be freed with g_free().
12138
12138
  */
12139
- export function utf8_to_ucs4_fast(str: string | null, len: number): [ /* returnType */ string, /* items_written */ number ]
12139
+ export function utf8_to_ucs4_fast(str: string, len: number): [ /* returnType */ string, /* items_written */ number ]
12140
12140
  /**
12141
12141
  * Convert a string from UTF-8 to UTF-16. A 0 character will be
12142
12142
  * added to the result after the converted text.
@@ -12144,7 +12144,7 @@ export function utf8_to_ucs4_fast(str: string | null, len: number): [ /* returnT
12144
12144
  * @param len the maximum length (number of bytes) of `str` to use. If `len` < 0, then the string is nul-terminated.
12145
12145
  * @returns a pointer to a newly allocated UTF-16 string. This value must be freed with g_free(). If an error occurs, %NULL will be returned and @error set.
12146
12146
  */
12147
- export function utf8_to_utf16(str: string | null, len: number): [ /* returnType */ number, /* items_read */ number, /* items_written */ number ]
12147
+ export function utf8_to_utf16(str: string, len: number): [ /* returnType */ number, /* items_read */ number, /* items_written */ number ]
12148
12148
  /**
12149
12149
  * Cuts off the middle of the string, preserving half of `truncate_length`
12150
12150
  * characters at the beginning and half at the end.
@@ -12155,7 +12155,7 @@ export function utf8_to_utf16(str: string | null, len: number): [ /* returnType
12155
12155
  * @param truncate_length the new size of `string,` in characters, including the ellipsis character
12156
12156
  * @returns a newly-allocated copy of @string ellipsized in the middle
12157
12157
  */
12158
- export function utf8_truncate_middle(string: string | null, truncate_length: number): string | null
12158
+ export function utf8_truncate_middle(string: string, truncate_length: number): string | null
12159
12159
  /**
12160
12160
  * Validates UTF-8 encoded text. `str` is the text to validate;
12161
12161
  * if `str` is nul-terminated, then `max_len` can be -1, otherwise
@@ -12175,7 +12175,7 @@ export function utf8_truncate_middle(string: string | null, truncate_length: num
12175
12175
  * @param str a pointer to character data
12176
12176
  * @returns %TRUE if the text was valid UTF-8
12177
12177
  */
12178
- export function utf8_validate(str: Uint8Array): [ /* returnType */ boolean, /* end */ string | null ]
12178
+ export function utf8_validate(str: Uint8Array): [ /* returnType */ boolean, /* end */ string ]
12179
12179
  /**
12180
12180
  * Validates UTF-8 encoded text.
12181
12181
  *
@@ -12184,7 +12184,7 @@ export function utf8_validate(str: Uint8Array): [ /* returnType */ boolean, /* e
12184
12184
  * @param str a pointer to character data
12185
12185
  * @returns %TRUE if the text was valid UTF-8
12186
12186
  */
12187
- export function utf8_validate_len(str: Uint8Array): [ /* returnType */ boolean, /* end */ string | null ]
12187
+ export function utf8_validate_len(str: Uint8Array): [ /* returnType */ boolean, /* end */ string ]
12188
12188
  /**
12189
12189
  * Parses the string `str` and verify if it is a UUID.
12190
12190
  *
@@ -12197,7 +12197,7 @@ export function utf8_validate_len(str: Uint8Array): [ /* returnType */ boolean,
12197
12197
  * @param str a string representing a UUID
12198
12198
  * @returns %TRUE if @str is a valid UUID, %FALSE otherwise.
12199
12199
  */
12200
- export function uuid_string_is_valid(str: string | null): boolean
12200
+ export function uuid_string_is_valid(str: string): boolean
12201
12201
  /**
12202
12202
  * Generates a random UUID (RFC 4122 version 4) as a string. It has the same
12203
12203
  * randomness guarantees as #GRand, so must not be used for cryptographic
@@ -12218,7 +12218,7 @@ export function variant_get_gtype(): GObject.GType
12218
12218
  * @param string a normal C nul-terminated string
12219
12219
  * @returns %TRUE if @string is a D-Bus object path
12220
12220
  */
12221
- export function variant_is_object_path(string: string | null): boolean
12221
+ export function variant_is_object_path(string: string): boolean
12222
12222
  /**
12223
12223
  * Determines if a given string is a valid D-Bus type signature. You
12224
12224
  * should ensure that a string is a valid D-Bus type signature before
@@ -12229,7 +12229,7 @@ export function variant_is_object_path(string: string | null): boolean
12229
12229
  * @param string a normal C nul-terminated string
12230
12230
  * @returns %TRUE if @string is a D-Bus type signature
12231
12231
  */
12232
- export function variant_is_signature(string: string | null): boolean
12232
+ export function variant_is_signature(string: string): boolean
12233
12233
  /**
12234
12234
  * Parses a #GVariant from a text representation.
12235
12235
  *
@@ -12272,7 +12272,7 @@ export function variant_is_signature(string: string | null): boolean
12272
12272
  * @param endptr a location to store the end pointer, or %NULL
12273
12273
  * @returns a non-floating reference to a #GVariant, or %NULL
12274
12274
  */
12275
- export function variant_parse(type: VariantType | null, text: string | null, limit: string | null, endptr: string | null): Variant
12275
+ export function variant_parse(type: VariantType | null, text: string, limit: string | null, endptr: string | null): Variant
12276
12276
  /**
12277
12277
  * Pretty-prints a message showing the context of a #GVariant parse
12278
12278
  * error within the string for which parsing was attempted.
@@ -12311,14 +12311,14 @@ export function variant_parse(type: VariantType | null, text: string | null, lim
12311
12311
  * @param source_str the string that was given to the parser
12312
12312
  * @returns the printed message
12313
12313
  */
12314
- export function variant_parse_error_print_context(error: Error, source_str: string | null): string | null
12314
+ export function variant_parse_error_print_context(error: Error, source_str: string): string | null
12315
12315
  export function variant_parse_error_quark(): Quark
12316
12316
  /**
12317
12317
  * Same as g_variant_error_quark().
12318
12318
  */
12319
12319
  export function variant_parser_get_error_quark(): Quark
12320
- export function variant_type_checked_(arg0: string | null): VariantType
12321
- export function variant_type_string_get_depth_(type_string: string | null): number
12320
+ export function variant_type_checked_(arg0: string): VariantType
12321
+ export function variant_type_string_get_depth_(type_string: string): number
12322
12322
  /**
12323
12323
  * Checks if `type_string` is a valid GVariant type string. This call is
12324
12324
  * equivalent to calling g_variant_type_string_scan() and confirming
@@ -12326,7 +12326,7 @@ export function variant_type_string_get_depth_(type_string: string | null): numb
12326
12326
  * @param type_string a pointer to any string
12327
12327
  * @returns %TRUE if @type_string is exactly one valid type string Since 2.24
12328
12328
  */
12329
- export function variant_type_string_is_valid(type_string: string | null): boolean
12329
+ export function variant_type_string_is_valid(type_string: string): boolean
12330
12330
  /**
12331
12331
  * Scan for a single complete and valid GVariant type string in `string`.
12332
12332
  * The memory pointed to by `limit` (or bytes beyond it) is never
@@ -12345,7 +12345,7 @@ export function variant_type_string_is_valid(type_string: string | null): boolea
12345
12345
  * @param limit the end of `string,` or %NULL
12346
12346
  * @returns %TRUE if a valid type string was found
12347
12347
  */
12348
- export function variant_type_string_scan(string: string | null, limit: string | null): [ /* returnType */ boolean, /* endptr */ string | null ]
12348
+ export function variant_type_string_scan(string: string, limit: string | null): [ /* returnType */ boolean, /* endptr */ string ]
12349
12349
  /**
12350
12350
  * Prototype of a #GChildWatchSource callback, called when a child
12351
12351
  * process has exited.
@@ -12693,7 +12693,7 @@ export interface IOFunc {
12693
12693
  * @param message the message to process
12694
12694
  */
12695
12695
  export interface LogFunc {
12696
- (log_domain: string | null, log_level: LogLevelFlags, message: string | null): void
12696
+ (log_domain: string, log_level: LogLevelFlags, message: string): void
12697
12697
  }
12698
12698
  /**
12699
12699
  * Writer function for log entries. A log entry is a collection of one or more
@@ -12756,7 +12756,7 @@ export interface NodeTraverseFunc {
12756
12756
  * @returns %TRUE if the option was successfully parsed, %FALSE if an error occurred, in which case @error should be set with g_set_error()
12757
12757
  */
12758
12758
  export interface OptionArgFunc {
12759
- (option_name: string | null, value: string | null, data: any | null): boolean
12759
+ (option_name: string, value: string, data: any | null): boolean
12760
12760
  }
12761
12761
  /**
12762
12762
  * The type of function to be used as callback when a parse error occurs.
@@ -12798,7 +12798,7 @@ export interface PollFunc {
12798
12798
  * @param string the message to output
12799
12799
  */
12800
12800
  export interface PrintFunc {
12801
- (string: string | null): void
12801
+ (string: string): void
12802
12802
  }
12803
12803
  /**
12804
12804
  * Specifies the type of the function passed to g_regex_replace_eval().
@@ -12954,7 +12954,7 @@ export interface TestFunc {
12954
12954
  * @returns %TRUE if the program should abort, %FALSE otherwise
12955
12955
  */
12956
12956
  export interface TestLogFatalFunc {
12957
- (log_domain: string | null, log_level: LogLevelFlags, message: string | null): boolean
12957
+ (log_domain: string, log_level: LogLevelFlags, message: string): boolean
12958
12958
  }
12959
12959
  /**
12960
12960
  * Specifies the type of the `func` functions passed to g_thread_new()
@@ -12975,7 +12975,7 @@ export interface ThreadFunc {
12975
12975
  * @returns a translation of the string for the current locale. The returned string is owned by GLib and must not be freed.
12976
12976
  */
12977
12977
  export interface TranslateFunc {
12978
- (str: string | null, data: any | null): string | null
12978
+ (str: string, data: any | null): string
12979
12979
  }
12980
12980
  /**
12981
12981
  * Specifies the type of function passed to g_tree_traverse(). It is
@@ -13291,7 +13291,7 @@ export interface BookmarkFile {
13291
13291
  * @param name the name of the application registering the bookmark or %NULL
13292
13292
  * @param exec command line to be used to launch the bookmark or %NULL
13293
13293
  */
13294
- add_application(uri: string | null, name: string | null, exec: string | null): void
13294
+ add_application(uri: string, name: string | null, exec: string | null): void
13295
13295
  /**
13296
13296
  * Adds `group` to the list of groups to which the bookmark for `uri`
13297
13297
  * belongs to.
@@ -13300,7 +13300,7 @@ export interface BookmarkFile {
13300
13300
  * @param uri a valid URI
13301
13301
  * @param group the group name to be added
13302
13302
  */
13303
- add_group(uri: string | null, group: string | null): void
13303
+ add_group(uri: string, group: string): void
13304
13304
  /**
13305
13305
  * Deeply copies a `bookmark` #GBookmarkFile object to a new one.
13306
13306
  * @returns the copy of @bookmark. Use g_bookmark_free() when finished using it.
@@ -13318,7 +13318,7 @@ export interface BookmarkFile {
13318
13318
  * @param uri a valid URI
13319
13319
  * @returns a timestamp
13320
13320
  */
13321
- get_added(uri: string | null): number
13321
+ get_added(uri: string): number
13322
13322
  /**
13323
13323
  * Gets the time the bookmark for `uri` was added to `bookmark`
13324
13324
  *
@@ -13327,7 +13327,7 @@ export interface BookmarkFile {
13327
13327
  * @param uri a valid URI
13328
13328
  * @returns a #GDateTime
13329
13329
  */
13330
- get_added_date_time(uri: string | null): DateTime
13330
+ get_added_date_time(uri: string): DateTime
13331
13331
  /**
13332
13332
  * Gets the registration information of `app_name` for the bookmark for
13333
13333
  * `uri`. See g_bookmark_file_set_application_info() for more information about
@@ -13346,7 +13346,7 @@ export interface BookmarkFile {
13346
13346
  * @param name an application's name
13347
13347
  * @returns %TRUE on success.
13348
13348
  */
13349
- get_app_info(uri: string | null, name: string | null): [ /* returnType */ boolean, /* exec */ string | null, /* count */ number, /* stamp */ number ]
13349
+ get_app_info(uri: string, name: string): [ /* returnType */ boolean, /* exec */ string, /* count */ number, /* stamp */ number ]
13350
13350
  /**
13351
13351
  * Gets the registration information of `app_name` for the bookmark for
13352
13352
  * `uri`. See g_bookmark_file_set_application_info() for more information about
@@ -13365,7 +13365,7 @@ export interface BookmarkFile {
13365
13365
  * @param name an application's name
13366
13366
  * @returns %TRUE on success.
13367
13367
  */
13368
- get_application_info(uri: string | null, name: string | null): [ /* returnType */ boolean, /* exec */ string | null, /* count */ number, /* stamp */ DateTime ]
13368
+ get_application_info(uri: string, name: string): [ /* returnType */ boolean, /* exec */ string, /* count */ number, /* stamp */ DateTime ]
13369
13369
  /**
13370
13370
  * Retrieves the names of the applications that have registered the
13371
13371
  * bookmark for `uri`.
@@ -13375,7 +13375,7 @@ export interface BookmarkFile {
13375
13375
  * @param uri a valid URI
13376
13376
  * @returns a newly allocated %NULL-terminated array of strings. Use g_strfreev() to free it.
13377
13377
  */
13378
- get_applications(uri: string | null): string[]
13378
+ get_applications(uri: string): string[]
13379
13379
  /**
13380
13380
  * Retrieves the description of the bookmark for `uri`.
13381
13381
  *
@@ -13384,7 +13384,7 @@ export interface BookmarkFile {
13384
13384
  * @param uri a valid URI
13385
13385
  * @returns a newly allocated string or %NULL if the specified URI cannot be found.
13386
13386
  */
13387
- get_description(uri: string | null): string | null
13387
+ get_description(uri: string): string | null
13388
13388
  /**
13389
13389
  * Retrieves the list of group names of the bookmark for `uri`.
13390
13390
  *
@@ -13396,7 +13396,7 @@ export interface BookmarkFile {
13396
13396
  * @param uri a valid URI
13397
13397
  * @returns a newly allocated %NULL-terminated array of group names. Use g_strfreev() to free it.
13398
13398
  */
13399
- get_groups(uri: string | null): string[]
13399
+ get_groups(uri: string): string[]
13400
13400
  /**
13401
13401
  * Gets the icon of the bookmark for `uri`.
13402
13402
  *
@@ -13405,7 +13405,7 @@ export interface BookmarkFile {
13405
13405
  * @param uri a valid URI
13406
13406
  * @returns %TRUE if the icon for the bookmark for the URI was found. You should free the returned strings.
13407
13407
  */
13408
- get_icon(uri: string | null): [ /* returnType */ boolean, /* href */ string | null, /* mime_type */ string | null ]
13408
+ get_icon(uri: string): [ /* returnType */ boolean, /* href */ string, /* mime_type */ string ]
13409
13409
  /**
13410
13410
  * Gets whether the private flag of the bookmark for `uri` is set.
13411
13411
  *
@@ -13416,7 +13416,7 @@ export interface BookmarkFile {
13416
13416
  * @param uri a valid URI
13417
13417
  * @returns %TRUE if the private flag is set, %FALSE otherwise.
13418
13418
  */
13419
- get_is_private(uri: string | null): boolean
13419
+ get_is_private(uri: string): boolean
13420
13420
  /**
13421
13421
  * Retrieves the MIME type of the resource pointed by `uri`.
13422
13422
  *
@@ -13427,7 +13427,7 @@ export interface BookmarkFile {
13427
13427
  * @param uri a valid URI
13428
13428
  * @returns a newly allocated string or %NULL if the specified URI cannot be found.
13429
13429
  */
13430
- get_mime_type(uri: string | null): string | null
13430
+ get_mime_type(uri: string): string | null
13431
13431
  /**
13432
13432
  * Gets the time when the bookmark for `uri` was last modified.
13433
13433
  *
@@ -13436,7 +13436,7 @@ export interface BookmarkFile {
13436
13436
  * @param uri a valid URI
13437
13437
  * @returns a timestamp
13438
13438
  */
13439
- get_modified(uri: string | null): number
13439
+ get_modified(uri: string): number
13440
13440
  /**
13441
13441
  * Gets the time when the bookmark for `uri` was last modified.
13442
13442
  *
@@ -13445,7 +13445,7 @@ export interface BookmarkFile {
13445
13445
  * @param uri a valid URI
13446
13446
  * @returns a #GDateTime
13447
13447
  */
13448
- get_modified_date_time(uri: string | null): DateTime
13448
+ get_modified_date_time(uri: string): DateTime
13449
13449
  /**
13450
13450
  * Gets the number of bookmarks inside `bookmark`.
13451
13451
  * @returns the number of bookmarks
@@ -13477,7 +13477,7 @@ export interface BookmarkFile {
13477
13477
  * @param uri a valid URI
13478
13478
  * @returns a timestamp.
13479
13479
  */
13480
- get_visited(uri: string | null): number
13480
+ get_visited(uri: string): number
13481
13481
  /**
13482
13482
  * Gets the time the bookmark for `uri` was last visited.
13483
13483
  *
@@ -13486,7 +13486,7 @@ export interface BookmarkFile {
13486
13486
  * @param uri a valid URI
13487
13487
  * @returns a #GDateTime
13488
13488
  */
13489
- get_visited_date_time(uri: string | null): DateTime
13489
+ get_visited_date_time(uri: string): DateTime
13490
13490
  /**
13491
13491
  * Checks whether the bookmark for `uri` inside `bookmark` has been
13492
13492
  * registered by application `name`.
@@ -13497,7 +13497,7 @@ export interface BookmarkFile {
13497
13497
  * @param name the name of the application
13498
13498
  * @returns %TRUE if the application @name was found
13499
13499
  */
13500
- has_application(uri: string | null, name: string | null): boolean
13500
+ has_application(uri: string, name: string): boolean
13501
13501
  /**
13502
13502
  * Checks whether `group` appears in the list of groups to which
13503
13503
  * the bookmark for `uri` belongs to.
@@ -13508,13 +13508,13 @@ export interface BookmarkFile {
13508
13508
  * @param group the group name to be searched
13509
13509
  * @returns %TRUE if @group was found.
13510
13510
  */
13511
- has_group(uri: string | null, group: string | null): boolean
13511
+ has_group(uri: string, group: string): boolean
13512
13512
  /**
13513
13513
  * Looks whether the desktop bookmark has an item with its URI set to `uri`.
13514
13514
  * @param uri a valid URI
13515
13515
  * @returns %TRUE if @uri is inside @bookmark, %FALSE otherwise
13516
13516
  */
13517
- has_item(uri: string | null): boolean
13517
+ has_item(uri: string): boolean
13518
13518
  /**
13519
13519
  * Loads a bookmark file from memory into an empty #GBookmarkFile
13520
13520
  * structure. If the object cannot be created then `error` is set to a
@@ -13552,7 +13552,7 @@ export interface BookmarkFile {
13552
13552
  * @param new_uri a valid URI, or %NULL
13553
13553
  * @returns %TRUE if the URI was successfully changed
13554
13554
  */
13555
- move_item(old_uri: string | null, new_uri: string | null): boolean
13555
+ move_item(old_uri: string, new_uri: string | null): boolean
13556
13556
  /**
13557
13557
  * Removes application registered with `name` from the list of applications
13558
13558
  * that have registered a bookmark for `uri` inside `bookmark`.
@@ -13566,7 +13566,7 @@ export interface BookmarkFile {
13566
13566
  * @param name the name of the application
13567
13567
  * @returns %TRUE if the application was successfully removed.
13568
13568
  */
13569
- remove_application(uri: string | null, name: string | null): boolean
13569
+ remove_application(uri: string, name: string): boolean
13570
13570
  /**
13571
13571
  * Removes `group` from the list of groups to which the bookmark
13572
13572
  * for `uri` belongs to.
@@ -13579,13 +13579,13 @@ export interface BookmarkFile {
13579
13579
  * @param group the group name to be removed
13580
13580
  * @returns %TRUE if @group was successfully removed.
13581
13581
  */
13582
- remove_group(uri: string | null, group: string | null): boolean
13582
+ remove_group(uri: string, group: string): boolean
13583
13583
  /**
13584
13584
  * Removes the bookmark for `uri` from the bookmark file `bookmark`.
13585
13585
  * @param uri a valid URI
13586
13586
  * @returns %TRUE if the bookmark was removed successfully.
13587
13587
  */
13588
- remove_item(uri: string | null): boolean
13588
+ remove_item(uri: string): boolean
13589
13589
  /**
13590
13590
  * Sets the time the bookmark for `uri` was added into `bookmark`.
13591
13591
  *
@@ -13593,7 +13593,7 @@ export interface BookmarkFile {
13593
13593
  * @param uri a valid URI
13594
13594
  * @param added a timestamp or -1 to use the current time
13595
13595
  */
13596
- set_added(uri: string | null, added: number): void
13596
+ set_added(uri: string, added: number): void
13597
13597
  /**
13598
13598
  * Sets the time the bookmark for `uri` was added into `bookmark`.
13599
13599
  *
@@ -13601,7 +13601,7 @@ export interface BookmarkFile {
13601
13601
  * @param uri a valid URI
13602
13602
  * @param added a #GDateTime
13603
13603
  */
13604
- set_added_date_time(uri: string | null, added: DateTime): void
13604
+ set_added_date_time(uri: string, added: DateTime): void
13605
13605
  /**
13606
13606
  * Sets the meta-data of application `name` inside the list of
13607
13607
  * applications that have registered a bookmark for `uri` inside
@@ -13638,7 +13638,7 @@ export interface BookmarkFile {
13638
13638
  * @param stamp the time of the last registration for this application
13639
13639
  * @returns %TRUE if the application's meta-data was successfully changed.
13640
13640
  */
13641
- set_app_info(uri: string | null, name: string | null, exec: string | null, count: number, stamp: number): boolean
13641
+ set_app_info(uri: string, name: string, exec: string, count: number, stamp: number): boolean
13642
13642
  /**
13643
13643
  * Sets the meta-data of application `name` inside the list of
13644
13644
  * applications that have registered a bookmark for `uri` inside
@@ -13674,7 +13674,7 @@ export interface BookmarkFile {
13674
13674
  * @param stamp the time of the last registration for this application, which may be %NULL if `count` is 0
13675
13675
  * @returns %TRUE if the application's meta-data was successfully changed.
13676
13676
  */
13677
- set_application_info(uri: string | null, name: string | null, exec: string | null, count: number, stamp: DateTime | null): boolean
13677
+ set_application_info(uri: string, name: string, exec: string, count: number, stamp: DateTime | null): boolean
13678
13678
  /**
13679
13679
  * Sets `description` as the description of the bookmark for `uri`.
13680
13680
  *
@@ -13684,7 +13684,7 @@ export interface BookmarkFile {
13684
13684
  * @param uri a valid URI or %NULL
13685
13685
  * @param description a string
13686
13686
  */
13687
- set_description(uri: string | null, description: string | null): void
13687
+ set_description(uri: string | null, description: string): void
13688
13688
  /**
13689
13689
  * Sets a list of group names for the item with URI `uri`. Each previously
13690
13690
  * set group name list is removed.
@@ -13693,7 +13693,7 @@ export interface BookmarkFile {
13693
13693
  * @param uri an item's URI
13694
13694
  * @param groups an array of group names, or %NULL to remove all groups
13695
13695
  */
13696
- set_groups(uri: string | null, groups: string[] | null): void
13696
+ set_groups(uri: string, groups: string[] | null): void
13697
13697
  /**
13698
13698
  * Sets the icon for the bookmark for `uri`. If `href` is %NULL, unsets
13699
13699
  * the currently set icon. `href` can either be a full URL for the icon
@@ -13704,7 +13704,7 @@ export interface BookmarkFile {
13704
13704
  * @param href the URI of the icon for the bookmark, or %NULL
13705
13705
  * @param mime_type the MIME type of the icon for the bookmark
13706
13706
  */
13707
- set_icon(uri: string | null, href: string | null, mime_type: string | null): void
13707
+ set_icon(uri: string, href: string | null, mime_type: string): void
13708
13708
  /**
13709
13709
  * Sets the private flag of the bookmark for `uri`.
13710
13710
  *
@@ -13712,7 +13712,7 @@ export interface BookmarkFile {
13712
13712
  * @param uri a valid URI
13713
13713
  * @param is_private %TRUE if the bookmark should be marked as private
13714
13714
  */
13715
- set_is_private(uri: string | null, is_private: boolean): void
13715
+ set_is_private(uri: string, is_private: boolean): void
13716
13716
  /**
13717
13717
  * Sets `mime_type` as the MIME type of the bookmark for `uri`.
13718
13718
  *
@@ -13720,7 +13720,7 @@ export interface BookmarkFile {
13720
13720
  * @param uri a valid URI
13721
13721
  * @param mime_type a MIME type
13722
13722
  */
13723
- set_mime_type(uri: string | null, mime_type: string | null): void
13723
+ set_mime_type(uri: string, mime_type: string): void
13724
13724
  /**
13725
13725
  * Sets the last time the bookmark for `uri` was last modified.
13726
13726
  *
@@ -13733,7 +13733,7 @@ export interface BookmarkFile {
13733
13733
  * @param uri a valid URI
13734
13734
  * @param modified a timestamp or -1 to use the current time
13735
13735
  */
13736
- set_modified(uri: string | null, modified: number): void
13736
+ set_modified(uri: string, modified: number): void
13737
13737
  /**
13738
13738
  * Sets the last time the bookmark for `uri` was last modified.
13739
13739
  *
@@ -13746,7 +13746,7 @@ export interface BookmarkFile {
13746
13746
  * @param uri a valid URI
13747
13747
  * @param modified a #GDateTime
13748
13748
  */
13749
- set_modified_date_time(uri: string | null, modified: DateTime): void
13749
+ set_modified_date_time(uri: string, modified: DateTime): void
13750
13750
  /**
13751
13751
  * Sets `title` as the title of the bookmark for `uri` inside the
13752
13752
  * bookmark file `bookmark`.
@@ -13757,7 +13757,7 @@ export interface BookmarkFile {
13757
13757
  * @param uri a valid URI or %NULL
13758
13758
  * @param title a UTF-8 encoded string
13759
13759
  */
13760
- set_title(uri: string | null, title: string | null): void
13760
+ set_title(uri: string | null, title: string): void
13761
13761
  /**
13762
13762
  * Sets the time the bookmark for `uri` was last visited.
13763
13763
  *
@@ -13771,7 +13771,7 @@ export interface BookmarkFile {
13771
13771
  * @param uri a valid URI
13772
13772
  * @param visited a timestamp or -1 to use the current time
13773
13773
  */
13774
- set_visited(uri: string | null, visited: number): void
13774
+ set_visited(uri: string, visited: number): void
13775
13775
  /**
13776
13776
  * Sets the time the bookmark for `uri` was last visited.
13777
13777
  *
@@ -13785,7 +13785,7 @@ export interface BookmarkFile {
13785
13785
  * @param uri a valid URI
13786
13786
  * @param visited a #GDateTime
13787
13787
  */
13788
- set_visited_date_time(uri: string | null, visited: DateTime): void
13788
+ set_visited_date_time(uri: string, visited: DateTime): void
13789
13789
  /**
13790
13790
  * This function outputs `bookmark` as a string.
13791
13791
  * @returns a newly allocated string holding the contents of the #GBookmarkFile
@@ -14196,7 +14196,7 @@ export interface Checksum {
14196
14196
  * The hexadecimal characters will be lower case.
14197
14197
  * @returns the hexadecimal representation of the checksum. The returned string is owned by the checksum and should not be modified or freed.
14198
14198
  */
14199
- get_string(): string | null
14199
+ get_string(): string
14200
14200
  /**
14201
14201
  * Resets the state of the `checksum` back to its initial state.
14202
14202
  */
@@ -14702,7 +14702,7 @@ export interface Date {
14702
14702
  * capacity).
14703
14703
  * @param str string to parse
14704
14704
  */
14705
- set_parse(str: string | null): void
14705
+ set_parse(str: string): void
14706
14706
  /**
14707
14707
  * Sets the value of a date from a #GTime value.
14708
14708
  * The time to date conversion is done using the user's current timezone.
@@ -14907,7 +14907,7 @@ export class Date {
14907
14907
  * @param date valid #GDate
14908
14908
  * @returns number of characters written to the buffer, or 0 the buffer was too small
14909
14909
  */
14910
- static strftime(s: string | null, slen: number, format: string | null, date: Date): number
14910
+ static strftime(s: string | null, slen: number, format: string, date: Date): number
14911
14911
  /**
14912
14912
  * Returns %TRUE if the day of the month is valid (a day is valid if it's
14913
14913
  * between 1 and 31 inclusive).
@@ -15162,7 +15162,7 @@ export interface DateTime {
15162
15162
  * @param format a valid UTF-8 string, containing the format for the #GDateTime
15163
15163
  * @returns a newly allocated string formatted to the requested format or %NULL in the case that there was an error (such as a format specifier not being supported in the current locale). The string should be freed with g_free().
15164
15164
  */
15165
- format(format: string | null): string | null
15165
+ format(format: string): string | null
15166
15166
  /**
15167
15167
  * Format `datetime` in [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601),
15168
15168
  * including the date, time and time zone, and return that as a UTF-8 encoded
@@ -15236,7 +15236,7 @@ export interface DateTime {
15236
15236
  * time is in effect.
15237
15237
  * @returns the time zone abbreviation. The returned string is owned by the #GDateTime and it should not be modified or freed
15238
15238
  */
15239
- get_timezone_abbreviation(): string | null
15239
+ get_timezone_abbreviation(): string
15240
15240
  /**
15241
15241
  * Determines the offset to UTC in effect at the time and in the time
15242
15242
  * zone of `datetime`.
@@ -15534,7 +15534,7 @@ export class DateTime {
15534
15534
  * @param default_tz a #GTimeZone to use if the text doesn't contain a timezone, or %NULL.
15535
15535
  * @returns a new #GDateTime, or %NULL
15536
15536
  */
15537
- static new_from_iso8601(text: string | null, default_tz: TimeZone | null): DateTime
15537
+ static new_from_iso8601(text: string, default_tz: TimeZone | null): DateTime
15538
15538
  /**
15539
15539
  * Creates a #GDateTime corresponding to the given #GTimeVal `tv` in the
15540
15540
  * local time zone.
@@ -15678,7 +15678,7 @@ export interface DebugKey {
15678
15678
  * the string
15679
15679
  * @field
15680
15680
  */
15681
- key: string | null
15681
+ key: string
15682
15682
  /**
15683
15683
  * the flag
15684
15684
  * @field
@@ -15857,7 +15857,7 @@ export class Error {
15857
15857
  * @param message error message
15858
15858
  * @returns a new #GError
15859
15859
  */
15860
- static new_literal(domain: Quark, code: number, message: string | null): Error
15860
+ static new_literal(domain: Quark, code: number, message: string): Error
15861
15861
 
15862
15862
  // Owm static methods of GLib-2.0.GLib.Error
15863
15863
 
@@ -16183,7 +16183,7 @@ export interface Hmac {
16183
16183
  * The hexadecimal characters will be lower case.
16184
16184
  * @returns the hexadecimal representation of the HMAC. The returned string is owned by the HMAC and should not be modified or freed.
16185
16185
  */
16186
- get_string(): string | null
16186
+ get_string(): string
16187
16187
  /**
16188
16188
  * Atomically decrements the reference count of `hmac` by one.
16189
16189
  *
@@ -16469,7 +16469,7 @@ export interface IOChannel {
16469
16469
  * makes the channel safe for binary data.
16470
16470
  * @returns A string containing the encoding, this string is owned by GLib and must not be freed.
16471
16471
  */
16472
- get_encoding(): string | null
16472
+ get_encoding(): string
16473
16473
  /**
16474
16474
  * Gets the current flags for a #GIOChannel, including read-only
16475
16475
  * flags such as %G_IO_FLAG_IS_READABLE.
@@ -16489,7 +16489,7 @@ export interface IOChannel {
16489
16489
  * indicates autodetection.
16490
16490
  * @returns The line termination string. This value is owned by GLib and must not be freed.
16491
16491
  */
16492
- get_line_term(): [ /* returnType */ string | null, /* length */ number ]
16492
+ get_line_term(): [ /* returnType */ string, /* length */ number ]
16493
16493
  /**
16494
16494
  * Initializes a #GIOChannel struct.
16495
16495
  *
@@ -16674,7 +16674,7 @@ export interface IOChannel {
16674
16674
  * @param bytes_written the number of bytes actually written
16675
16675
  * @returns %G_IO_ERROR_NONE if the operation was successful.
16676
16676
  */
16677
- write(buf: string | null, count: number, bytes_written: number): IOError
16677
+ write(buf: string, count: number, bytes_written: number): IOError
16678
16678
  /**
16679
16679
  * Replacement for g_io_channel_write() with the new API.
16680
16680
  *
@@ -16721,7 +16721,7 @@ export class IOChannel {
16721
16721
  * @param mode One of "r", "w", "a", "r+", "w+", "a+". These have the same meaning as in fopen()
16722
16722
  * @returns A #GIOChannel on success, %NULL on failure.
16723
16723
  */
16724
- static new_file(filename: string, mode: string | null): IOChannel
16724
+ static new_file(filename: string, mode: string): IOChannel
16725
16725
  /**
16726
16726
  * Creates a new #GIOChannel given a file descriptor. On UNIX systems
16727
16727
  * this works for plain files, pipes, and sockets.
@@ -16764,7 +16764,7 @@ export interface IOFuncs {
16764
16764
  // Own fields of GLib-2.0.GLib.IOFuncs
16765
16765
 
16766
16766
  io_read: (channel: IOChannel, buf: string | null, count: number, bytes_read: number) => IOStatus
16767
- io_write: (channel: IOChannel, buf: string | null, count: number, bytes_written: number) => IOStatus
16767
+ io_write: (channel: IOChannel, buf: string, count: number, bytes_written: number) => IOStatus
16768
16768
  io_seek: (channel: IOChannel, offset: number, type: SeekType) => IOStatus
16769
16769
  io_close: (channel: IOChannel) => IOStatus
16770
16770
  io_create_watch: (channel: IOChannel, condition: IOCondition) => Source
@@ -16801,7 +16801,7 @@ export interface KeyFile {
16801
16801
  * @param key a key
16802
16802
  * @returns the value associated with the key as a boolean, or %FALSE if the key was not found or could not be parsed.
16803
16803
  */
16804
- get_boolean(group_name: string | null, key: string | null): boolean
16804
+ get_boolean(group_name: string, key: string): boolean
16805
16805
  /**
16806
16806
  * Returns the values associated with `key` under `group_name` as
16807
16807
  * booleans.
@@ -16814,7 +16814,7 @@ export interface KeyFile {
16814
16814
  * @param key a key
16815
16815
  * @returns the values associated with the key as a list of booleans, or %NULL if the key was not found or could not be parsed. The returned list of booleans should be freed with g_free() when no longer needed.
16816
16816
  */
16817
- get_boolean_list(group_name: string | null, key: string | null): boolean[]
16817
+ get_boolean_list(group_name: string, key: string): boolean[]
16818
16818
  /**
16819
16819
  * Retrieves a comment above `key` from `group_name`.
16820
16820
  * If `key` is %NULL then `comment` will be read from above
@@ -16841,7 +16841,7 @@ export interface KeyFile {
16841
16841
  * @param key a key
16842
16842
  * @returns the value associated with the key as a double, or 0.0 if the key was not found or could not be parsed.
16843
16843
  */
16844
- get_double(group_name: string | null, key: string | null): number
16844
+ get_double(group_name: string, key: string): number
16845
16845
  /**
16846
16846
  * Returns the values associated with `key` under `group_name` as
16847
16847
  * doubles.
@@ -16854,7 +16854,7 @@ export interface KeyFile {
16854
16854
  * @param key a key
16855
16855
  * @returns the values associated with the key as a list of doubles, or %NULL if the key was not found or could not be parsed. The returned list of doubles should be freed with g_free() when no longer needed.
16856
16856
  */
16857
- get_double_list(group_name: string | null, key: string | null): number[]
16857
+ get_double_list(group_name: string, key: string): number[]
16858
16858
  /**
16859
16859
  * Returns all groups in the key file loaded with `key_file`.
16860
16860
  * The array of returned groups will be %NULL-terminated, so
@@ -16870,7 +16870,7 @@ export interface KeyFile {
16870
16870
  * @param key a non-%NULL key
16871
16871
  * @returns the value associated with the key as a signed 64-bit integer, or 0 if the key was not found or could not be parsed.
16872
16872
  */
16873
- get_int64(group_name: string | null, key: string | null): number
16873
+ get_int64(group_name: string, key: string): number
16874
16874
  /**
16875
16875
  * Returns the value associated with `key` under `group_name` as an
16876
16876
  * integer.
@@ -16884,7 +16884,7 @@ export interface KeyFile {
16884
16884
  * @param key a key
16885
16885
  * @returns the value associated with the key as an integer, or 0 if the key was not found or could not be parsed.
16886
16886
  */
16887
- get_integer(group_name: string | null, key: string | null): number
16887
+ get_integer(group_name: string, key: string): number
16888
16888
  /**
16889
16889
  * Returns the values associated with `key` under `group_name` as
16890
16890
  * integers.
@@ -16898,7 +16898,7 @@ export interface KeyFile {
16898
16898
  * @param key a key
16899
16899
  * @returns the values associated with the key as a list of integers, or %NULL if the key was not found or could not be parsed. The returned list of integers should be freed with g_free() when no longer needed.
16900
16900
  */
16901
- get_integer_list(group_name: string | null, key: string | null): number[]
16901
+ get_integer_list(group_name: string, key: string): number[]
16902
16902
  /**
16903
16903
  * Returns all keys for the group name `group_name`. The array of
16904
16904
  * returned keys will be %NULL-terminated, so `length` may
@@ -16908,7 +16908,7 @@ export interface KeyFile {
16908
16908
  * @param group_name a group name
16909
16909
  * @returns a newly-allocated %NULL-terminated array of strings. Use g_strfreev() to free it.
16910
16910
  */
16911
- get_keys(group_name: string | null): [ /* returnType */ string[], /* length */ number ]
16911
+ get_keys(group_name: string): [ /* returnType */ string[], /* length */ number ]
16912
16912
  /**
16913
16913
  * Returns the actual locale which the result of
16914
16914
  * g_key_file_get_locale_string() or g_key_file_get_locale_string_list()
@@ -16924,7 +16924,7 @@ export interface KeyFile {
16924
16924
  * @param locale a locale identifier or %NULL
16925
16925
  * @returns the locale from the file, or %NULL if the key was not found or the entry in the file was was untranslated
16926
16926
  */
16927
- get_locale_for_key(group_name: string | null, key: string | null, locale: string | null): string | null
16927
+ get_locale_for_key(group_name: string, key: string, locale: string | null): string | null
16928
16928
  /**
16929
16929
  * Returns the value associated with `key` under `group_name`
16930
16930
  * translated in the given `locale` if available. If `locale` is
@@ -16943,7 +16943,7 @@ export interface KeyFile {
16943
16943
  * @param locale a locale identifier or %NULL
16944
16944
  * @returns a newly allocated string or %NULL if the specified key cannot be found.
16945
16945
  */
16946
- get_locale_string(group_name: string | null, key: string | null, locale: string | null): string | null
16946
+ get_locale_string(group_name: string, key: string, locale: string | null): string | null
16947
16947
  /**
16948
16948
  * Returns the values associated with `key` under `group_name`
16949
16949
  * translated in the given `locale` if available. If `locale` is
@@ -16964,7 +16964,7 @@ export interface KeyFile {
16964
16964
  * @param locale a locale identifier or %NULL
16965
16965
  * @returns a newly allocated %NULL-terminated string array or %NULL if the key isn't found. The string array should be freed with g_strfreev().
16966
16966
  */
16967
- get_locale_string_list(group_name: string | null, key: string | null, locale: string | null): string[]
16967
+ get_locale_string_list(group_name: string, key: string, locale: string | null): string[]
16968
16968
  /**
16969
16969
  * Returns the name of the start group of the file.
16970
16970
  * @returns The start group of the key file.
@@ -16983,7 +16983,7 @@ export interface KeyFile {
16983
16983
  * @param key a key
16984
16984
  * @returns a newly allocated string or %NULL if the specified key cannot be found.
16985
16985
  */
16986
- get_string(group_name: string | null, key: string | null): string | null
16986
+ get_string(group_name: string, key: string): string | null
16987
16987
  /**
16988
16988
  * Returns the values associated with `key` under `group_name`.
16989
16989
  *
@@ -16995,7 +16995,7 @@ export interface KeyFile {
16995
16995
  * @param key a key
16996
16996
  * @returns a %NULL-terminated string array or %NULL if the specified key cannot be found. The array should be freed with g_strfreev().
16997
16997
  */
16998
- get_string_list(group_name: string | null, key: string | null): string[]
16998
+ get_string_list(group_name: string, key: string): string[]
16999
16999
  /**
17000
17000
  * Returns the value associated with `key` under `group_name` as an unsigned
17001
17001
  * 64-bit integer. This is similar to g_key_file_get_integer() but can return
@@ -17004,7 +17004,7 @@ export interface KeyFile {
17004
17004
  * @param key a non-%NULL key
17005
17005
  * @returns the value associated with the key as an unsigned 64-bit integer, or 0 if the key was not found or could not be parsed.
17006
17006
  */
17007
- get_uint64(group_name: string | null, key: string | null): number
17007
+ get_uint64(group_name: string, key: string): number
17008
17008
  /**
17009
17009
  * Returns the raw value associated with `key` under `group_name`.
17010
17010
  * Use g_key_file_get_string() to retrieve an unescaped UTF-8 string.
@@ -17017,13 +17017,13 @@ export interface KeyFile {
17017
17017
  * @param key a key
17018
17018
  * @returns a newly allocated string or %NULL if the specified key cannot be found.
17019
17019
  */
17020
- get_value(group_name: string | null, key: string | null): string | null
17020
+ get_value(group_name: string, key: string): string | null
17021
17021
  /**
17022
17022
  * Looks whether the key file has the group `group_name`.
17023
17023
  * @param group_name a group name
17024
17024
  * @returns %TRUE if @group_name is a part of @key_file, %FALSE otherwise.
17025
17025
  */
17026
- has_group(group_name: string | null): boolean
17026
+ has_group(group_name: string): boolean
17027
17027
  /**
17028
17028
  * Loads a key file from the data in `bytes` into an empty #GKeyFile structure.
17029
17029
  * If the object cannot be created then %error is set to a #GKeyFileError.
@@ -17040,7 +17040,7 @@ export interface KeyFile {
17040
17040
  * @param flags flags from #GKeyFileFlags
17041
17041
  * @returns %TRUE if a key file could be loaded, %FALSE otherwise
17042
17042
  */
17043
- load_from_data(data: string | null, length: number, flags: KeyFileFlags): boolean
17043
+ load_from_data(data: string, length: number, flags: KeyFileFlags): boolean
17044
17044
  /**
17045
17045
  * This function looks for a key file named `file` in the paths
17046
17046
  * returned from g_get_user_data_dir() and g_get_system_data_dirs(),
@@ -17098,14 +17098,14 @@ export interface KeyFile {
17098
17098
  * @param group_name a group name
17099
17099
  * @returns %TRUE if the group was removed, %FALSE otherwise
17100
17100
  */
17101
- remove_group(group_name: string | null): boolean
17101
+ remove_group(group_name: string): boolean
17102
17102
  /**
17103
17103
  * Removes `key` in `group_name` from the key file.
17104
17104
  * @param group_name a group name
17105
17105
  * @param key a key name to remove
17106
17106
  * @returns %TRUE if the key was removed, %FALSE otherwise
17107
17107
  */
17108
- remove_key(group_name: string | null, key: string | null): boolean
17108
+ remove_key(group_name: string, key: string): boolean
17109
17109
  /**
17110
17110
  * Writes the contents of `key_file` to `filename` using
17111
17111
  * g_file_set_contents(). If you need stricter guarantees about durability of
@@ -17117,7 +17117,7 @@ export interface KeyFile {
17117
17117
  * @param filename the name of the file to write to
17118
17118
  * @returns %TRUE if successful, else %FALSE with @error set
17119
17119
  */
17120
- save_to_file(filename: string | null): boolean
17120
+ save_to_file(filename: string): boolean
17121
17121
  /**
17122
17122
  * Associates a new boolean value with `key` under `group_name`.
17123
17123
  * If `key` cannot be found then it is created.
@@ -17125,7 +17125,7 @@ export interface KeyFile {
17125
17125
  * @param key a key
17126
17126
  * @param value %TRUE or %FALSE
17127
17127
  */
17128
- set_boolean(group_name: string | null, key: string | null, value: boolean): void
17128
+ set_boolean(group_name: string, key: string, value: boolean): void
17129
17129
  /**
17130
17130
  * Associates a list of boolean values with `key` under `group_name`.
17131
17131
  * If `key` cannot be found then it is created.
@@ -17134,7 +17134,7 @@ export interface KeyFile {
17134
17134
  * @param key a key
17135
17135
  * @param list an array of boolean values
17136
17136
  */
17137
- set_boolean_list(group_name: string | null, key: string | null, list: boolean[]): void
17137
+ set_boolean_list(group_name: string, key: string, list: boolean[]): void
17138
17138
  /**
17139
17139
  * Places a comment above `key` from `group_name`.
17140
17140
  *
@@ -17149,7 +17149,7 @@ export interface KeyFile {
17149
17149
  * @param comment a comment
17150
17150
  * @returns %TRUE if the comment was written, %FALSE otherwise
17151
17151
  */
17152
- set_comment(group_name: string | null, key: string | null, comment: string | null): boolean
17152
+ set_comment(group_name: string | null, key: string | null, comment: string): boolean
17153
17153
  /**
17154
17154
  * Associates a new double value with `key` under `group_name`.
17155
17155
  * If `key` cannot be found then it is created.
@@ -17157,7 +17157,7 @@ export interface KeyFile {
17157
17157
  * @param key a key
17158
17158
  * @param value a double value
17159
17159
  */
17160
- set_double(group_name: string | null, key: string | null, value: number): void
17160
+ set_double(group_name: string, key: string, value: number): void
17161
17161
  /**
17162
17162
  * Associates a list of double values with `key` under
17163
17163
  * `group_name`. If `key` cannot be found then it is created.
@@ -17165,7 +17165,7 @@ export interface KeyFile {
17165
17165
  * @param key a key
17166
17166
  * @param list an array of double values
17167
17167
  */
17168
- set_double_list(group_name: string | null, key: string | null, list: number[]): void
17168
+ set_double_list(group_name: string, key: string, list: number[]): void
17169
17169
  /**
17170
17170
  * Associates a new integer value with `key` under `group_name`.
17171
17171
  * If `key` cannot be found then it is created.
@@ -17173,7 +17173,7 @@ export interface KeyFile {
17173
17173
  * @param key a key
17174
17174
  * @param value an integer value
17175
17175
  */
17176
- set_int64(group_name: string | null, key: string | null, value: number): void
17176
+ set_int64(group_name: string, key: string, value: number): void
17177
17177
  /**
17178
17178
  * Associates a new integer value with `key` under `group_name`.
17179
17179
  * If `key` cannot be found then it is created.
@@ -17181,7 +17181,7 @@ export interface KeyFile {
17181
17181
  * @param key a key
17182
17182
  * @param value an integer value
17183
17183
  */
17184
- set_integer(group_name: string | null, key: string | null, value: number): void
17184
+ set_integer(group_name: string, key: string, value: number): void
17185
17185
  /**
17186
17186
  * Associates a list of integer values with `key` under `group_name`.
17187
17187
  * If `key` cannot be found then it is created.
@@ -17189,7 +17189,7 @@ export interface KeyFile {
17189
17189
  * @param key a key
17190
17190
  * @param list an array of integer values
17191
17191
  */
17192
- set_integer_list(group_name: string | null, key: string | null, list: number[]): void
17192
+ set_integer_list(group_name: string, key: string, list: number[]): void
17193
17193
  /**
17194
17194
  * Sets the character which is used to separate
17195
17195
  * values in lists. Typically ';' or ',' are used
@@ -17205,7 +17205,7 @@ export interface KeyFile {
17205
17205
  * @param locale a locale identifier
17206
17206
  * @param string a string
17207
17207
  */
17208
- set_locale_string(group_name: string | null, key: string | null, locale: string | null, string: string | null): void
17208
+ set_locale_string(group_name: string, key: string, locale: string, string: string): void
17209
17209
  /**
17210
17210
  * Associates a list of string values for `key` and `locale` under
17211
17211
  * `group_name`. If the translation for `key` cannot be found then
@@ -17215,7 +17215,7 @@ export interface KeyFile {
17215
17215
  * @param locale a locale identifier
17216
17216
  * @param list a %NULL-terminated array of locale string values
17217
17217
  */
17218
- set_locale_string_list(group_name: string | null, key: string | null, locale: string | null, list: string[]): void
17218
+ set_locale_string_list(group_name: string, key: string, locale: string, list: string[]): void
17219
17219
  /**
17220
17220
  * Associates a new string value with `key` under `group_name`.
17221
17221
  * If `key` cannot be found then it is created.
@@ -17226,7 +17226,7 @@ export interface KeyFile {
17226
17226
  * @param key a key
17227
17227
  * @param string a string
17228
17228
  */
17229
- set_string(group_name: string | null, key: string | null, string: string | null): void
17229
+ set_string(group_name: string, key: string, string: string): void
17230
17230
  /**
17231
17231
  * Associates a list of string values for `key` under `group_name`.
17232
17232
  * If `key` cannot be found then it is created.
@@ -17235,7 +17235,7 @@ export interface KeyFile {
17235
17235
  * @param key a key
17236
17236
  * @param list an array of string values
17237
17237
  */
17238
- set_string_list(group_name: string | null, key: string | null, list: string[]): void
17238
+ set_string_list(group_name: string, key: string, list: string[]): void
17239
17239
  /**
17240
17240
  * Associates a new integer value with `key` under `group_name`.
17241
17241
  * If `key` cannot be found then it is created.
@@ -17243,7 +17243,7 @@ export interface KeyFile {
17243
17243
  * @param key a key
17244
17244
  * @param value an integer value
17245
17245
  */
17246
- set_uint64(group_name: string | null, key: string | null, value: number): void
17246
+ set_uint64(group_name: string, key: string, value: number): void
17247
17247
  /**
17248
17248
  * Associates a new value with `key` under `group_name`.
17249
17249
  *
@@ -17255,7 +17255,7 @@ export interface KeyFile {
17255
17255
  * @param key a key
17256
17256
  * @param value a string
17257
17257
  */
17258
- set_value(group_name: string | null, key: string | null, value: string | null): void
17258
+ set_value(group_name: string, key: string, value: string): void
17259
17259
  /**
17260
17260
  * This function outputs `key_file` as a string.
17261
17261
  *
@@ -17485,7 +17485,7 @@ export interface LogField {
17485
17485
  * field name (UTF-8 string)
17486
17486
  * @field
17487
17487
  */
17488
- key: string | null
17488
+ key: string
17489
17489
  /**
17490
17490
  * field value (arbitrary bytes)
17491
17491
  * @field
@@ -18089,7 +18089,7 @@ export interface MarkupParseContext {
18089
18089
  * elements, see g_markup_parse_context_get_element_stack().
18090
18090
  * @returns the name of the currently open element, or %NULL
18091
18091
  */
18092
- get_element(): string | null
18092
+ get_element(): string
18093
18093
  /**
18094
18094
  * Retrieves the current line number and the number of the character on
18095
18095
  * that line. Intended for use in error messages; there are no strict
@@ -18121,7 +18121,7 @@ export interface MarkupParseContext {
18121
18121
  * @param text_len length of `text` in bytes
18122
18122
  * @returns %FALSE if an error occurred, %TRUE on success
18123
18123
  */
18124
- parse(text: string | null, text_len: number): boolean
18124
+ parse(text: string, text_len: number): boolean
18125
18125
  /**
18126
18126
  * Completes the process of a temporary sub-parser redirection.
18127
18127
  *
@@ -18326,10 +18326,10 @@ export interface MarkupParser {
18326
18326
 
18327
18327
  // Own fields of GLib-2.0.GLib.MarkupParser
18328
18328
 
18329
- start_element: (context: MarkupParseContext, element_name: string | null, attribute_names: string | null, attribute_values: string | null) => void
18330
- end_element: (context: MarkupParseContext, element_name: string | null) => void
18331
- text: (context: MarkupParseContext, text: string | null, text_len: number) => void
18332
- passthrough: (context: MarkupParseContext, passthrough_text: string | null, text_len: number) => void
18329
+ start_element: (context: MarkupParseContext, element_name: string, attribute_names: string, attribute_values: string) => void
18330
+ end_element: (context: MarkupParseContext, element_name: string) => void
18331
+ text: (context: MarkupParseContext, text: string, text_len: number) => void
18332
+ passthrough: (context: MarkupParseContext, passthrough_text: string, text_len: number) => void
18333
18333
  error: (context: MarkupParseContext, error: Error) => void
18334
18334
  }
18335
18335
 
@@ -18375,7 +18375,7 @@ export interface MatchInfo {
18375
18375
  * @param string_to_expand the string to expand
18376
18376
  * @returns the expanded string, or %NULL if an error occurred
18377
18377
  */
18378
- expand_references(string_to_expand: string | null): string | null
18378
+ expand_references(string_to_expand: string): string | null
18379
18379
  /**
18380
18380
  * Retrieves the text matching the `match_num'`th capturing
18381
18381
  * parentheses. 0 is the full text of the match, 1 is the first paren
@@ -18429,7 +18429,7 @@ export interface MatchInfo {
18429
18429
  * @param name name of the subexpression
18430
18430
  * @returns The matched substring, or %NULL if an error occurred. You have to free the string yourself
18431
18431
  */
18432
- fetch_named(name: string | null): string | null
18432
+ fetch_named(name: string): string | null
18433
18433
  /**
18434
18434
  * Retrieves the position in bytes of the capturing parentheses named `name`.
18435
18435
  *
@@ -18439,7 +18439,7 @@ export interface MatchInfo {
18439
18439
  * @param name name of the subexpression
18440
18440
  * @returns %TRUE if the position was fetched, %FALSE otherwise. If the position cannot be fetched, @start_pos and @end_pos are left unchanged.
18441
18441
  */
18442
- fetch_named_pos(name: string | null): [ /* returnType */ boolean, /* start_pos */ number, /* end_pos */ number ]
18442
+ fetch_named_pos(name: string): [ /* returnType */ boolean, /* start_pos */ number, /* end_pos */ number ]
18443
18443
  /**
18444
18444
  * Retrieves the position in bytes of the `match_num'`th capturing
18445
18445
  * parentheses. 0 is the full text of the match, 1 is the first
@@ -18488,7 +18488,7 @@ export interface MatchInfo {
18488
18488
  * you may not free it before calling this function.
18489
18489
  * @returns the string searched with @match_info
18490
18490
  */
18491
- get_string(): string | null
18491
+ get_string(): string
18492
18492
  /**
18493
18493
  * Usually if the string passed to g_regex_match*() matches as far as
18494
18494
  * it goes, but is too short to match the entire pattern, %FALSE is
@@ -18814,7 +18814,7 @@ export interface OptionContext {
18814
18814
  * Returns the description. See g_option_context_set_description().
18815
18815
  * @returns the description
18816
18816
  */
18817
- get_description(): string | null
18817
+ get_description(): string
18818
18818
  /**
18819
18819
  * Returns a formatted, translated help text for the given context.
18820
18820
  * To obtain the text produced by `--help`, call
@@ -18856,7 +18856,7 @@ export interface OptionContext {
18856
18856
  * Returns the summary. See g_option_context_set_summary().
18857
18857
  * @returns the summary
18858
18858
  */
18859
- get_summary(): string | null
18859
+ get_summary(): string
18860
18860
  /**
18861
18861
  * Parses the command line arguments, recognizing options
18862
18862
  * which have been added to `context`. A side-effect of
@@ -18998,7 +18998,7 @@ export interface OptionContext {
18998
18998
  * user-visible strings.
18999
18999
  * @param domain the domain to use
19000
19000
  */
19001
- set_translation_domain(domain: string | null): void
19001
+ set_translation_domain(domain: string): void
19002
19002
  }
19003
19003
 
19004
19004
  /**
@@ -19182,7 +19182,7 @@ export interface OptionEntry {
19182
19182
  * `--groupname-long_name`.
19183
19183
  * @field
19184
19184
  */
19185
- long_name: string | null
19185
+ long_name: string
19186
19186
  /**
19187
19187
  * If an option has a short name, it can be specified
19188
19188
  * `-short_name` in a commandline. `short_name` must be a printable
@@ -19228,7 +19228,7 @@ export interface OptionEntry {
19228
19228
  * of the group, see g_option_group_set_translation_domain().
19229
19229
  * @field
19230
19230
  */
19231
- description: string | null
19231
+ description: string
19232
19232
  /**
19233
19233
  * The placeholder to use for the extra argument parsed
19234
19234
  * by the option in `--help` output. The `arg_description` is translated
@@ -19236,7 +19236,7 @@ export interface OptionEntry {
19236
19236
  * g_option_group_set_translation_domain().
19237
19237
  * @field
19238
19238
  */
19239
- arg_description: string | null
19239
+ arg_description: string
19240
19240
  }
19241
19241
 
19242
19242
  /**
@@ -19286,7 +19286,7 @@ export interface OptionGroup {
19286
19286
  * user-visible strings.
19287
19287
  * @param domain the domain to use
19288
19288
  */
19289
- set_translation_domain(domain: string | null): void
19289
+ set_translation_domain(domain: string): void
19290
19290
  /**
19291
19291
  * Decrements the reference count of `group` by one.
19292
19292
  * If the reference count drops to 0, the `group` will be freed.
@@ -19328,7 +19328,7 @@ export class OptionGroup {
19328
19328
  * @param destroy a function that will be called to free `user_data,` or %NULL
19329
19329
  * @returns a newly created option group. It should be added to a #GOptionContext or freed with g_option_group_unref().
19330
19330
  */
19331
- constructor(name: string | null, description: string | null, help_description: string | null, user_data: any | null, destroy: DestroyNotify | null)
19331
+ constructor(name: string, description: string, help_description: string, user_data: any | null, destroy: DestroyNotify | null)
19332
19332
  /**
19333
19333
  * Creates a new #GOptionGroup.
19334
19334
  *
@@ -19344,7 +19344,7 @@ export class OptionGroup {
19344
19344
  * @param destroy a function that will be called to free `user_data,` or %NULL
19345
19345
  * @returns a newly created option group. It should be added to a #GOptionContext or freed with g_option_group_unref().
19346
19346
  */
19347
- static new(name: string | null, description: string | null, help_description: string | null, user_data: any | null, destroy: DestroyNotify | null): OptionGroup
19347
+ static new(name: string, description: string, help_description: string, user_data: any | null, destroy: DestroyNotify | null): OptionGroup
19348
19348
  }
19349
19349
 
19350
19350
  export interface PathBuf {
@@ -19623,7 +19623,7 @@ export interface PatternSpec {
19623
19623
  * @param string_reversed the reverse of `string` or %NULL
19624
19624
  * @returns %TRUE if @string matches @pspec
19625
19625
  */
19626
- match(string_length: number, string: string | null, string_reversed: string | null): boolean
19626
+ match(string_length: number, string: string, string_reversed: string | null): boolean
19627
19627
  /**
19628
19628
  * Matches a string against a compiled pattern. If the string is to be
19629
19629
  * matched against more than one pattern, consider using
@@ -19631,7 +19631,7 @@ export interface PatternSpec {
19631
19631
  * @param string the UTF-8 encoded string to match
19632
19632
  * @returns %TRUE if @string matches @pspec
19633
19633
  */
19634
- match_string(string: string | null): boolean
19634
+ match_string(string: string): boolean
19635
19635
  }
19636
19636
 
19637
19637
  /**
@@ -19653,14 +19653,14 @@ export class PatternSpec {
19653
19653
  * @param pattern a zero-terminated UTF-8 encoded string
19654
19654
  * @returns a newly-allocated #GPatternSpec
19655
19655
  */
19656
- constructor(pattern: string | null)
19656
+ constructor(pattern: string)
19657
19657
  /**
19658
19658
  * Compiles a pattern to a #GPatternSpec.
19659
19659
  * @constructor
19660
19660
  * @param pattern a zero-terminated UTF-8 encoded string
19661
19661
  * @returns a newly-allocated #GPatternSpec
19662
19662
  */
19663
- static new(pattern: string | null): PatternSpec
19663
+ static new(pattern: string): PatternSpec
19664
19664
  }
19665
19665
 
19666
19666
  export interface PollFD {
@@ -20324,13 +20324,13 @@ export interface Regex {
20324
20324
  * the string passed to g_regex_new().
20325
20325
  * @returns the pattern of @regex
20326
20326
  */
20327
- get_pattern(): string | null
20327
+ get_pattern(): string
20328
20328
  /**
20329
20329
  * Retrieves the number of the subexpression named `name`.
20330
20330
  * @param name name of the subexpression
20331
20331
  * @returns The number of the subexpression or -1 if @name does not exists
20332
20332
  */
20333
- get_string_number(name: string | null): number
20333
+ get_string_number(name: string): number
20334
20334
  /**
20335
20335
  * Scans for a match in `string` for the pattern in `regex`.
20336
20336
  * The `match_options` are combined with the match options specified
@@ -20378,7 +20378,7 @@ export interface Regex {
20378
20378
  * @param match_options match options
20379
20379
  * @returns %TRUE is the string matched, %FALSE otherwise
20380
20380
  */
20381
- match(string: string | null, match_options: RegexMatchFlags): [ /* returnType */ boolean, /* match_info */ MatchInfo ]
20381
+ match(string: string, match_options: RegexMatchFlags): [ /* returnType */ boolean, /* match_info */ MatchInfo ]
20382
20382
  /**
20383
20383
  * Using the standard algorithm for regular expression matching only
20384
20384
  * the longest match in the string is retrieved. This function uses
@@ -20398,7 +20398,7 @@ export interface Regex {
20398
20398
  * @param match_options match options
20399
20399
  * @returns %TRUE is the string matched, %FALSE otherwise
20400
20400
  */
20401
- match_all(string: string | null, match_options: RegexMatchFlags): [ /* returnType */ boolean, /* match_info */ MatchInfo ]
20401
+ match_all(string: string, match_options: RegexMatchFlags): [ /* returnType */ boolean, /* match_info */ MatchInfo ]
20402
20402
  /**
20403
20403
  * Using the standard algorithm for regular expression matching only
20404
20404
  * the longest match in the `string` is retrieved, it is not possible
@@ -20542,7 +20542,7 @@ export interface Regex {
20542
20542
  * @param match_options options for the match
20543
20543
  * @returns a newly allocated string containing the replacements
20544
20544
  */
20545
- replace(string: string[], start_position: number, replacement: string | null, match_options: RegexMatchFlags): string | null
20545
+ replace(string: string[], start_position: number, replacement: string, match_options: RegexMatchFlags): string | null
20546
20546
  /**
20547
20547
  * Replaces all occurrences of the pattern in `regex` with the
20548
20548
  * replacement text. `replacement` is replaced literally, to
@@ -20558,7 +20558,7 @@ export interface Regex {
20558
20558
  * @param match_options options for the match
20559
20559
  * @returns a newly allocated string containing the replacements
20560
20560
  */
20561
- replace_literal(string: string[], start_position: number, replacement: string | null, match_options: RegexMatchFlags): string | null
20561
+ replace_literal(string: string[], start_position: number, replacement: string, match_options: RegexMatchFlags): string | null
20562
20562
  /**
20563
20563
  * Breaks the string on the pattern, and returns an array of the tokens.
20564
20564
  * If the pattern contains capturing parentheses, then the text for each
@@ -20581,7 +20581,7 @@ export interface Regex {
20581
20581
  * @param match_options match time option flags
20582
20582
  * @returns a %NULL-terminated gchar ** array. Free it using g_strfreev()
20583
20583
  */
20584
- split(string: string | null, match_options: RegexMatchFlags): string[]
20584
+ split(string: string, match_options: RegexMatchFlags): string[]
20585
20585
  /**
20586
20586
  * Breaks the string on the pattern, and returns an array of the tokens.
20587
20587
  * If the pattern contains capturing parentheses, then the text for each
@@ -20691,7 +20691,7 @@ export class Regex {
20691
20691
  * @param match_options match options for the regular expression, or 0
20692
20692
  * @returns a #GRegex structure or %NULL if an error occurred. Call g_regex_unref() when you are done with it
20693
20693
  */
20694
- constructor(pattern: string | null, compile_options: RegexCompileFlags, match_options: RegexMatchFlags)
20694
+ constructor(pattern: string, compile_options: RegexCompileFlags, match_options: RegexMatchFlags)
20695
20695
  /**
20696
20696
  * Compiles the regular expression to an internal form, and does
20697
20697
  * the initial setup of the #GRegex structure.
@@ -20701,7 +20701,7 @@ export class Regex {
20701
20701
  * @param match_options match options for the regular expression, or 0
20702
20702
  * @returns a #GRegex structure or %NULL if an error occurred. Call g_regex_unref() when you are done with it
20703
20703
  */
20704
- static new(pattern: string | null, compile_options: RegexCompileFlags, match_options: RegexMatchFlags): Regex
20704
+ static new(pattern: string, compile_options: RegexCompileFlags, match_options: RegexMatchFlags): Regex
20705
20705
  /**
20706
20706
  * Checks whether `replacement` is a valid replacement string
20707
20707
  * (see g_regex_replace()), i.e. that all escape sequences in
@@ -20715,7 +20715,7 @@ export class Regex {
20715
20715
  * @param replacement the replacement string
20716
20716
  * @returns whether @replacement is a valid replacement string
20717
20717
  */
20718
- static check_replacement(replacement: string | null): [ /* returnType */ boolean, /* has_references */ boolean ]
20718
+ static check_replacement(replacement: string): [ /* returnType */ boolean, /* has_references */ boolean ]
20719
20719
  static error_quark(): Quark
20720
20720
  /**
20721
20721
  * Escapes the nul characters in `string` to "\x00". It can be used
@@ -20727,7 +20727,7 @@ export class Regex {
20727
20727
  * @param length the length of `string`
20728
20728
  * @returns a newly-allocated escaped string
20729
20729
  */
20730
- static escape_nul(string: string | null, length: number): string | null
20730
+ static escape_nul(string: string, length: number): string | null
20731
20731
  /**
20732
20732
  * Escapes the special characters used for regular expressions
20733
20733
  * in `string,` for instance "a.b*c" becomes "a\.b\*c". This
@@ -20740,7 +20740,7 @@ export class Regex {
20740
20740
  * @param length the length of `string,` in bytes, or -1 if `string` is nul-terminated
20741
20741
  * @returns a newly-allocated escaped string
20742
20742
  */
20743
- static escape_string(string: string | null, length: number): string | null
20743
+ static escape_string(string: string, length: number): string | null
20744
20744
  /**
20745
20745
  * Scans for a match in `string` for `pattern`.
20746
20746
  *
@@ -20758,7 +20758,7 @@ export class Regex {
20758
20758
  * @param match_options match options, or 0
20759
20759
  * @returns %TRUE if the string matched, %FALSE otherwise
20760
20760
  */
20761
- static match_simple(pattern: string | null, string: string | null, compile_options: RegexCompileFlags, match_options: RegexMatchFlags): boolean
20761
+ static match_simple(pattern: string, string: string, compile_options: RegexCompileFlags, match_options: RegexMatchFlags): boolean
20762
20762
  /**
20763
20763
  * Breaks the string on the pattern, and returns an array of
20764
20764
  * the tokens. If the pattern contains capturing parentheses,
@@ -20793,7 +20793,7 @@ export class Regex {
20793
20793
  * @param match_options match options, or 0
20794
20794
  * @returns a %NULL-terminated array of strings. Free it using g_strfreev()
20795
20795
  */
20796
- static split_simple(pattern: string | null, string: string | null, compile_options: RegexCompileFlags, match_options: RegexMatchFlags): string[]
20796
+ static split_simple(pattern: string, string: string, compile_options: RegexCompileFlags, match_options: RegexMatchFlags): string[]
20797
20797
  }
20798
20798
 
20799
20799
  export interface SList {
@@ -20849,7 +20849,7 @@ export interface Scanner {
20849
20849
  * name of input stream, featured by the default message handler
20850
20850
  * @field
20851
20851
  */
20852
- input_name: string | null
20852
+ input_name: string
20853
20853
  /**
20854
20854
  * quarked data
20855
20855
  * @field
@@ -20956,7 +20956,7 @@ export interface Scanner {
20956
20956
  * @param text the text buffer to scan
20957
20957
  * @param text_len the length of the text buffer
20958
20958
  */
20959
- input_text(text: string | null, text_len: number): void
20959
+ input_text(text: string, text_len: number): void
20960
20960
  /**
20961
20961
  * Looks up a symbol in the current scope and return its value.
20962
20962
  * If the symbol is not bound in the current scope, %NULL is
@@ -20964,7 +20964,7 @@ export interface Scanner {
20964
20964
  * @param symbol the symbol to look up
20965
20965
  * @returns the value of @symbol in the current scope, or %NULL if @symbol is not bound in the current scope
20966
20966
  */
20967
- lookup_symbol(symbol: string | null): any | null
20967
+ lookup_symbol(symbol: string): any | null
20968
20968
  /**
20969
20969
  * Parses the next token, without removing it from the input stream.
20970
20970
  * The token data is placed in the `next_token,` `next_value,` `next_line,`
@@ -20986,7 +20986,7 @@ export interface Scanner {
20986
20986
  * @param symbol the symbol to add
20987
20987
  * @param value the value of the symbol
20988
20988
  */
20989
- scope_add_symbol(scope_id: number, symbol: string | null, value: any | null): void
20989
+ scope_add_symbol(scope_id: number, symbol: string, value: any | null): void
20990
20990
  /**
20991
20991
  * Looks up a symbol in a scope and return its value. If the
20992
20992
  * symbol is not bound in the scope, %NULL is returned.
@@ -20994,13 +20994,13 @@ export interface Scanner {
20994
20994
  * @param symbol the symbol to look up
20995
20995
  * @returns the value of @symbol in the given scope, or %NULL if @symbol is not bound in the given scope.
20996
20996
  */
20997
- scope_lookup_symbol(scope_id: number, symbol: string | null): any | null
20997
+ scope_lookup_symbol(scope_id: number, symbol: string): any | null
20998
20998
  /**
20999
20999
  * Removes a symbol from a scope.
21000
21000
  * @param scope_id the scope id
21001
21001
  * @param symbol the symbol to remove
21002
21002
  */
21003
- scope_remove_symbol(scope_id: number, symbol: string | null): void
21003
+ scope_remove_symbol(scope_id: number, symbol: string): void
21004
21004
  /**
21005
21005
  * Sets the current scope.
21006
21006
  * @param scope_id the new scope id
@@ -21029,7 +21029,7 @@ export interface Scanner {
21029
21029
  * @param message a message string to output at the end of the warning/error, or %NULL.
21030
21030
  * @param is_error if %TRUE it is output as an error. If %FALSE it is output as a warning.
21031
21031
  */
21032
- unexp_token(expected_token: TokenType, identifier_spec: string | null, symbol_spec: string | null, symbol_name: string | null, message: string | null, is_error: number): void
21032
+ unexp_token(expected_token: TokenType, identifier_spec: string, symbol_spec: string, symbol_name: string, message: string, is_error: number): void
21033
21033
  }
21034
21034
 
21035
21035
  /**
@@ -21838,7 +21838,7 @@ export interface Source {
21838
21838
  * Also see g_source_set_static_name().
21839
21839
  * @param name debug name for the source
21840
21840
  */
21841
- set_name(name: string | null): void
21841
+ set_name(name: string): void
21842
21842
  /**
21843
21843
  * Sets the priority of a source. While the main loop is being run, a
21844
21844
  * source will be dispatched if it is ready to be dispatched and no
@@ -21883,7 +21883,7 @@ export interface Source {
21883
21883
  * string literals.
21884
21884
  * @param name debug name for the source
21885
21885
  */
21886
- set_static_name(name: string | null): void
21886
+ set_static_name(name: string): void
21887
21887
  /**
21888
21888
  * Decreases the reference count of a source by one. If the
21889
21889
  * resulting reference count is zero the source and associated
@@ -21996,7 +21996,7 @@ export class Source {
21996
21996
  * @param tag a #GSource ID
21997
21997
  * @param name debug name for the source
21998
21998
  */
21999
- static set_name_by_id(tag: number, name: string | null): void
21999
+ static set_name_by_id(tag: number, name: string): void
22000
22000
  }
22001
22001
 
22002
22002
  export interface SourceCallbackFuncs {
@@ -22117,7 +22117,7 @@ export interface String {
22117
22117
  * @param val the string to append onto the end of `string`
22118
22118
  * @returns @string
22119
22119
  */
22120
- append(val: string | null): String
22120
+ append(val: string): String
22121
22121
  /**
22122
22122
  * Adds a byte onto the end of a #GString, expanding
22123
22123
  * it if necessary.
@@ -22139,7 +22139,7 @@ export interface String {
22139
22139
  * @param len number of bytes of `val` to use, or -1 for all of `val`
22140
22140
  * @returns @string
22141
22141
  */
22142
- append_len(val: string | null, len: number): String
22142
+ append_len(val: string, len: number): String
22143
22143
  /**
22144
22144
  * Converts a Unicode character into UTF-8, and appends it
22145
22145
  * to the string.
@@ -22155,7 +22155,7 @@ export interface String {
22155
22155
  * @param allow_utf8 set %TRUE if the escaped string may include UTF8 characters
22156
22156
  * @returns @string
22157
22157
  */
22158
- append_uri_escaped(unescaped: string | null, reserved_chars_allowed: string | null, allow_utf8: boolean): String
22158
+ append_uri_escaped(unescaped: string, reserved_chars_allowed: string, allow_utf8: boolean): String
22159
22159
  /**
22160
22160
  * Converts all uppercase ASCII letters to lowercase ASCII letters.
22161
22161
  * @returns passed-in @string pointer, with all the uppercase characters converted to lowercase in place, with semantics that exactly match g_ascii_tolower().
@@ -22174,7 +22174,7 @@ export interface String {
22174
22174
  * @param rval the string to copy into `string`
22175
22175
  * @returns @string
22176
22176
  */
22177
- assign(rval: string | null): String
22177
+ assign(rval: string): String
22178
22178
  /**
22179
22179
  * Converts a #GString to lowercase.
22180
22180
  * @returns the #GString
@@ -22239,7 +22239,7 @@ export interface String {
22239
22239
  * @param val the string to insert
22240
22240
  * @returns @string
22241
22241
  */
22242
- insert(pos: number, val: string | null): String
22242
+ insert(pos: number, val: string): String
22243
22243
  /**
22244
22244
  * Inserts a byte into a #GString, expanding it if necessary.
22245
22245
  * @param pos the position to insert the byte
@@ -22263,7 +22263,7 @@ export interface String {
22263
22263
  * @param len number of bytes of `val` to insert, or -1 for all of `val`
22264
22264
  * @returns @string
22265
22265
  */
22266
- insert_len(pos: number, val: string | null, len: number): String
22266
+ insert_len(pos: number, val: string, len: number): String
22267
22267
  /**
22268
22268
  * Converts a Unicode character into UTF-8, and insert it
22269
22269
  * into the string at the given position.
@@ -22278,7 +22278,7 @@ export interface String {
22278
22278
  * @param val the string that will overwrite the `string` starting at `pos`
22279
22279
  * @returns @string
22280
22280
  */
22281
- overwrite(pos: number, val: string | null): String
22281
+ overwrite(pos: number, val: string): String
22282
22282
  /**
22283
22283
  * Overwrites part of a string, lengthening it if necessary.
22284
22284
  * This function will work with embedded nuls.
@@ -22287,14 +22287,14 @@ export interface String {
22287
22287
  * @param len the number of bytes to write from `val`
22288
22288
  * @returns @string
22289
22289
  */
22290
- overwrite_len(pos: number, val: string | null, len: number): String
22290
+ overwrite_len(pos: number, val: string, len: number): String
22291
22291
  /**
22292
22292
  * Adds a string on to the start of a #GString,
22293
22293
  * expanding it if necessary.
22294
22294
  * @param val the string to prepend on the start of `string`
22295
22295
  * @returns @string
22296
22296
  */
22297
- prepend(val: string | null): String
22297
+ prepend(val: string): String
22298
22298
  /**
22299
22299
  * Adds a byte onto the start of a #GString,
22300
22300
  * expanding it if necessary.
@@ -22316,7 +22316,7 @@ export interface String {
22316
22316
  * @param len number of bytes in `val` to prepend, or -1 for all of `val`
22317
22317
  * @returns @string
22318
22318
  */
22319
- prepend_len(val: string | null, len: number): String
22319
+ prepend_len(val: string, len: number): String
22320
22320
  /**
22321
22321
  * Converts a Unicode character into UTF-8, and prepends it
22322
22322
  * to the string.
@@ -22339,7 +22339,7 @@ export interface String {
22339
22339
  * @param limit the maximum instances of `find` to replace with `replace,` or `0` for no limit
22340
22340
  * @returns the number of find and replace operations performed.
22341
22341
  */
22342
- replace(find: string | null, replace: string | null, limit: number): number
22342
+ replace(find: string, replace: string, limit: number): number
22343
22343
  /**
22344
22344
  * Sets the length of a #GString. If the length is less than
22345
22345
  * the current length, the string will be truncated. If the
@@ -22402,7 +22402,7 @@ export class String {
22402
22402
  * @param len length of `init` to use
22403
22403
  * @returns a new #GString
22404
22404
  */
22405
- static new_len(init: string | null, len: number): String
22405
+ static new_len(init: string, len: number): String
22406
22406
  /**
22407
22407
  * Creates a new #GString, initialized with the given string.
22408
22408
  *
@@ -22457,7 +22457,7 @@ export interface StringChunk {
22457
22457
  * @param string the string to add
22458
22458
  * @returns a pointer to the copy of @string within the #GStringChunk
22459
22459
  */
22460
- insert(string: string | null): string | null
22460
+ insert(string: string): string | null
22461
22461
  /**
22462
22462
  * Adds a copy of `string` to the #GStringChunk, unless the same
22463
22463
  * string has already been added to the #GStringChunk with
@@ -22475,7 +22475,7 @@ export interface StringChunk {
22475
22475
  * @param string the string to add
22476
22476
  * @returns a pointer to the new or existing copy of @string within the #GStringChunk
22477
22477
  */
22478
- insert_const(string: string | null): string | null
22478
+ insert_const(string: string): string | null
22479
22479
  /**
22480
22480
  * Adds a copy of the first `len` bytes of `string` to the #GStringChunk.
22481
22481
  * The copy is nul-terminated.
@@ -22490,7 +22490,7 @@ export interface StringChunk {
22490
22490
  * @param len number of bytes of `string` to insert, or -1 to insert a nul-terminated string
22491
22491
  * @returns a pointer to the copy of @string within the #GStringChunk
22492
22492
  */
22493
- insert_len(string: string | null, len: number): string | null
22493
+ insert_len(string: string, len: number): string | null
22494
22494
  }
22495
22495
 
22496
22496
  /**
@@ -22515,7 +22515,7 @@ export interface StrvBuilder {
22515
22515
  * Since 2.68
22516
22516
  * @param value a string.
22517
22517
  */
22518
- add(value: string | null): void
22518
+ add(value: string): void
22519
22519
  /**
22520
22520
  * Appends all the strings in the given vector to the builder.
22521
22521
  *
@@ -23146,7 +23146,7 @@ export class TimeVal {
23146
23146
  * @param iso_date an ISO 8601 encoded date string
23147
23147
  * @returns %TRUE if the conversion was successful.
23148
23148
  */
23149
- static from_iso8601(iso_date: string | null): [ /* returnType */ boolean, /* time_ */ TimeVal ]
23149
+ static from_iso8601(iso_date: string): [ /* returnType */ boolean, /* time_ */ TimeVal ]
23150
23150
  }
23151
23151
 
23152
23152
  export interface TimeZone {
@@ -23209,7 +23209,7 @@ export interface TimeZone {
23209
23209
  * @param interval an interval within the timezone
23210
23210
  * @returns the time zone abbreviation, which belongs to @tz
23211
23211
  */
23212
- get_abbreviation(interval: number): string | null
23212
+ get_abbreviation(interval: number): string
23213
23213
  /**
23214
23214
  * Get the identifier of this #GTimeZone, as passed to g_time_zone_new().
23215
23215
  * If the identifier passed at construction time was not recognised, `UTC` will
@@ -23221,7 +23221,7 @@ export interface TimeZone {
23221
23221
  * this function.
23222
23222
  * @returns identifier for this timezone
23223
23223
  */
23224
- get_identifier(): string | null
23224
+ get_identifier(): string
23225
23225
  /**
23226
23226
  * Determines the offset to UTC in effect during a particular `interval`
23227
23227
  * of time in the time zone `tz`.
@@ -23817,7 +23817,7 @@ export interface Uri {
23817
23817
  * flags with which `uri` was created.
23818
23818
  * @returns @uri's path.
23819
23819
  */
23820
- get_path(): string | null
23820
+ get_path(): string
23821
23821
  /**
23822
23822
  * Gets `uri'`s port.
23823
23823
  * @returns @uri's port, or `-1` if no port was specified.
@@ -23837,7 +23837,7 @@ export interface Uri {
23837
23837
  * regardless of the string or strings that `uri` was created from.
23838
23838
  * @returns @uri's scheme.
23839
23839
  */
23840
- get_scheme(): string | null
23840
+ get_scheme(): string
23841
23841
  /**
23842
23842
  * Gets the ‘username’ component of `uri'`s userinfo, which may contain
23843
23843
  * `%`-encoding, depending on the flags with which `uri` was created.
@@ -23861,7 +23861,7 @@ export interface Uri {
23861
23861
  * @param flags flags describing how to parse `uri_ref`
23862
23862
  * @returns a new #GUri, or NULL on error.
23863
23863
  */
23864
- parse_relative(uri_ref: string | null, flags: UriFlags): Uri
23864
+ parse_relative(uri_ref: string, flags: UriFlags): Uri
23865
23865
  /**
23866
23866
  * Returns a string representing `uri`.
23867
23867
  *
@@ -24021,7 +24021,7 @@ export class Uri {
24021
24021
  * @param fragment the fragment, or %NULL
24022
24022
  * @returns a new #GUri
24023
24023
  */
24024
- static build(flags: UriFlags, scheme: string | null, userinfo: string | null, host: string | null, port: number, path: string | null, query: string | null, fragment: string | null): Uri
24024
+ static build(flags: UriFlags, scheme: string, userinfo: string | null, host: string | null, port: number, path: string, query: string | null, fragment: string | null): Uri
24025
24025
  /**
24026
24026
  * Creates a new #GUri from the given components according to `flags`
24027
24027
  * (%G_URI_FLAGS_HAS_PASSWORD is added unconditionally). The `flags` must be
@@ -24043,7 +24043,7 @@ export class Uri {
24043
24043
  * @param fragment the fragment, or %NULL
24044
24044
  * @returns a new #GUri
24045
24045
  */
24046
- static build_with_user(flags: UriFlags, scheme: string | null, user: string | null, password: string | null, auth_params: string | null, host: string | null, port: number, path: string | null, query: string | null, fragment: string | null): Uri
24046
+ static build_with_user(flags: UriFlags, scheme: string, user: string | null, password: string | null, auth_params: string | null, host: string | null, port: number, path: string, query: string | null, fragment: string | null): Uri
24047
24047
  static error_quark(): Quark
24048
24048
  /**
24049
24049
  * Escapes arbitrary data for use in a URI.
@@ -24076,7 +24076,7 @@ export class Uri {
24076
24076
  * @param allow_utf8 %TRUE if the result can include UTF-8 characters.
24077
24077
  * @returns an escaped version of @unescaped. The returned string should be freed when no longer needed.
24078
24078
  */
24079
- static escape_string(unescaped: string | null, reserved_chars_allowed: string | null, allow_utf8: boolean): string | null
24079
+ static escape_string(unescaped: string, reserved_chars_allowed: string | null, allow_utf8: boolean): string | null
24080
24080
  /**
24081
24081
  * Parses `uri_string` according to `flags,` to determine whether it is a valid
24082
24082
  * [absolute URI][relative-absolute-uris], i.e. it does not need to be resolved
@@ -24090,7 +24090,7 @@ export class Uri {
24090
24090
  * @param flags flags for parsing `uri_string`
24091
24091
  * @returns %TRUE if @uri_string is a valid absolute URI, %FALSE on error.
24092
24092
  */
24093
- static is_valid(uri_string: string | null, flags: UriFlags): boolean
24093
+ static is_valid(uri_string: string, flags: UriFlags): boolean
24094
24094
  /**
24095
24095
  * Joins the given components together according to `flags` to create
24096
24096
  * an absolute URI string. `path` may not be %NULL (though it may be the empty
@@ -24116,7 +24116,7 @@ export class Uri {
24116
24116
  * @param fragment the fragment, or %NULL
24117
24117
  * @returns an absolute URI string
24118
24118
  */
24119
- static join(flags: UriFlags, scheme: string | null, userinfo: string | null, host: string | null, port: number, path: string | null, query: string | null, fragment: string | null): string | null
24119
+ static join(flags: UriFlags, scheme: string | null, userinfo: string | null, host: string | null, port: number, path: string, query: string | null, fragment: string | null): string | null
24120
24120
  /**
24121
24121
  * Joins the given components together according to `flags` to create
24122
24122
  * an absolute URI string. `path` may not be %NULL (though it may be the empty
@@ -24139,7 +24139,7 @@ export class Uri {
24139
24139
  * @param fragment the fragment, or %NULL
24140
24140
  * @returns an absolute URI string
24141
24141
  */
24142
- static join_with_user(flags: UriFlags, scheme: string | null, user: string | null, password: string | null, auth_params: string | null, host: string | null, port: number, path: string | null, query: string | null, fragment: string | null): string | null
24142
+ static join_with_user(flags: UriFlags, scheme: string | null, user: string | null, password: string | null, auth_params: string | null, host: string | null, port: number, path: string, query: string | null, fragment: string | null): string | null
24143
24143
  /**
24144
24144
  * Splits an URI list conforming to the text/uri-list
24145
24145
  * mime type defined in RFC 2483 into individual URIs,
@@ -24147,7 +24147,7 @@ export class Uri {
24147
24147
  * @param uri_list an URI list
24148
24148
  * @returns a newly allocated %NULL-terminated list of strings holding the individual URIs. The array should be freed with g_strfreev().
24149
24149
  */
24150
- static list_extract_uris(uri_list: string | null): string[]
24150
+ static list_extract_uris(uri_list: string): string[]
24151
24151
  /**
24152
24152
  * Parses `uri_string` according to `flags`. If the result is not a
24153
24153
  * valid [absolute URI][relative-absolute-uris], it will be discarded, and an
@@ -24156,7 +24156,7 @@ export class Uri {
24156
24156
  * @param flags flags describing how to parse `uri_string`
24157
24157
  * @returns a new #GUri, or NULL on error.
24158
24158
  */
24159
- static parse(uri_string: string | null, flags: UriFlags): Uri
24159
+ static parse(uri_string: string, flags: UriFlags): Uri
24160
24160
  /**
24161
24161
  * Many URI schemes include one or more attribute/value pairs as part of the URI
24162
24162
  * value. This method can be used to parse them into a hash table. When an
@@ -24188,7 +24188,7 @@ export class Uri {
24188
24188
  * @param flags flags to modify the way the parameters are handled.
24189
24189
  * @returns A hash table of attribute/value pairs, with both names and values fully-decoded; or %NULL on error.
24190
24190
  */
24191
- static parse_params(params: string | null, length: number, separators: string | null, flags: UriParamsFlags): HashTable
24191
+ static parse_params(params: string, length: number, separators: string, flags: UriParamsFlags): HashTable
24192
24192
  /**
24193
24193
  * Gets the scheme portion of a URI string.
24194
24194
  * [RFC 3986](https://tools.ietf.org/html/rfc3986#section-3) decodes the scheme
@@ -24202,7 +24202,7 @@ export class Uri {
24202
24202
  * @param uri a valid URI.
24203
24203
  * @returns The ‘scheme’ component of the URI, or %NULL on error. The returned string should be freed when no longer needed.
24204
24204
  */
24205
- static parse_scheme(uri: string | null): string | null
24205
+ static parse_scheme(uri: string): string | null
24206
24206
  /**
24207
24207
  * Gets the scheme portion of a URI string.
24208
24208
  * [RFC 3986](https://tools.ietf.org/html/rfc3986#section-3) decodes the scheme
@@ -24219,7 +24219,7 @@ export class Uri {
24219
24219
  * @param uri a valid URI.
24220
24220
  * @returns The ‘scheme’ component of the URI, or %NULL on error. The returned string is normalized to all-lowercase, and interned via g_intern_string(), so it does not need to be freed.
24221
24221
  */
24222
- static peek_scheme(uri: string | null): string | null
24222
+ static peek_scheme(uri: string): string | null
24223
24223
  /**
24224
24224
  * Parses `uri_ref` according to `flags` and, if it is a
24225
24225
  * [relative URI][relative-absolute-uris], resolves it relative to
@@ -24233,7 +24233,7 @@ export class Uri {
24233
24233
  * @param flags flags describing how to parse `uri_ref`
24234
24234
  * @returns the resolved URI string, or NULL on error.
24235
24235
  */
24236
- static resolve_relative(base_uri_string: string | null, uri_ref: string | null, flags: UriFlags): string | null
24236
+ static resolve_relative(base_uri_string: string | null, uri_ref: string, flags: UriFlags): string | null
24237
24237
  /**
24238
24238
  * Parses `uri_ref` (which can be an
24239
24239
  * [absolute or relative URI][relative-absolute-uris]) according to `flags,` and
@@ -24255,7 +24255,7 @@ export class Uri {
24255
24255
  * @param flags flags for parsing `uri_ref`
24256
24256
  * @returns %TRUE if @uri_ref parsed successfully, %FALSE on error.
24257
24257
  */
24258
- static split(uri_ref: string | null, flags: UriFlags): [ /* returnType */ boolean, /* scheme */ string | null, /* userinfo */ string | null, /* host */ string | null, /* port */ number, /* path */ string | null, /* query */ string | null, /* fragment */ string | null ]
24258
+ static split(uri_ref: string, flags: UriFlags): [ /* returnType */ boolean, /* scheme */ string | null, /* userinfo */ string | null, /* host */ string | null, /* port */ number, /* path */ string, /* query */ string | null, /* fragment */ string | null ]
24259
24259
  /**
24260
24260
  * Parses `uri_string` (which must be an [absolute URI][relative-absolute-uris])
24261
24261
  * according to `flags,` and returns the pieces relevant to connecting to a host.
@@ -24267,7 +24267,7 @@ export class Uri {
24267
24267
  * @param flags flags for parsing `uri_string`
24268
24268
  * @returns %TRUE if @uri_string parsed successfully, %FALSE on error.
24269
24269
  */
24270
- static split_network(uri_string: string | null, flags: UriFlags): [ /* returnType */ boolean, /* scheme */ string | null, /* host */ string | null, /* port */ number ]
24270
+ static split_network(uri_string: string, flags: UriFlags): [ /* returnType */ boolean, /* scheme */ string | null, /* host */ string | null, /* port */ number ]
24271
24271
  /**
24272
24272
  * Parses `uri_ref` (which can be an
24273
24273
  * [absolute or relative URI][relative-absolute-uris]) according to `flags,` and
@@ -24284,7 +24284,7 @@ export class Uri {
24284
24284
  * @param flags flags for parsing `uri_ref`
24285
24285
  * @returns %TRUE if @uri_ref parsed successfully, %FALSE on error.
24286
24286
  */
24287
- static split_with_user(uri_ref: string | null, flags: UriFlags): [ /* returnType */ boolean, /* scheme */ string | null, /* user */ string | null, /* password */ string | null, /* auth_params */ string | null, /* host */ string | null, /* port */ number, /* path */ string | null, /* query */ string | null, /* fragment */ string | null ]
24287
+ static split_with_user(uri_ref: string, flags: UriFlags): [ /* returnType */ boolean, /* scheme */ string | null, /* user */ string | null, /* password */ string | null, /* auth_params */ string | null, /* host */ string | null, /* port */ number, /* path */ string, /* query */ string | null, /* fragment */ string | null ]
24288
24288
  /**
24289
24289
  * Unescapes a segment of an escaped string as binary data.
24290
24290
  *
@@ -24301,7 +24301,7 @@ export class Uri {
24301
24301
  * @param illegal_characters a string of illegal characters not to be allowed, or %NULL.
24302
24302
  * @returns an unescaped version of @escaped_string or %NULL on error (if decoding failed, using %G_URI_ERROR_FAILED error code). The returned #GBytes should be unreffed when no longer needed.
24303
24303
  */
24304
- static unescape_bytes(escaped_string: string | null, length: number, illegal_characters: string | null): Bytes
24304
+ static unescape_bytes(escaped_string: string, length: number, illegal_characters: string | null): Bytes
24305
24305
  /**
24306
24306
  * Unescapes a segment of an escaped string.
24307
24307
  *
@@ -24331,7 +24331,7 @@ export class Uri {
24331
24331
  * @param illegal_characters a string of illegal characters not to be allowed, or %NULL.
24332
24332
  * @returns an unescaped version of @escaped_string. The returned string should be freed when no longer needed.
24333
24333
  */
24334
- static unescape_string(escaped_string: string | null, illegal_characters: string | null): string | null
24334
+ static unescape_string(escaped_string: string, illegal_characters: string | null): string | null
24335
24335
  }
24336
24336
 
24337
24337
  export interface UriParamsIter {
@@ -24379,7 +24379,7 @@ export interface UriParamsIter {
24379
24379
  * @param separators the separator byte character set between parameters. (usually `&`, but sometimes `;` or both `&;`). Note that this function works on bytes not characters, so it can't be used to delimit UTF-8 strings for anything but ASCII characters. You may pass an empty set, in which case no splitting will occur.
24380
24380
  * @param flags flags to modify the way the parameters are handled.
24381
24381
  */
24382
- init(params: string | null, length: number, separators: string | null, flags: UriParamsFlags): void
24382
+ init(params: string, length: number, separators: string, flags: UriParamsFlags): void
24383
24383
  /**
24384
24384
  * Advances `iter` and retrieves the next attribute/value. %FALSE is returned if
24385
24385
  * an error has occurred (in which case `error` is set), or if the end of the
@@ -24458,7 +24458,7 @@ export interface Variant {
24458
24458
  * @param copy_only %TRUE to ensure the format string makes deep copies
24459
24459
  * @returns %TRUE if @format_string is safe to use
24460
24460
  */
24461
- check_format_string(format_string: string | null, copy_only: boolean): boolean
24461
+ check_format_string(format_string: string, copy_only: boolean): boolean
24462
24462
  /**
24463
24463
  * Classifies `value` according to its top-level type.
24464
24464
  * @returns the #GVariantClass of @value
@@ -24803,7 +24803,7 @@ export interface Variant {
24803
24803
  * The return value remains valid as long as `value` exists.
24804
24804
  * @returns the constant string, UTF-8 encoded
24805
24805
  */
24806
- get_string(): [ /* returnType */ string | null, /* length */ number ]
24806
+ get_string(): [ /* returnType */ string, /* length */ number ]
24807
24807
  /**
24808
24808
  * Gets the contents of an array of strings #GVariant. This call
24809
24809
  * makes a shallow copy; the return result should be released with
@@ -24832,7 +24832,7 @@ export interface Variant {
24832
24832
  * string belongs to #GVariant and must not be freed.
24833
24833
  * @returns the type string for the type of @value
24834
24834
  */
24835
- get_type_string(): string | null
24835
+ get_type_string(): string
24836
24836
  /**
24837
24837
  * Returns the 16-bit unsigned integer value of `value`.
24838
24838
  *
@@ -24943,7 +24943,7 @@ export interface Variant {
24943
24943
  * @param expected_type a #GVariantType, or %NULL
24944
24944
  * @returns the value of the dictionary key, or %NULL
24945
24945
  */
24946
- lookup_value(key: string | null, expected_type: VariantType | null): Variant
24946
+ lookup_value(key: string, expected_type: VariantType | null): Variant
24947
24947
  /**
24948
24948
  * Determines the number of children in a container #GVariant instance.
24949
24949
  * This includes variants, maybes, arrays, tuples and dictionary
@@ -25531,7 +25531,7 @@ export class Variant {
25531
25531
  * @param object_path a normal C nul-terminated string
25532
25532
  * @returns a floating reference to a new object path #GVariant instance
25533
25533
  */
25534
- static new_object_path(object_path: string | null): Variant
25534
+ static new_object_path(object_path: string): Variant
25535
25535
  /**
25536
25536
  * Constructs an array of object paths #GVariant from the given array of
25537
25537
  * strings.
@@ -25553,7 +25553,7 @@ export class Variant {
25553
25553
  * @param signature a normal C nul-terminated string
25554
25554
  * @returns a floating reference to a new signature #GVariant instance
25555
25555
  */
25556
- static new_signature(signature: string | null): Variant
25556
+ static new_signature(signature: string): Variant
25557
25557
  /**
25558
25558
  * Creates a string #GVariant with the contents of `string`.
25559
25559
  *
@@ -25564,7 +25564,7 @@ export class Variant {
25564
25564
  * @param string a normal UTF-8 nul-terminated string
25565
25565
  * @returns a floating reference to a new string #GVariant instance
25566
25566
  */
25567
- static new_string(string: string | null): Variant
25567
+ static new_string(string: string): Variant
25568
25568
  /**
25569
25569
  * Constructs an array of strings #GVariant from the given array of
25570
25570
  * strings.
@@ -25633,7 +25633,7 @@ export class Variant {
25633
25633
  * @param string a normal C nul-terminated string
25634
25634
  * @returns %TRUE if @string is a D-Bus object path
25635
25635
  */
25636
- static is_object_path(string: string | null): boolean
25636
+ static is_object_path(string: string): boolean
25637
25637
  /**
25638
25638
  * Determines if a given string is a valid D-Bus type signature. You
25639
25639
  * should ensure that a string is a valid D-Bus type signature before
@@ -25644,7 +25644,7 @@ export class Variant {
25644
25644
  * @param string a normal C nul-terminated string
25645
25645
  * @returns %TRUE if @string is a D-Bus type signature
25646
25646
  */
25647
- static is_signature(string: string | null): boolean
25647
+ static is_signature(string: string): boolean
25648
25648
  /**
25649
25649
  * Parses a #GVariant from a text representation.
25650
25650
  *
@@ -25687,7 +25687,7 @@ export class Variant {
25687
25687
  * @param endptr a location to store the end pointer, or %NULL
25688
25688
  * @returns a non-floating reference to a #GVariant, or %NULL
25689
25689
  */
25690
- static parse(type: VariantType | null, text: string | null, limit: string | null, endptr: string | null): Variant
25690
+ static parse(type: VariantType | null, text: string, limit: string | null, endptr: string | null): Variant
25691
25691
  /**
25692
25692
  * Pretty-prints a message showing the context of a #GVariant parse
25693
25693
  * error within the string for which parsing was attempted.
@@ -25726,7 +25726,7 @@ export class Variant {
25726
25726
  * @param source_str the string that was given to the parser
25727
25727
  * @returns the printed message
25728
25728
  */
25729
- static parse_error_print_context(error: Error, source_str: string | null): string | null
25729
+ static parse_error_print_context(error: Error, source_str: string): string | null
25730
25730
  static parse_error_quark(): Quark
25731
25731
  /**
25732
25732
  * Same as g_variant_error_quark().
@@ -25924,7 +25924,7 @@ export interface VariantDict {
25924
25924
  * @param key the key to look up in the dictionary
25925
25925
  * @returns %TRUE if @key is in @dict
25926
25926
  */
25927
- contains(key: string | null): boolean
25927
+ contains(key: string): boolean
25928
25928
  /**
25929
25929
  * Returns the current value of `dict` as a #GVariant of type
25930
25930
  * %G_VARIANT_TYPE_VARDICT, clearing it in the process.
@@ -25943,7 +25943,7 @@ export interface VariantDict {
25943
25943
  * @param key the key to insert a value for
25944
25944
  * @param value the value to insert
25945
25945
  */
25946
- insert_value(key: string | null, value: Variant): void
25946
+ insert_value(key: string, value: Variant): void
25947
25947
  /**
25948
25948
  * Looks up a value in a #GVariantDict.
25949
25949
  *
@@ -25960,7 +25960,7 @@ export interface VariantDict {
25960
25960
  * @param expected_type a #GVariantType, or %NULL
25961
25961
  * @returns the value of the dictionary key, or %NULL
25962
25962
  */
25963
- lookup_value(key: string | null, expected_type: VariantType | null): Variant | null
25963
+ lookup_value(key: string, expected_type: VariantType | null): Variant | null
25964
25964
  /**
25965
25965
  * Increases the reference count on `dict`.
25966
25966
  *
@@ -25974,7 +25974,7 @@ export interface VariantDict {
25974
25974
  * @param key the key to remove
25975
25975
  * @returns %TRUE if the key was found and removed
25976
25976
  */
25977
- remove(key: string | null): boolean
25977
+ remove(key: string): boolean
25978
25978
  /**
25979
25979
  * Decreases the reference count on `dict`.
25980
25980
  *
@@ -26584,7 +26584,7 @@ export class VariantType {
26584
26584
  * @param type_string a valid GVariant type string
26585
26585
  * @returns a new #GVariantType
26586
26586
  */
26587
- constructor(type_string: string | null)
26587
+ constructor(type_string: string)
26588
26588
  /**
26589
26589
  * Creates a new #GVariantType corresponding to the type string given
26590
26590
  * by `type_string`. It is appropriate to call g_variant_type_free() on
@@ -26596,7 +26596,7 @@ export class VariantType {
26596
26596
  * @param type_string a valid GVariant type string
26597
26597
  * @returns a new #GVariantType
26598
26598
  */
26599
- static new(type_string: string | null): VariantType
26599
+ static new(type_string: string): VariantType
26600
26600
  /**
26601
26601
  * Constructs the type corresponding to an array of elements of the
26602
26602
  * type `type`.
@@ -26640,8 +26640,8 @@ export class VariantType {
26640
26640
  * @returns a new tuple #GVariantType Since 2.24
26641
26641
  */
26642
26642
  static new_tuple(items: VariantType[]): VariantType
26643
- static checked_(arg0: string | null): VariantType
26644
- static string_get_depth_(type_string: string | null): number
26643
+ static checked_(arg0: string): VariantType
26644
+ static string_get_depth_(type_string: string): number
26645
26645
  /**
26646
26646
  * Checks if `type_string` is a valid GVariant type string. This call is
26647
26647
  * equivalent to calling g_variant_type_string_scan() and confirming
@@ -26649,7 +26649,7 @@ export class VariantType {
26649
26649
  * @param type_string a pointer to any string
26650
26650
  * @returns %TRUE if @type_string is exactly one valid type string Since 2.24
26651
26651
  */
26652
- static string_is_valid(type_string: string | null): boolean
26652
+ static string_is_valid(type_string: string): boolean
26653
26653
  /**
26654
26654
  * Scan for a single complete and valid GVariant type string in `string`.
26655
26655
  * The memory pointed to by `limit` (or bytes beyond it) is never
@@ -26668,7 +26668,7 @@ export class VariantType {
26668
26668
  * @param limit the end of `string,` or %NULL
26669
26669
  * @returns %TRUE if a valid type string was found
26670
26670
  */
26671
- static string_scan(string: string | null, limit: string | null): [ /* returnType */ boolean, /* endptr */ string | null ]
26671
+ static string_scan(string: string, limit: string | null): [ /* returnType */ boolean, /* endptr */ string ]
26672
26672
  }
26673
26673
 
26674
26674
  export interface DoubleIEEE754 {