@girs/glib-2.0 2.77.0-3.2.2 → 2.77.0-3.2.8

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.ts CHANGED
@@ -3682,19 +3682,19 @@ const BIG_ENDIAN: number
3682
3682
  * Used for specifying valid identifier characters
3683
3683
  * in #GScannerConfig.
3684
3684
  */
3685
- const CSET_A_2_Z: string | null
3685
+ const CSET_A_2_Z: string
3686
3686
  /**
3687
3687
  * The set of ASCII digits.
3688
3688
  * Used for specifying valid identifier characters
3689
3689
  * in #GScannerConfig.
3690
3690
  */
3691
- const CSET_DIGITS: string | null
3691
+ const CSET_DIGITS: string
3692
3692
  /**
3693
3693
  * The set of lowercase ASCII alphabet characters.
3694
3694
  * Used for specifying valid identifier characters
3695
3695
  * in #GScannerConfig.
3696
3696
  */
3697
- const CSET_a_2_z: string | null
3697
+ const CSET_a_2_z: string
3698
3698
  /**
3699
3699
  * The C standard version the code is compiling against, it's normally
3700
3700
  * defined with the same value of `__STDC_VERSION__` for C standard
@@ -3734,7 +3734,7 @@ const DIR_SEPARATOR: number
3734
3734
  * The directory separator as a string.
3735
3735
  * This is "/" on UNIX machines and "\" under Windows.
3736
3736
  */
3737
- const DIR_SEPARATOR_S: string | null
3737
+ const DIR_SEPARATOR_S: string
3738
3738
  /**
3739
3739
  * The base of natural logarithms.
3740
3740
  */
@@ -3759,7 +3759,7 @@ const E: number
3759
3759
  * ```
3760
3760
  *
3761
3761
  */
3762
- const GINT16_FORMAT: string | null
3762
+ const GINT16_FORMAT: string
3763
3763
  /**
3764
3764
  * The platform dependent length modifier for conversion specifiers
3765
3765
  * for scanning and printing values of type #gint16 or #guint16. It
@@ -3779,7 +3779,7 @@ const GINT16_FORMAT: string | null
3779
3779
  * `int16_t` values, even though the in-memory representation is the same.
3780
3780
  * Standard C macros like `PRId16` and `SCNd16` should be used for `int16_t`.
3781
3781
  */
3782
- const GINT16_MODIFIER: string | null
3782
+ const GINT16_MODIFIER: string
3783
3783
  /**
3784
3784
  * This is the platform dependent conversion specifier for scanning
3785
3785
  * and printing values of type #gint32. See also %G_GINT16_FORMAT.
@@ -3788,7 +3788,7 @@ const GINT16_MODIFIER: string | null
3788
3788
  * `int32_t` values, even though the in-memory representation is the same.
3789
3789
  * Standard C macros like `PRId32` and `SCNd32` should be used for `int32_t`.
3790
3790
  */
3791
- const GINT32_FORMAT: string | null
3791
+ const GINT32_FORMAT: string
3792
3792
  /**
3793
3793
  * The platform dependent length modifier for conversion specifiers
3794
3794
  * for scanning and printing values of type #gint32 or #guint32. It
@@ -3798,7 +3798,7 @@ const GINT32_FORMAT: string | null
3798
3798
  * `int32_t` values, even though the in-memory representation is the same.
3799
3799
  * Standard C macros like `PRId32` and `SCNd32` should be used for `int32_t`.
3800
3800
  */
3801
- const GINT32_MODIFIER: string | null
3801
+ const GINT32_MODIFIER: string
3802
3802
  /**
3803
3803
  * This is the platform dependent conversion specifier for scanning
3804
3804
  * and printing values of type #gint64. See also %G_GINT16_FORMAT.
@@ -3814,7 +3814,7 @@ const GINT32_MODIFIER: string | null
3814
3814
  * `int64_t` values, even though the in-memory representation is the same.
3815
3815
  * Standard C macros like `PRId64` and `SCNd64` should be used for `int64_t`.
3816
3816
  */
3817
- const GINT64_FORMAT: string | null
3817
+ const GINT64_FORMAT: string
3818
3818
  /**
3819
3819
  * The platform dependent length modifier for conversion specifiers
3820
3820
  * for scanning and printing values of type #gint64 or #guint64.
@@ -3828,7 +3828,7 @@ const GINT64_FORMAT: string | null
3828
3828
  * `int64_t` values, even though the in-memory representation is the same.
3829
3829
  * Standard C macros like `PRId64` and `SCNd64` should be used for `int64_t`.
3830
3830
  */
3831
- const GINT64_MODIFIER: string | null
3831
+ const GINT64_MODIFIER: string
3832
3832
  /**
3833
3833
  * This is the platform dependent conversion specifier for scanning
3834
3834
  * and printing values of type #gintptr.
@@ -3839,7 +3839,7 @@ const GINT64_MODIFIER: string | null
3839
3839
  * Standard C macros like `PRIdPTR` and `SCNdPTR` should be used for
3840
3840
  * `intptr_t`.
3841
3841
  */
3842
- const GINTPTR_FORMAT: string | null
3842
+ const GINTPTR_FORMAT: string
3843
3843
  /**
3844
3844
  * The platform dependent length modifier for conversion specifiers
3845
3845
  * for scanning and printing values of type #gintptr or #guintptr.
@@ -3851,17 +3851,17 @@ const GINTPTR_FORMAT: string | null
3851
3851
  * Standard C macros like `PRIdPTR` and `SCNdPTR` should be used for
3852
3852
  * `intptr_t`.
3853
3853
  */
3854
- const GINTPTR_MODIFIER: string | null
3854
+ const GINTPTR_MODIFIER: string
3855
3855
  /**
3856
3856
  * Expands to "" on all modern compilers, and to __FUNCTION__ on gcc
3857
3857
  * version 2.x. Don't use it.
3858
3858
  */
3859
- const GNUC_FUNCTION: string | null
3859
+ const GNUC_FUNCTION: string
3860
3860
  /**
3861
3861
  * Expands to "" on all modern compilers, and to __PRETTY_FUNCTION__
3862
3862
  * on gcc version 2.x. Don't use it.
3863
3863
  */
3864
- const GNUC_PRETTY_FUNCTION: string | null
3864
+ const GNUC_PRETTY_FUNCTION: string
3865
3865
  /**
3866
3866
  * This is the platform dependent conversion specifier for scanning
3867
3867
  * and printing values of type #gsize. See also %G_GINT16_FORMAT.
@@ -3871,7 +3871,7 @@ const GNUC_PRETTY_FUNCTION: string | null
3871
3871
  * same. The standard C `"zu"` format should be used for `size_t`,
3872
3872
  * assuming a C99-compliant `printf` implementation is available.
3873
3873
  */
3874
- const GSIZE_FORMAT: string | null
3874
+ const GSIZE_FORMAT: string
3875
3875
  /**
3876
3876
  * The platform dependent length modifier for conversion specifiers
3877
3877
  * for scanning and printing values of type #gsize. It
@@ -3882,7 +3882,7 @@ const GSIZE_FORMAT: string | null
3882
3882
  * same. The Standard C `"z"` modifier should be used for `size_t`,
3883
3883
  * assuming a C99-compliant `printf` implementation is available.
3884
3884
  */
3885
- const GSIZE_MODIFIER: string | null
3885
+ const GSIZE_MODIFIER: string
3886
3886
  /**
3887
3887
  * This is the platform dependent conversion specifier for scanning
3888
3888
  * and printing values of type #gssize. See also %G_GINT16_FORMAT.
@@ -3892,7 +3892,7 @@ const GSIZE_MODIFIER: string | null
3892
3892
  * representation is the same.
3893
3893
  * On POSIX platforms, the `"zd"` format should be used for `ssize_t`.
3894
3894
  */
3895
- const GSSIZE_FORMAT: string | null
3895
+ const GSSIZE_FORMAT: string
3896
3896
  /**
3897
3897
  * The platform dependent length modifier for conversion specifiers
3898
3898
  * for scanning and printing values of type #gssize. It
@@ -3903,7 +3903,7 @@ const GSSIZE_FORMAT: string | null
3903
3903
  * representation is the same.
3904
3904
  * On POSIX platforms, the `"z"` modifier should be used for `ssize_t`.
3905
3905
  */
3906
- const GSSIZE_MODIFIER: string | null
3906
+ const GSSIZE_MODIFIER: string
3907
3907
  /**
3908
3908
  * This is the platform dependent conversion specifier for scanning
3909
3909
  * and printing values of type #guint16. See also %G_GINT16_FORMAT
@@ -3912,7 +3912,7 @@ const GSSIZE_MODIFIER: string | null
3912
3912
  * `uint16_t` values, even though the in-memory representation is the same.
3913
3913
  * Standard C macros like `PRIu16` and `SCNu16` should be used for `uint16_t`.
3914
3914
  */
3915
- const GUINT16_FORMAT: string | null
3915
+ const GUINT16_FORMAT: string
3916
3916
  /**
3917
3917
  * This is the platform dependent conversion specifier for scanning
3918
3918
  * and printing values of type #guint32. See also %G_GINT16_FORMAT.
@@ -3921,7 +3921,7 @@ const GUINT16_FORMAT: string | null
3921
3921
  * `uint32_t` values, even though the in-memory representation is the same.
3922
3922
  * Standard C macros like `PRIu32` and `SCNu32` should be used for `uint32_t`.
3923
3923
  */
3924
- const GUINT32_FORMAT: string | null
3924
+ const GUINT32_FORMAT: string
3925
3925
  /**
3926
3926
  * This is the platform dependent conversion specifier for scanning
3927
3927
  * and printing values of type #guint64. See also %G_GINT16_FORMAT.
@@ -3937,7 +3937,7 @@ const GUINT32_FORMAT: string | null
3937
3937
  * `uint64_t` values, even though the in-memory representation is the same.
3938
3938
  * Standard C macros like `PRIu64` and `SCNu64` should be used for `uint64_t`.
3939
3939
  */
3940
- const GUINT64_FORMAT: string | null
3940
+ const GUINT64_FORMAT: string
3941
3941
  /**
3942
3942
  * This is the platform dependent conversion specifier
3943
3943
  * for scanning and printing values of type #guintptr.
@@ -3948,7 +3948,7 @@ const GUINT64_FORMAT: string | null
3948
3948
  * Standard C macros like `PRIuPTR` and `SCNuPTR` should be used for
3949
3949
  * `uintptr_t`.
3950
3950
  */
3951
- const GUINTPTR_FORMAT: string | null
3951
+ const GUINTPTR_FORMAT: string
3952
3952
  const HAVE_GINT64: number
3953
3953
  const HAVE_GNUC_VARARGS: number
3954
3954
  /**
@@ -3978,110 +3978,110 @@ const IEEE754_FLOAT_BIAS: number
3978
3978
  * Consult the specification for more
3979
3979
  * details about the meanings of the keys below.
3980
3980
  */
3981
- const KEY_FILE_DESKTOP_GROUP: string | null
3981
+ const KEY_FILE_DESKTOP_GROUP: string
3982
3982
  /**
3983
3983
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a string list
3984
3984
  * giving the available application actions.
3985
3985
  */
3986
- const KEY_FILE_DESKTOP_KEY_ACTIONS: string | null
3986
+ const KEY_FILE_DESKTOP_KEY_ACTIONS: string
3987
3987
  /**
3988
3988
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a list
3989
3989
  * of strings giving the categories in which the desktop entry
3990
3990
  * should be shown in a menu.
3991
3991
  */
3992
- const KEY_FILE_DESKTOP_KEY_CATEGORIES: string | null
3992
+ const KEY_FILE_DESKTOP_KEY_CATEGORIES: string
3993
3993
  /**
3994
3994
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a localized
3995
3995
  * string giving the tooltip for the desktop entry.
3996
3996
  */
3997
- const KEY_FILE_DESKTOP_KEY_COMMENT: string | null
3997
+ const KEY_FILE_DESKTOP_KEY_COMMENT: string
3998
3998
  /**
3999
3999
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a boolean
4000
4000
  * set to true if the application is D-Bus activatable.
4001
4001
  */
4002
- const KEY_FILE_DESKTOP_KEY_DBUS_ACTIVATABLE: string | null
4002
+ const KEY_FILE_DESKTOP_KEY_DBUS_ACTIVATABLE: string
4003
4003
  /**
4004
4004
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a string
4005
4005
  * giving the command line to execute. It is only valid for desktop
4006
4006
  * entries with the `Application` type.
4007
4007
  */
4008
- const KEY_FILE_DESKTOP_KEY_EXEC: string | null
4008
+ const KEY_FILE_DESKTOP_KEY_EXEC: string
4009
4009
  /**
4010
4010
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a localized
4011
4011
  * string giving the generic name of the desktop entry.
4012
4012
  */
4013
- const KEY_FILE_DESKTOP_KEY_GENERIC_NAME: string | null
4013
+ const KEY_FILE_DESKTOP_KEY_GENERIC_NAME: string
4014
4014
  /**
4015
4015
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a boolean
4016
4016
  * stating whether the desktop entry has been deleted by the user.
4017
4017
  */
4018
- const KEY_FILE_DESKTOP_KEY_HIDDEN: string | null
4018
+ const KEY_FILE_DESKTOP_KEY_HIDDEN: string
4019
4019
  /**
4020
4020
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a localized
4021
4021
  * string giving the name of the icon to be displayed for the desktop
4022
4022
  * entry.
4023
4023
  */
4024
- const KEY_FILE_DESKTOP_KEY_ICON: string | null
4024
+ const KEY_FILE_DESKTOP_KEY_ICON: string
4025
4025
  /**
4026
4026
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a list
4027
4027
  * of strings giving the MIME types supported by this desktop entry.
4028
4028
  */
4029
- const KEY_FILE_DESKTOP_KEY_MIME_TYPE: string | null
4029
+ const KEY_FILE_DESKTOP_KEY_MIME_TYPE: string
4030
4030
  /**
4031
4031
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a localized
4032
4032
  * string giving the specific name of the desktop entry.
4033
4033
  */
4034
- const KEY_FILE_DESKTOP_KEY_NAME: string | null
4034
+ const KEY_FILE_DESKTOP_KEY_NAME: string
4035
4035
  /**
4036
4036
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a list of
4037
4037
  * strings identifying the environments that should not display the
4038
4038
  * desktop entry.
4039
4039
  */
4040
- const KEY_FILE_DESKTOP_KEY_NOT_SHOW_IN: string | null
4040
+ const KEY_FILE_DESKTOP_KEY_NOT_SHOW_IN: string
4041
4041
  /**
4042
4042
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a boolean
4043
4043
  * stating whether the desktop entry should be shown in menus.
4044
4044
  */
4045
- const KEY_FILE_DESKTOP_KEY_NO_DISPLAY: string | null
4045
+ const KEY_FILE_DESKTOP_KEY_NO_DISPLAY: string
4046
4046
  /**
4047
4047
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a list of
4048
4048
  * strings identifying the environments that should display the
4049
4049
  * desktop entry.
4050
4050
  */
4051
- const KEY_FILE_DESKTOP_KEY_ONLY_SHOW_IN: string | null
4051
+ const KEY_FILE_DESKTOP_KEY_ONLY_SHOW_IN: string
4052
4052
  /**
4053
4053
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a string
4054
4054
  * containing the working directory to run the program in. It is only
4055
4055
  * valid for desktop entries with the `Application` type.
4056
4056
  */
4057
- const KEY_FILE_DESKTOP_KEY_PATH: string | null
4057
+ const KEY_FILE_DESKTOP_KEY_PATH: string
4058
4058
  /**
4059
4059
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a boolean
4060
4060
  * stating whether the application supports the
4061
4061
  * [Startup Notification Protocol Specification](http://www.freedesktop.org/Standards/startup-notification-spec).
4062
4062
  */
4063
- const KEY_FILE_DESKTOP_KEY_STARTUP_NOTIFY: string | null
4063
+ const KEY_FILE_DESKTOP_KEY_STARTUP_NOTIFY: string
4064
4064
  /**
4065
4065
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is string
4066
4066
  * identifying the WM class or name hint of a window that the application
4067
4067
  * will create, which can be used to emulate Startup Notification with
4068
4068
  * older applications.
4069
4069
  */
4070
- const KEY_FILE_DESKTOP_KEY_STARTUP_WM_CLASS: string | null
4070
+ const KEY_FILE_DESKTOP_KEY_STARTUP_WM_CLASS: string
4071
4071
  /**
4072
4072
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a boolean
4073
4073
  * stating whether the program should be run in a terminal window.
4074
4074
  *
4075
4075
  * It is only valid for desktop entries with the `Application` type.
4076
4076
  */
4077
- const KEY_FILE_DESKTOP_KEY_TERMINAL: string | null
4077
+ const KEY_FILE_DESKTOP_KEY_TERMINAL: string
4078
4078
  /**
4079
4079
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a string
4080
4080
  * giving the file name of a binary on disk used to determine if the
4081
4081
  * program is actually installed. It is only valid for desktop entries
4082
4082
  * with the `Application` type.
4083
4083
  */
4084
- const KEY_FILE_DESKTOP_KEY_TRY_EXEC: string | null
4084
+ const KEY_FILE_DESKTOP_KEY_TRY_EXEC: string
4085
4085
  /**
4086
4086
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a string
4087
4087
  * giving the type of the desktop entry.
@@ -4090,34 +4090,34 @@ const KEY_FILE_DESKTOP_KEY_TRY_EXEC: string | null
4090
4090
  * %G_KEY_FILE_DESKTOP_TYPE_LINK, or
4091
4091
  * %G_KEY_FILE_DESKTOP_TYPE_DIRECTORY.
4092
4092
  */
4093
- const KEY_FILE_DESKTOP_KEY_TYPE: string | null
4093
+ const KEY_FILE_DESKTOP_KEY_TYPE: string
4094
4094
  /**
4095
4095
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a string
4096
4096
  * giving the URL to access. It is only valid for desktop entries
4097
4097
  * with the `Link` type.
4098
4098
  */
4099
- const KEY_FILE_DESKTOP_KEY_URL: string | null
4099
+ const KEY_FILE_DESKTOP_KEY_URL: string
4100
4100
  /**
4101
4101
  * A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a string
4102
4102
  * giving the version of the Desktop Entry Specification used for
4103
4103
  * the desktop entry file.
4104
4104
  */
4105
- const KEY_FILE_DESKTOP_KEY_VERSION: string | null
4105
+ const KEY_FILE_DESKTOP_KEY_VERSION: string
4106
4106
  /**
4107
4107
  * The value of the %G_KEY_FILE_DESKTOP_KEY_TYPE, key for desktop
4108
4108
  * entries representing applications.
4109
4109
  */
4110
- const KEY_FILE_DESKTOP_TYPE_APPLICATION: string | null
4110
+ const KEY_FILE_DESKTOP_TYPE_APPLICATION: string
4111
4111
  /**
4112
4112
  * The value of the %G_KEY_FILE_DESKTOP_KEY_TYPE, key for desktop
4113
4113
  * entries representing directories.
4114
4114
  */
4115
- const KEY_FILE_DESKTOP_TYPE_DIRECTORY: string | null
4115
+ const KEY_FILE_DESKTOP_TYPE_DIRECTORY: string
4116
4116
  /**
4117
4117
  * The value of the %G_KEY_FILE_DESKTOP_KEY_TYPE, key for desktop
4118
4118
  * entries representing links to documents.
4119
4119
  */
4120
- const KEY_FILE_DESKTOP_TYPE_LINK: string | null
4120
+ const KEY_FILE_DESKTOP_TYPE_LINK: string
4121
4121
  /**
4122
4122
  * Specifies one of the possible types of byte order.
4123
4123
  * See %G_BYTE_ORDER.
@@ -4268,7 +4268,7 @@ const MININT8: number
4268
4268
  * linked against at application run time.
4269
4269
  */
4270
4270
  const MINOR_VERSION: number
4271
- const MODULE_SUFFIX: string | null
4271
+ const MODULE_SUFFIX: string
4272
4272
  /**
4273
4273
  * If a long option in the main group has this name, it is not treated as a
4274
4274
  * regular option. Instead it collects all non-option arguments which would
@@ -4281,7 +4281,7 @@ const MODULE_SUFFIX: string | null
4281
4281
  * for leftover arguments has the advantage that GOption takes care of
4282
4282
  * necessary encoding conversions for strings or filenames.
4283
4283
  */
4284
- const OPTION_REMAINING: string | null
4284
+ const OPTION_REMAINING: string
4285
4285
  /**
4286
4286
  * Specifies one of the possible types of byte order
4287
4287
  * (currently unused). See %G_BYTE_ORDER.
@@ -4295,7 +4295,7 @@ const PI: number
4295
4295
  * A format specifier that can be used in printf()-style format strings
4296
4296
  * when printing a #GPid.
4297
4297
  */
4298
- const PID_FORMAT: string | null
4298
+ const PID_FORMAT: string
4299
4299
  /**
4300
4300
  * Pi divided by 2.
4301
4301
  */
@@ -4308,7 +4308,7 @@ const PI_4: number
4308
4308
  * A format specifier that can be used in printf()-style format strings
4309
4309
  * when printing the `fd` member of a #GPollFD.
4310
4310
  */
4311
- const POLLFD_FORMAT: string | null
4311
+ const POLLFD_FORMAT: string
4312
4312
  /**
4313
4313
  * Use this for default priority event sources.
4314
4314
  *
@@ -4377,7 +4377,7 @@ const SEARCHPATH_SEPARATOR: number
4377
4377
  * The search path separator as a string.
4378
4378
  * This is ":" on UNIX machines and ";" under Windows.
4379
4379
  */
4380
- const SEARCHPATH_SEPARATOR_S: string | null
4380
+ const SEARCHPATH_SEPARATOR_S: string
4381
4381
  const SIZEOF_LONG: number
4382
4382
  const SIZEOF_SIZE_T: number
4383
4383
  const SIZEOF_SSIZE_T: number
@@ -4399,7 +4399,7 @@ const SQRT2: number
4399
4399
  /**
4400
4400
  * The standard delimiters, used in g_strdelimit().
4401
4401
  */
4402
- const STR_DELIMITERS: string | null
4402
+ const STR_DELIMITERS: string
4403
4403
  const SYSDEF_AF_INET: number
4404
4404
  const SYSDEF_AF_INET6: number
4405
4405
  const SYSDEF_AF_UNIX: number
@@ -4431,7 +4431,7 @@ const SYSDEF_MSG_PEEK: number
4431
4431
  * calls to functions like g_get_user_cache_dir(), the caller must be prepared
4432
4432
  * to create the directory if it doesn’t exist.
4433
4433
  */
4434
- const TEST_OPTION_ISOLATE_DIRS: string | null
4434
+ const TEST_OPTION_ISOLATE_DIRS: string
4435
4435
  /**
4436
4436
  * Evaluates to a time span of one day.
4437
4437
  */
@@ -4463,12 +4463,12 @@ const UNICHAR_MAX_DECOMPOSITION_LENGTH: number
4463
4463
  * Generic delimiters characters as defined in
4464
4464
  * [RFC 3986](https://tools.ietf.org/html/rfc3986). Includes `:/?#[]```.
4465
4465
  */
4466
- const URI_RESERVED_CHARS_GENERIC_DELIMITERS: string | null
4466
+ const URI_RESERVED_CHARS_GENERIC_DELIMITERS: string
4467
4467
  /**
4468
4468
  * Subcomponent delimiter characters as defined in
4469
4469
  * [RFC 3986](https://tools.ietf.org/html/rfc3986). Includes `!$&'()*+,;=`.
4470
4470
  */
4471
- const URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS: string | null
4471
+ const URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS: string
4472
4472
  /**
4473
4473
  * Number of microseconds in one second (1 million).
4474
4474
  * This macro is provided for code readability.
@@ -4599,7 +4599,7 @@ function ascii_dtostr(buffer: string | null, buf_len: number, d: number): string
4599
4599
  * @param d The #gdouble to convert
4600
4600
  * @returns The pointer to the buffer with the converted string.
4601
4601
  */
4602
- function ascii_formatd(buffer: string | null, buf_len: number, format: string | null, d: number): string | null
4602
+ function ascii_formatd(buffer: string | null, buf_len: number, format: string, d: number): string | null
4603
4603
  /**
4604
4604
  * Compare two strings, ignoring the case of ASCII characters.
4605
4605
  *
@@ -4620,14 +4620,14 @@ function ascii_formatd(buffer: string | null, buf_len: number, format: string |
4620
4620
  * @param s2 string to compare with `s1`
4621
4621
  * @returns 0 if the strings match, a negative value if @s1 < @s2, or a positive value if @s1 > @s2.
4622
4622
  */
4623
- function ascii_strcasecmp(s1: string | null, s2: string | null): number
4623
+ function ascii_strcasecmp(s1: string, s2: string): number
4624
4624
  /**
4625
4625
  * Converts all upper case ASCII letters to lower case ASCII letters.
4626
4626
  * @param str a string
4627
4627
  * @param len length of `str` in bytes, or -1 if `str` is nul-terminated
4628
4628
  * @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.)
4629
4629
  */
4630
- function ascii_strdown(str: string | null, len: number): string | null
4630
+ function ascii_strdown(str: string, len: number): string | null
4631
4631
  /**
4632
4632
  * A convenience function for converting a string to a signed number.
4633
4633
  *
@@ -4656,7 +4656,7 @@ function ascii_strdown(str: string | null, len: number): string | null
4656
4656
  * @param max an upper bound (inclusive)
4657
4657
  * @returns %TRUE if @str was a number, otherwise %FALSE.
4658
4658
  */
4659
- function ascii_string_to_signed(str: string | null, base: number, min: number, max: number): [ /* returnType */ boolean, /* out_num */ number ]
4659
+ function ascii_string_to_signed(str: string, base: number, min: number, max: number): [ /* returnType */ boolean, /* out_num */ number ]
4660
4660
  /**
4661
4661
  * A convenience function for converting a string to an unsigned number.
4662
4662
  *
@@ -4686,7 +4686,7 @@ function ascii_string_to_signed(str: string | null, base: number, min: number, m
4686
4686
  * @param max an upper bound (inclusive)
4687
4687
  * @returns %TRUE if @str was a number, otherwise %FALSE.
4688
4688
  */
4689
- function ascii_string_to_unsigned(str: string | null, base: number, min: number, max: number): [ /* returnType */ boolean, /* out_num */ number ]
4689
+ function ascii_string_to_unsigned(str: string, base: number, min: number, max: number): [ /* returnType */ boolean, /* out_num */ number ]
4690
4690
  /**
4691
4691
  * Compare `s1` and `s2`, ignoring the case of ASCII characters and any
4692
4692
  * characters after the first `n` in each string. If either string is
@@ -4705,7 +4705,7 @@ function ascii_string_to_unsigned(str: string | null, base: number, min: number,
4705
4705
  * @param n number of characters to compare
4706
4706
  * @returns 0 if the strings match, a negative value if @s1 < @s2, or a positive value if @s1 > @s2.
4707
4707
  */
4708
- function ascii_strncasecmp(s1: string | null, s2: string | null, n: number): number
4708
+ function ascii_strncasecmp(s1: string, s2: string, n: number): number
4709
4709
  /**
4710
4710
  * Converts a string to a #gdouble value.
4711
4711
  *
@@ -4733,7 +4733,7 @@ function ascii_strncasecmp(s1: string | null, s2: string | null, n: number): num
4733
4733
  * @param nptr the string to convert to a numeric value.
4734
4734
  * @returns the #gdouble value.
4735
4735
  */
4736
- function ascii_strtod(nptr: string | null): [ /* returnType */ number, /* endptr */ string | null ]
4736
+ function ascii_strtod(nptr: string): [ /* returnType */ number, /* endptr */ string ]
4737
4737
  /**
4738
4738
  * Converts a string to a #gint64 value.
4739
4739
  * This function behaves like the standard strtoll() function
@@ -4756,7 +4756,7 @@ function ascii_strtod(nptr: string | null): [ /* returnType */ number, /* endptr
4756
4756
  * @param base to be used for the conversion, 2..36 or 0
4757
4757
  * @returns the #gint64 value or zero on error.
4758
4758
  */
4759
- function ascii_strtoll(nptr: string | null, base: number): [ /* returnType */ number, /* endptr */ string | null ]
4759
+ function ascii_strtoll(nptr: string, base: number): [ /* returnType */ number, /* endptr */ string ]
4760
4760
  /**
4761
4761
  * Converts a string to a #guint64 value.
4762
4762
  * This function behaves like the standard strtoull() function
@@ -4784,14 +4784,14 @@ function ascii_strtoll(nptr: string | null, base: number): [ /* returnType */ nu
4784
4784
  * @param base to be used for the conversion, 2..36 or 0
4785
4785
  * @returns the #guint64 value or zero on error.
4786
4786
  */
4787
- function ascii_strtoull(nptr: string | null, base: number): [ /* returnType */ number, /* endptr */ string | null ]
4787
+ function ascii_strtoull(nptr: string, base: number): [ /* returnType */ number, /* endptr */ string ]
4788
4788
  /**
4789
4789
  * Converts all lower case ASCII letters to upper case ASCII letters.
4790
4790
  * @param str a string
4791
4791
  * @param len length of `str` in bytes, or -1 if `str` is nul-terminated
4792
4792
  * @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.)
4793
4793
  */
4794
- function ascii_strup(str: string | null, len: number): string | null
4794
+ function ascii_strup(str: string, len: number): string | null
4795
4795
  /**
4796
4796
  * Convert a character to ASCII lower case.
4797
4797
  *
@@ -4829,12 +4829,12 @@ function ascii_toupper(c: number): number
4829
4829
  * @returns If @c is a hex digit (according to g_ascii_isxdigit()), its numeric value. Otherwise, -1.
4830
4830
  */
4831
4831
  function ascii_xdigit_value(c: number): number
4832
- function assert_warning(log_domain: string | null, file: string | null, line: number, pretty_function: string | null, expression: string | null): void
4833
- function assertion_message(domain: string | null, file: string | null, line: number, func: string | null, message: string | null): void
4834
- 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
4835
- 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
4836
- 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
4837
- 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
4832
+ function assert_warning(log_domain: string, file: string, line: number, pretty_function: string, expression: string): void
4833
+ function assertion_message(domain: string, file: string, line: number, func: string, message: string): void
4834
+ function assertion_message_cmpint(domain: string, file: string, line: number, func: string, expr: string, arg1: number, cmp: string, arg2: number, numtype: number): void
4835
+ function assertion_message_cmpstr(domain: string, file: string, line: number, func: string, expr: string, arg1: string, cmp: string, arg2: string): void
4836
+ function assertion_message_cmpstrv(domain: string, file: string, line: number, func: string, expr: string, arg1: string, arg2: string, first_wrong_idx: number): void
4837
+ function assertion_message_error(domain: string, file: string, line: number, func: string, expr: string, error: Error, error_domain: Quark, error_code: number): void
4838
4838
  /**
4839
4839
  * Specifies a function to be called at normal program termination.
4840
4840
  *
@@ -5286,7 +5286,7 @@ function atomic_ref_count_init(arc: number): void
5286
5286
  * @param text zero-terminated string with base64 text to decode
5287
5287
  * @returns newly allocated buffer containing the binary data that @text represents. The returned buffer must be freed with g_free().
5288
5288
  */
5289
- function base64_decode(text: string | null): Uint8Array
5289
+ function base64_decode(text: string): Uint8Array
5290
5290
  /**
5291
5291
  * Decode a sequence of Base-64 encoded text into binary data
5292
5292
  * by overwriting the input data.
@@ -5453,7 +5453,7 @@ function build_filenamev(args: string[]): string
5453
5453
  * @param args %NULL-terminated array of strings containing the path elements.
5454
5454
  * @returns a newly-allocated string that must be freed with g_free().
5455
5455
  */
5456
- function build_pathv(separator: string | null, args: string[]): string
5456
+ function build_pathv(separator: string, args: string[]): string
5457
5457
  /**
5458
5458
  * Frees the memory allocated by the #GByteArray. If `free_segment` is
5459
5459
  * %TRUE it frees the actual byte data. If the reference count of
@@ -5702,7 +5702,7 @@ function compute_checksum_for_data(checksum_type: ChecksumType, data: Uint8Array
5702
5702
  * @param length the length of the string, or -1 if the string is null-terminated.
5703
5703
  * @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.
5704
5704
  */
5705
- function compute_checksum_for_string(checksum_type: ChecksumType, str: string | null, length: number): string | null
5705
+ function compute_checksum_for_string(checksum_type: ChecksumType, str: string, length: number): string | null
5706
5706
  /**
5707
5707
  * Computes the HMAC for a binary `data`. This is a
5708
5708
  * convenience wrapper for g_hmac_new(), g_hmac_get_string()
@@ -5737,7 +5737,7 @@ function compute_hmac_for_data(digest_type: ChecksumType, key: Uint8Array, data:
5737
5737
  * @param length the length of the string, or -1 if the string is nul-terminated
5738
5738
  * @returns the HMAC as a hexadecimal string. The returned string should be freed with g_free() when done using it.
5739
5739
  */
5740
- function compute_hmac_for_string(digest_type: ChecksumType, key: Uint8Array, str: string | null, length: number): string | null
5740
+ function compute_hmac_for_string(digest_type: ChecksumType, key: Uint8Array, str: string, length: number): string | null
5741
5741
  /**
5742
5742
  * Converts a string from one character set to another.
5743
5743
  *
@@ -5758,7 +5758,7 @@ function compute_hmac_for_string(digest_type: ChecksumType, key: Uint8Array, str
5758
5758
  * @param from_codeset character set of `str`.
5759
5759
  * @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.
5760
5760
  */
5761
- function convert(str: Uint8Array, to_codeset: string | null, from_codeset: string | null): [ /* returnType */ Uint8Array, /* bytes_read */ number ]
5761
+ function convert(str: Uint8Array, to_codeset: string, from_codeset: string): [ /* returnType */ Uint8Array, /* bytes_read */ number ]
5762
5762
  function convert_error_quark(): Quark
5763
5763
  /**
5764
5764
  * Converts a string from one character set to another, possibly
@@ -5784,7 +5784,7 @@ function convert_error_quark(): Quark
5784
5784
  * @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.
5785
5785
  * @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.
5786
5786
  */
5787
- function convert_with_fallback(str: Uint8Array, to_codeset: string | null, from_codeset: string | null, fallback: string | null): [ /* returnType */ Uint8Array, /* bytes_read */ number ]
5787
+ function convert_with_fallback(str: Uint8Array, to_codeset: string, from_codeset: string, fallback: string): [ /* returnType */ Uint8Array, /* bytes_read */ number ]
5788
5788
  /**
5789
5789
  * Calls the given function for each data element of the datalist. The
5790
5790
  * function is called with each data element's #GQuark id and data,
@@ -5807,7 +5807,7 @@ function datalist_foreach(datalist: Data, func: DataForeachFunc): void
5807
5807
  * @param key the string identifying a data element.
5808
5808
  * @returns the data element, or %NULL if it is not found.
5809
5809
  */
5810
- function datalist_get_data(datalist: Data, key: string | null): any | null
5810
+ function datalist_get_data(datalist: Data, key: string): any | null
5811
5811
  /**
5812
5812
  * Gets flags values packed in together with the datalist.
5813
5813
  * See g_datalist_set_flags().
@@ -5937,7 +5937,7 @@ function date_is_leap_year(year: DateYear): boolean
5937
5937
  * @param date valid #GDate
5938
5938
  * @returns number of characters written to the buffer, or 0 the buffer was too small
5939
5939
  */
5940
- function date_strftime(s: string | null, slen: number, format: string | null, date: Date): number
5940
+ function date_strftime(s: string | null, slen: number, format: string, date: Date): number
5941
5941
  /**
5942
5942
  * Returns %TRUE if the day of the month is valid (a day is valid if it's
5943
5943
  * between 1 and 31 inclusive).
@@ -5993,7 +5993,7 @@ function date_valid_year(year: DateYear): boolean
5993
5993
  * @param category a locale category
5994
5994
  * @returns the translated string for the given locale category
5995
5995
  */
5996
- function dcgettext(domain: string | null, msgid: string | null, category: number): string | null
5996
+ function dcgettext(domain: string | null, msgid: string, category: number): string
5997
5997
  /**
5998
5998
  * This function is a wrapper of dgettext() which does not translate
5999
5999
  * the message if the default domain as set with textdomain() has no
@@ -6031,7 +6031,7 @@ function dcgettext(domain: string | null, msgid: string | null, category: number
6031
6031
  * @param msgid message to translate
6032
6032
  * @returns The translated string
6033
6033
  */
6034
- function dgettext(domain: string | null, msgid: string | null): string | null
6034
+ function dgettext(domain: string | null, msgid: string): string
6035
6035
  /**
6036
6036
  * Creates a subdirectory in the preferred directory for temporary
6037
6037
  * files (as returned by g_get_tmp_dir()).
@@ -6086,7 +6086,7 @@ function direct_hash(v: any | null): number
6086
6086
  * @param n the quantity for which translation is needed
6087
6087
  * @returns The translated string
6088
6088
  */
6089
- function dngettext(domain: string | null, msgid: string | null, msgid_plural: string | null, n: number): string | null
6089
+ function dngettext(domain: string | null, msgid: string, msgid_plural: string, n: number): string
6090
6090
  /**
6091
6091
  * Compares the two #gdouble values being pointed to and returns
6092
6092
  * %TRUE if they are equal.
@@ -6126,7 +6126,7 @@ function double_hash(v: any): number
6126
6126
  * @param msgidoffset the offset of the message id in `msgctxid`
6127
6127
  * @returns The translated string
6128
6128
  */
6129
- function dpgettext(domain: string | null, msgctxtid: string | null, msgidoffset: number): string | null
6129
+ function dpgettext(domain: string | null, msgctxtid: string, msgidoffset: number): string
6130
6130
  /**
6131
6131
  * This function is a variant of g_dgettext() which supports
6132
6132
  * a disambiguating message context. GNU gettext uses the
@@ -6143,7 +6143,7 @@ function dpgettext(domain: string | null, msgctxtid: string | null, msgidoffset:
6143
6143
  * @param msgid the message
6144
6144
  * @returns The translated string
6145
6145
  */
6146
- function dpgettext2(domain: string | null, context: string | null, msgid: string | null): string | null
6146
+ function dpgettext2(domain: string | null, context: string, msgid: string): string
6147
6147
  /**
6148
6148
  * Returns the value of the environment variable `variable` in the
6149
6149
  * provided list `envp`.
@@ -6437,7 +6437,7 @@ function filename_display_name(filename: string): string | null
6437
6437
  * @param uri a uri describing a filename (escaped, encoded in ASCII).
6438
6438
  * @returns a newly-allocated string holding the resulting filename, or %NULL on an error.
6439
6439
  */
6440
- function filename_from_uri(uri: string | null): [ /* returnType */ string, /* hostname */ string | null ]
6440
+ function filename_from_uri(uri: string): [ /* returnType */ string, /* hostname */ string | null ]
6441
6441
  /**
6442
6442
  * Converts a string from UTF-8 to the encoding GLib uses for
6443
6443
  * filenames. Note that on Windows GLib uses UTF-8 for filenames;
@@ -6453,7 +6453,7 @@ function filename_from_uri(uri: string | null): [ /* returnType */ string, /* ho
6453
6453
  * @param len the length of the string, or -1 if the string is nul-terminated.
6454
6454
  * @returns The converted string, or %NULL on an error.
6455
6455
  */
6456
- function filename_from_utf8(utf8string: string | null, len: number): [ /* returnType */ string, /* bytes_read */ number, /* bytes_written */ number ]
6456
+ function filename_from_utf8(utf8string: string, len: number): [ /* returnType */ string, /* bytes_read */ number, /* bytes_written */ number ]
6457
6457
  /**
6458
6458
  * Converts an absolute filename to an escaped ASCII-encoded URI, with the path
6459
6459
  * component following Section 3.3. of RFC 2396.
@@ -6612,7 +6612,7 @@ function get_application_name(): string | null
6612
6612
  * freed.
6613
6613
  * @returns %TRUE if the returned charset is UTF-8
6614
6614
  */
6615
- function get_charset(): [ /* returnType */ boolean, /* charset */ string | null ]
6615
+ function get_charset(): [ /* returnType */ boolean, /* charset */ string ]
6616
6616
  /**
6617
6617
  * Gets the character set for the current locale.
6618
6618
  * @returns a newly allocated string containing the name of the character set. This string must be freed with g_free().
@@ -6638,7 +6638,7 @@ function get_codeset(): string | null
6638
6638
  * freed.
6639
6639
  * @returns %TRUE if the returned charset is UTF-8
6640
6640
  */
6641
- function get_console_charset(): [ /* returnType */ boolean, /* charset */ string | null ]
6641
+ function get_console_charset(): [ /* returnType */ boolean, /* charset */ string ]
6642
6642
  /**
6643
6643
  * Gets the current directory.
6644
6644
  *
@@ -6743,7 +6743,7 @@ function get_home_dir(): string
6743
6743
  * The encoding of the returned string is UTF-8.
6744
6744
  * @returns the host name of the machine.
6745
6745
  */
6746
- function get_host_name(): string | null
6746
+ function get_host_name(): string
6747
6747
  /**
6748
6748
  * Computes a list of applicable locale names, which can be used to
6749
6749
  * e.g. construct locale-dependent filenames or search paths. The returned
@@ -6773,7 +6773,7 @@ function get_language_names(): string[]
6773
6773
  * @param category_name a locale category name
6774
6774
  * @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.
6775
6775
  */
6776
- function get_language_names_with_category(category_name: string | null): string[]
6776
+ function get_language_names_with_category(category_name: string): string[]
6777
6777
  /**
6778
6778
  * Returns a list of derived variants of `locale,` which can be used to
6779
6779
  * e.g. construct locale-dependent filenames or search paths. The returned
@@ -6793,7 +6793,7 @@ function get_language_names_with_category(category_name: string | null): string[
6793
6793
  * @param locale a locale identifier
6794
6794
  * @returns a newly allocated array of newly allocated strings with the locale variants. Free with g_strfreev().
6795
6795
  */
6796
- function get_locale_variants(locale: string | null): string[]
6796
+ function get_locale_variants(locale: string): string[]
6797
6797
  /**
6798
6798
  * Queries the system monotonic time.
6799
6799
  *
@@ -6828,7 +6828,7 @@ function get_num_processors(): number
6828
6828
  * @param key_name a key for the OS info being requested, for example %G_OS_INFO_KEY_NAME.
6829
6829
  * @returns The associated value for the requested key or %NULL if this information is not provided.
6830
6830
  */
6831
- function get_os_info(key_name: string | null): string | null
6831
+ function get_os_info(key_name: string): string | null
6832
6832
  /**
6833
6833
  * Gets the name of the program. This name should not be localized,
6834
6834
  * in contrast to g_get_application_name().
@@ -7316,7 +7316,7 @@ function hook_unref(hook_list: HookList, hook: Hook): void
7316
7316
  * @param hostname a hostname
7317
7317
  * @returns %TRUE if @hostname contains any ASCII-encoded segments.
7318
7318
  */
7319
- function hostname_is_ascii_encoded(hostname: string | null): boolean
7319
+ function hostname_is_ascii_encoded(hostname: string): boolean
7320
7320
  /**
7321
7321
  * Tests if `hostname` is the string form of an IPv4 or IPv6 address.
7322
7322
  * (Eg, "192.168.0.1".)
@@ -7325,7 +7325,7 @@ function hostname_is_ascii_encoded(hostname: string | null): boolean
7325
7325
  * @param hostname a hostname (or IP address in string form)
7326
7326
  * @returns %TRUE if @hostname is an IP address
7327
7327
  */
7328
- function hostname_is_ip_address(hostname: string | null): boolean
7328
+ function hostname_is_ip_address(hostname: string): boolean
7329
7329
  /**
7330
7330
  * Tests if `hostname` contains Unicode characters. If this returns
7331
7331
  * %TRUE, you need to encode the hostname with g_hostname_to_ascii()
@@ -7337,7 +7337,7 @@ function hostname_is_ip_address(hostname: string | null): boolean
7337
7337
  * @param hostname a hostname
7338
7338
  * @returns %TRUE if @hostname contains any non-ASCII characters
7339
7339
  */
7340
- function hostname_is_non_ascii(hostname: string | null): boolean
7340
+ function hostname_is_non_ascii(hostname: string): boolean
7341
7341
  /**
7342
7342
  * Converts `hostname` to its canonical ASCII form; an ASCII-only
7343
7343
  * string containing no uppercase letters and not ending with a
@@ -7345,7 +7345,7 @@ function hostname_is_non_ascii(hostname: string | null): boolean
7345
7345
  * @param hostname a valid UTF-8 or ASCII hostname
7346
7346
  * @returns an ASCII hostname, which must be freed, or %NULL if @hostname is in some way invalid.
7347
7347
  */
7348
- function hostname_to_ascii(hostname: string | null): string | null
7348
+ function hostname_to_ascii(hostname: string): string | null
7349
7349
  /**
7350
7350
  * Converts `hostname` to its canonical presentation form; a UTF-8
7351
7351
  * string in Unicode normalization form C, containing no uppercase
@@ -7357,7 +7357,7 @@ function hostname_to_ascii(hostname: string | null): string | null
7357
7357
  * @param hostname a valid UTF-8 or ASCII hostname
7358
7358
  * @returns a UTF-8 hostname, which must be freed, or %NULL if @hostname is in some way invalid.
7359
7359
  */
7360
- function hostname_to_unicode(hostname: string | null): string | null
7360
+ function hostname_to_unicode(hostname: string): string | null
7361
7361
  /**
7362
7362
  * Adds a function to be called whenever there are no higher priority
7363
7363
  * events pending.
@@ -7455,7 +7455,7 @@ function int_hash(v: any): number
7455
7455
  * @param string a static string
7456
7456
  * @returns a canonical representation for the string
7457
7457
  */
7458
- function intern_static_string(string: string | null): string | null
7458
+ function intern_static_string(string: string | null): string
7459
7459
  /**
7460
7460
  * Returns a canonical representation for `string`. Interned strings
7461
7461
  * can be compared for equality by comparing the pointers, instead of
@@ -7467,7 +7467,7 @@ function intern_static_string(string: string | null): string | null
7467
7467
  * @param string a string
7468
7468
  * @returns a canonical representation for the string
7469
7469
  */
7470
- function intern_string(string: string | null): string | null
7470
+ function intern_string(string: string | null): string
7471
7471
  /**
7472
7472
  * Adds the #GIOChannel into the default main loop context
7473
7473
  * with the given priority.
@@ -7536,7 +7536,7 @@ function listenv(): string[]
7536
7536
  * @param len the length of the string, or -1 if the string is nul-terminated.
7537
7537
  * @returns A newly-allocated buffer containing the converted string, or %NULL on an error, and error will be set.
7538
7538
  */
7539
- function locale_from_utf8(utf8string: string | null, len: number): [ /* returnType */ Uint8Array, /* bytes_read */ number ]
7539
+ function locale_from_utf8(utf8string: string, len: number): [ /* returnType */ Uint8Array, /* bytes_read */ number ]
7540
7540
  /**
7541
7541
  * Converts a string which is in the encoding used for strings by
7542
7542
  * the C runtime (usually the same as that used by the operating
@@ -7606,7 +7606,7 @@ function log_get_debug_enabled(): boolean
7606
7606
  * @param log_domain the log domain
7607
7607
  * @param handler_id the id of the handler, which was returned in g_log_set_handler()
7608
7608
  */
7609
- function log_remove_handler(log_domain: string | null, handler_id: number): void
7609
+ function log_remove_handler(log_domain: string, handler_id: number): void
7610
7610
  /**
7611
7611
  * Sets the message levels which are always fatal, in any log domain.
7612
7612
  * When a message with any of these levels is logged the program terminates.
@@ -7656,7 +7656,7 @@ function log_set_debug_enabled(enabled: boolean): void
7656
7656
  * @param fatal_mask the new fatal mask
7657
7657
  * @returns the old fatal mask for the log domain
7658
7658
  */
7659
- function log_set_fatal_mask(log_domain: string | null, fatal_mask: LogLevelFlags): LogLevelFlags
7659
+ function log_set_fatal_mask(log_domain: string, fatal_mask: LogLevelFlags): LogLevelFlags
7660
7660
  /**
7661
7661
  * Like g_log_set_handler(), but takes a destroy notify for the `user_data`.
7662
7662
  *
@@ -8080,7 +8080,7 @@ function markup_error_quark(): Quark
8080
8080
  * @param length length of `text` in bytes, or -1 if the text is nul-terminated
8081
8081
  * @returns a newly allocated string with the escaped text
8082
8082
  */
8083
- function markup_escape_text(text: string | null, length: number): string | null
8083
+ function markup_escape_text(text: string, length: number): string | null
8084
8084
  /**
8085
8085
  * Checks whether the allocator used by g_malloc() is the system's
8086
8086
  * malloc implementation. If it returns %TRUE memory allocated with
@@ -8188,7 +8188,7 @@ function number_parser_error_quark(): Quark
8188
8188
  * calling g_on_error_stack_trace() instead.
8189
8189
  * @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)
8190
8190
  */
8191
- function on_error_query(prg_name: string | null): void
8191
+ function on_error_query(prg_name: string): void
8192
8192
  /**
8193
8193
  * Invokes gdb, which attaches to the current process and shows a
8194
8194
  * stack trace. Called by g_on_error_query() when the "[S]tack trace"
@@ -8205,7 +8205,7 @@ function on_error_query(prg_name: string | null): void
8205
8205
  * handle that exception (see [Running GLib Applications](glib-running.html)).
8206
8206
  * @param prg_name the program name, needed by gdb for the "[S]tack trace" option
8207
8207
  */
8208
- function on_error_stack_trace(prg_name: string | null): void
8208
+ function on_error_stack_trace(prg_name: string): void
8209
8209
  /**
8210
8210
  * Function to be called when starting a critical initialization
8211
8211
  * section. The argument `location` must point to a static
@@ -8353,7 +8353,7 @@ function path_skip_root(file_name: string): string | null
8353
8353
  * @param string the UTF-8 encoded string to match
8354
8354
  * @returns %TRUE if @string matches @pspec
8355
8355
  */
8356
- function pattern_match_simple(pattern: string | null, string: string | null): boolean
8356
+ function pattern_match_simple(pattern: string, string: string): boolean
8357
8357
  /**
8358
8358
  * This is equivalent to g_bit_lock, but working on pointers (or other
8359
8359
  * pointer-sized values).
@@ -8424,7 +8424,7 @@ function poll(fds: PollFD, nfds: number, timeout: number): number
8424
8424
  * @param err a return location for a #GError, or %NULL
8425
8425
  * @param prefix string to prefix `err` with
8426
8426
  */
8427
- function prefix_error_literal(err: Error | null, prefix: string | null): void
8427
+ function prefix_error_literal(err: Error | null, prefix: string): void
8428
8428
  /**
8429
8429
  * If `dest` is %NULL, free `src;` otherwise, moves `src` into *`dest`.
8430
8430
  * The error variable `dest` points to must be %NULL.
@@ -8475,7 +8475,7 @@ function quark_from_string(string: string | null): Quark
8475
8475
  * @param quark a #GQuark.
8476
8476
  * @returns the string associated with the #GQuark
8477
8477
  */
8478
- function quark_to_string(quark: Quark): string | null
8478
+ function quark_to_string(quark: Quark): string
8479
8479
  /**
8480
8480
  * Gets the #GQuark associated with the given string, or 0 if string is
8481
8481
  * %NULL or it has no associated #GQuark.
@@ -8660,7 +8660,7 @@ function ref_string_length(str: string | null): number
8660
8660
  * @param str a NUL-terminated string
8661
8661
  * @returns the newly created reference counted string
8662
8662
  */
8663
- function ref_string_new(str: string | null): string | null
8663
+ function ref_string_new(str: string): string | null
8664
8664
  /**
8665
8665
  * Creates a new reference counted string and copies the content of `str`
8666
8666
  * into it.
@@ -8671,7 +8671,7 @@ function ref_string_new(str: string | null): string | null
8671
8671
  * @param str a NUL-terminated string
8672
8672
  * @returns the newly created reference counted string, or a new reference to an existing string
8673
8673
  */
8674
- function ref_string_new_intern(str: string | null): string | null
8674
+ function ref_string_new_intern(str: string): string | null
8675
8675
  /**
8676
8676
  * Creates a new reference counted string and copies the contents of `str`
8677
8677
  * into it, up to `len` bytes.
@@ -8682,7 +8682,7 @@ function ref_string_new_intern(str: string | null): string | null
8682
8682
  * @param len length of `str` to use, or -1 if `str` is nul-terminated
8683
8683
  * @returns the newly created reference counted string
8684
8684
  */
8685
- function ref_string_new_len(str: string | null, len: number): string | null
8685
+ function ref_string_new_len(str: string, len: number): string | null
8686
8686
  /**
8687
8687
  * Releases a reference on a string; if it was the last reference, the
8688
8688
  * resources allocated by the string are freed as well.
@@ -8702,7 +8702,7 @@ function ref_string_release(str: string | null): void
8702
8702
  * @param replacement the replacement string
8703
8703
  * @returns whether @replacement is a valid replacement string
8704
8704
  */
8705
- function regex_check_replacement(replacement: string | null): [ /* returnType */ boolean, /* has_references */ boolean ]
8705
+ function regex_check_replacement(replacement: string): [ /* returnType */ boolean, /* has_references */ boolean ]
8706
8706
  function regex_error_quark(): Quark
8707
8707
  /**
8708
8708
  * Escapes the nul characters in `string` to "\x00". It can be used
@@ -8714,7 +8714,7 @@ function regex_error_quark(): Quark
8714
8714
  * @param length the length of `string`
8715
8715
  * @returns a newly-allocated escaped string
8716
8716
  */
8717
- function regex_escape_nul(string: string | null, length: number): string | null
8717
+ function regex_escape_nul(string: string, length: number): string | null
8718
8718
  /**
8719
8719
  * Escapes the special characters used for regular expressions
8720
8720
  * in `string,` for instance "a.b*c" becomes "a\.b\*c". This
@@ -8727,7 +8727,7 @@ function regex_escape_nul(string: string | null, length: number): string | null
8727
8727
  * @param length the length of `string,` in bytes, or -1 if `string` is nul-terminated
8728
8728
  * @returns a newly-allocated escaped string
8729
8729
  */
8730
- function regex_escape_string(string: string | null, length: number): string | null
8730
+ function regex_escape_string(string: string, length: number): string | null
8731
8731
  /**
8732
8732
  * Scans for a match in `string` for `pattern`.
8733
8733
  *
@@ -8745,7 +8745,7 @@ function regex_escape_string(string: string | null, length: number): string | nu
8745
8745
  * @param match_options match options, or 0
8746
8746
  * @returns %TRUE if the string matched, %FALSE otherwise
8747
8747
  */
8748
- function regex_match_simple(pattern: string | null, string: string | null, compile_options: RegexCompileFlags, match_options: RegexMatchFlags): boolean
8748
+ function regex_match_simple(pattern: string, string: string, compile_options: RegexCompileFlags, match_options: RegexMatchFlags): boolean
8749
8749
  /**
8750
8750
  * Breaks the string on the pattern, and returns an array of
8751
8751
  * the tokens. If the pattern contains capturing parentheses,
@@ -8780,7 +8780,7 @@ function regex_match_simple(pattern: string | null, string: string | null, compi
8780
8780
  * @param match_options match options, or 0
8781
8781
  * @returns a %NULL-terminated array of strings. Free it using g_strfreev()
8782
8782
  */
8783
- function regex_split_simple(pattern: string | null, string: string | null, compile_options: RegexCompileFlags, match_options: RegexMatchFlags): string[]
8783
+ function regex_split_simple(pattern: string, string: string, compile_options: RegexCompileFlags, match_options: RegexMatchFlags): string[]
8784
8784
  /**
8785
8785
  * Resets the cache used for g_get_user_special_dir(), so
8786
8786
  * that the latest on-disk version is used. Call this only
@@ -8897,7 +8897,7 @@ function sequence_swap(a: SequenceIter, b: SequenceIter): void
8897
8897
  * or when displaying an application's name in the task list.
8898
8898
  * @param application_name localized name of the application
8899
8899
  */
8900
- function set_application_name(application_name: string | null): void
8900
+ function set_application_name(application_name: string): void
8901
8901
  /**
8902
8902
  * Does nothing if `err` is %NULL; if `err` is non-%NULL, then *`err`
8903
8903
  * must be %NULL. A new #GError is created and assigned to *`err`.
@@ -8908,7 +8908,7 @@ function set_application_name(application_name: string | null): void
8908
8908
  * @param code error code
8909
8909
  * @param message error message
8910
8910
  */
8911
- function set_error_literal(domain: Quark, code: number, message: string | null): /* err */ Error
8911
+ function set_error_literal(domain: Quark, code: number, message: string): /* err */ Error
8912
8912
  /**
8913
8913
  * Sets the name of the program. This name should not be localized,
8914
8914
  * in contrast to g_set_application_name().
@@ -8924,7 +8924,7 @@ function set_error_literal(domain: Quark, code: number, message: string | null):
8924
8924
  * could only be called once per process.
8925
8925
  * @param prgname the name of the program.
8926
8926
  */
8927
- function set_prgname(prgname: string | null): void
8927
+ function set_prgname(prgname: string): void
8928
8928
  /**
8929
8929
  * Sets an environment variable. On UNIX, both the variable's name and
8930
8930
  * value can be arbitrary byte strings, except that the variable's name
@@ -9157,7 +9157,7 @@ function source_remove_by_user_data(user_data: any | null): boolean
9157
9157
  * @param tag a #GSource ID
9158
9158
  * @param name debug name for the source
9159
9159
  */
9160
- function source_set_name_by_id(tag: number, name: string | null): void
9160
+ function source_set_name_by_id(tag: number, name: string): void
9161
9161
  /**
9162
9162
  * Gets the smallest prime number from a built-in array of primes which
9163
9163
  * is larger than `num`. This is used within GLib to calculate the optimum
@@ -9586,7 +9586,7 @@ function spawn_sync(working_directory: string | null, argv: string[], envp: stri
9586
9586
  * @param src source string.
9587
9587
  * @returns a pointer to the trailing nul byte in `dest`.
9588
9588
  */
9589
- function stpcpy(dest: string | null, src: string | null): string | null
9589
+ function stpcpy(dest: string | null, src: string): string | null
9590
9590
  /**
9591
9591
  * Compares two strings for byte-by-byte equality and returns %TRUE
9592
9592
  * if they are equal. It can be passed to g_hash_table_new() as the
@@ -9607,14 +9607,14 @@ function str_equal(v1: any, v2: any): boolean
9607
9607
  * @param prefix the nul-terminated prefix to look for
9608
9608
  * @returns %TRUE if @str begins with @prefix, %FALSE otherwise.
9609
9609
  */
9610
- function str_has_prefix(str: string | null, prefix: string | null): boolean
9610
+ function str_has_prefix(str: string, prefix: string): boolean
9611
9611
  /**
9612
9612
  * Looks whether the string `str` ends with `suffix`.
9613
9613
  * @param str a nul-terminated string
9614
9614
  * @param suffix the nul-terminated suffix to look for
9615
9615
  * @returns %TRUE if @str end with @suffix, %FALSE otherwise.
9616
9616
  */
9617
- function str_has_suffix(str: string | null, suffix: string | null): boolean
9617
+ function str_has_suffix(str: string, suffix: string): boolean
9618
9618
  /**
9619
9619
  * Converts a string to a hash value.
9620
9620
  *
@@ -9640,7 +9640,7 @@ function str_hash(v: any): number
9640
9640
  * @param str a string
9641
9641
  * @returns %TRUE if @str is ASCII
9642
9642
  */
9643
- function str_is_ascii(str: string | null): boolean
9643
+ function str_is_ascii(str: string): boolean
9644
9644
  /**
9645
9645
  * Checks if a search conducted for `search_term` should match
9646
9646
  * `potential_hit`.
@@ -9669,7 +9669,7 @@ function str_is_ascii(str: string | null): boolean
9669
9669
  * @param accept_alternates %TRUE to accept ASCII alternates
9670
9670
  * @returns %TRUE if @potential_hit is a hit
9671
9671
  */
9672
- function str_match_string(search_term: string | null, potential_hit: string | null, accept_alternates: boolean): boolean
9672
+ function str_match_string(search_term: string, potential_hit: string, accept_alternates: boolean): boolean
9673
9673
  /**
9674
9674
  * Transliterate `str` to plain ASCII.
9675
9675
  *
@@ -9693,7 +9693,7 @@ function str_match_string(search_term: string | null, potential_hit: string | nu
9693
9693
  * @param from_locale the source locale, if known
9694
9694
  * @returns a string in plain ASCII
9695
9695
  */
9696
- function str_to_ascii(str: string | null, from_locale: string | null): string | null
9696
+ function str_to_ascii(str: string, from_locale: string | null): string | null
9697
9697
  /**
9698
9698
  * Tokenises `string` and performs folding on each token.
9699
9699
  *
@@ -9714,7 +9714,7 @@ function str_to_ascii(str: string | null, from_locale: string | null): string |
9714
9714
  * @param translit_locale the language code (like 'de' or 'en_GB') from which `string` originates
9715
9715
  * @returns the folded tokens
9716
9716
  */
9717
- function str_tokenize_and_fold(string: string | null, translit_locale: string | null): [ /* returnType */ string[], /* ascii_alternates */ string[] ]
9717
+ function str_tokenize_and_fold(string: string, translit_locale: string | null): [ /* returnType */ string[], /* ascii_alternates */ string[] ]
9718
9718
  /**
9719
9719
  * For each character in `string,` if the character is not in `valid_chars,`
9720
9720
  * replaces the character with `substitutor`.
@@ -9742,7 +9742,7 @@ function str_tokenize_and_fold(string: string | null, translit_locale: string |
9742
9742
  * @param substitutor replacement character for disallowed bytes
9743
9743
  * @returns the modified @string
9744
9744
  */
9745
- function strcanon(string: string | null, valid_chars: string | null, substitutor: number): string | null
9745
+ function strcanon(string: string | null, valid_chars: string, substitutor: number): string | null
9746
9746
  /**
9747
9747
  * A case-insensitive string comparison, corresponding to the standard
9748
9748
  * strcasecmp() function on platforms which support it.
@@ -9750,7 +9750,7 @@ function strcanon(string: string | null, valid_chars: string | null, substitutor
9750
9750
  * @param s2 a string to compare with `s1`
9751
9751
  * @returns 0 if the strings match, a negative value if @s1 < @s2, or a positive value if @s1 > @s2.
9752
9752
  */
9753
- function strcasecmp(s1: string | null, s2: string | null): number
9753
+ function strcasecmp(s1: string, s2: string): number
9754
9754
  /**
9755
9755
  * Removes trailing whitespace from a string.
9756
9756
  *
@@ -9796,7 +9796,7 @@ function strcmp0(str1: string | null, str2: string | null): number
9796
9796
  * @param source a string to compress
9797
9797
  * @returns a newly-allocated copy of @source with all escaped character compressed
9798
9798
  */
9799
- function strcompress(source: string | null): string | null
9799
+ function strcompress(source: string): string | null
9800
9800
  /**
9801
9801
  * Converts any delimiter characters in `string` to `new_delimiter`.
9802
9802
  *
@@ -9865,7 +9865,7 @@ function strdup(str: string | null): string | null
9865
9865
  * @param errnum the system error number. See the standard C %errno documentation
9866
9866
  * @returns a UTF-8 string describing the error code. If the error code is unknown, it returns a string like "Unknown error: <code>".
9867
9867
  */
9868
- function strerror(errnum: number): string | null
9868
+ function strerror(errnum: number): string
9869
9869
  /**
9870
9870
  * Escapes the special characters '\b', '\f', '\n', '\r', '\t', '\v', '\'
9871
9871
  * and '"' in the string `source` by inserting a '\' before
@@ -9879,7 +9879,7 @@ function strerror(errnum: number): string | null
9879
9879
  * @param exceptions a string of characters not to escape in `source`
9880
9880
  * @returns a newly-allocated copy of @source with certain characters escaped. See above.
9881
9881
  */
9882
- function strescape(source: string | null, exceptions: string | null): string | null
9882
+ function strescape(source: string, exceptions: string | null): string | null
9883
9883
  /**
9884
9884
  * Frees a %NULL-terminated array of strings, as well as each
9885
9885
  * string it contains.
@@ -9894,7 +9894,7 @@ function strfreev(str_array: string | null): void
9894
9894
  * @param msgval another string
9895
9895
  * @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.
9896
9896
  */
9897
- function strip_context(msgid: string | null, msgval: string | null): string | null
9897
+ function strip_context(msgid: string, msgval: string): string
9898
9898
  /**
9899
9899
  * Joins a number of strings together to form one long string, with the
9900
9900
  * optional `separator` inserted between each of them. The returned string
@@ -9927,7 +9927,7 @@ function strjoinv(separator: string | null, str_array: string | null): string |
9927
9927
  * @param dest_size length of `dest` buffer in bytes (not length of existing string inside `dest)`
9928
9928
  * @returns size of attempted result, which is MIN (dest_size, strlen (original dest)) + strlen (src), so if retval >= dest_size, truncation occurred.
9929
9929
  */
9930
- function strlcat(dest: string | null, src: string | null, dest_size: number): number
9930
+ function strlcat(dest: string | null, src: string, dest_size: number): number
9931
9931
  /**
9932
9932
  * Portability wrapper that calls strlcpy() on systems which have it,
9933
9933
  * and emulates strlcpy() otherwise. Copies `src` to `dest;` `dest` is
@@ -9948,7 +9948,7 @@ function strlcat(dest: string | null, src: string | null, dest_size: number): nu
9948
9948
  * @param dest_size length of `dest` in bytes
9949
9949
  * @returns length of @src
9950
9950
  */
9951
- function strlcpy(dest: string | null, src: string | null, dest_size: number): number
9951
+ function strlcpy(dest: string | null, src: string, dest_size: number): number
9952
9952
  /**
9953
9953
  * A case-insensitive string comparison, corresponding to the standard
9954
9954
  * strncasecmp() function on platforms which support it. It is similar
@@ -9959,7 +9959,7 @@ function strlcpy(dest: string | null, src: string | null, dest_size: number): nu
9959
9959
  * @param n the maximum number of characters to compare
9960
9960
  * @returns 0 if the strings match, a negative value if @s1 < @s2, or a positive value if @s1 > @s2.
9961
9961
  */
9962
- function strncasecmp(s1: string | null, s2: string | null, n: number): number
9962
+ function strncasecmp(s1: string, s2: string, n: number): number
9963
9963
  /**
9964
9964
  * Duplicates the first `n` bytes of a string, returning a newly-allocated
9965
9965
  * buffer `n` + 1 bytes long which will always be nul-terminated. If `str`
@@ -9973,7 +9973,7 @@ function strncasecmp(s1: string | null, s2: string | null, n: number): number
9973
9973
  * @param n the maximum number of bytes to copy from `str`
9974
9974
  * @returns a newly-allocated buffer containing the first @n bytes of @str, nul-terminated
9975
9975
  */
9976
- function strndup(str: string | null, n: number): string | null
9976
+ function strndup(str: string, n: number): string | null
9977
9977
  /**
9978
9978
  * Creates a new string `length` bytes long filled with `fill_char`.
9979
9979
  * The returned string should be freed when no longer needed.
@@ -10000,7 +10000,7 @@ function strreverse(string: string | null): string | null
10000
10000
  * @param needle the nul-terminated string to search for
10001
10001
  * @returns a pointer to the found occurrence, or %NULL if not found.
10002
10002
  */
10003
- function strrstr(haystack: string | null, needle: string | null): string | null
10003
+ function strrstr(haystack: string, needle: string): string | null
10004
10004
  /**
10005
10005
  * Searches the string `haystack` for the last occurrence
10006
10006
  * of the string `needle,` limiting the length of the search
@@ -10010,7 +10010,7 @@ function strrstr(haystack: string | null, needle: string | null): string | null
10010
10010
  * @param needle the nul-terminated string to search for
10011
10011
  * @returns a pointer to the found occurrence, or %NULL if not found.
10012
10012
  */
10013
- function strrstr_len(haystack: string | null, haystack_len: number, needle: string | null): string | null
10013
+ function strrstr_len(haystack: string, haystack_len: number, needle: string): string | null
10014
10014
  /**
10015
10015
  * Returns a string describing the given signal, e.g. "Segmentation fault".
10016
10016
  * You should use this function in preference to strsignal(), because it
@@ -10019,7 +10019,7 @@ function strrstr_len(haystack: string | null, haystack_len: number, needle: stri
10019
10019
  * @param signum the signal number. See the `signal` documentation
10020
10020
  * @returns a UTF-8 string describing the signal. If the signal is unknown, it returns "unknown signal (<signum>)".
10021
10021
  */
10022
- function strsignal(signum: number): string | null
10022
+ function strsignal(signum: number): string
10023
10023
  /**
10024
10024
  * Searches the string `haystack` for the first occurrence
10025
10025
  * of the string `needle,` limiting the length of the search
@@ -10029,7 +10029,7 @@ function strsignal(signum: number): string | null
10029
10029
  * @param needle the string to search for
10030
10030
  * @returns a pointer to the found occurrence, or %NULL if not found.
10031
10031
  */
10032
- function strstr_len(haystack: string | null, haystack_len: number, needle: string | null): string | null
10032
+ function strstr_len(haystack: string, haystack_len: number, needle: string): string | null
10033
10033
  /**
10034
10034
  * Converts a string to a #gdouble value.
10035
10035
  * It calls the standard strtod() function to handle the conversion, but
@@ -10045,7 +10045,7 @@ function strstr_len(haystack: string | null, haystack_len: number, needle: strin
10045
10045
  * @param nptr the string to convert to a numeric value.
10046
10046
  * @returns the #gdouble value.
10047
10047
  */
10048
- function strtod(nptr: string | null): [ /* returnType */ number, /* endptr */ string | null ]
10048
+ function strtod(nptr: string): [ /* returnType */ number, /* endptr */ string ]
10049
10049
  /**
10050
10050
  * Converts a string to upper case.
10051
10051
  * @param string the string to convert
@@ -10058,7 +10058,7 @@ function strup(string: string | null): string | null
10058
10058
  * @param str a string
10059
10059
  * @returns %TRUE if @str is an element of @strv, according to g_str_equal().
10060
10060
  */
10061
- function strv_contains(strv: string | null, str: string | null): boolean
10061
+ function strv_contains(strv: string, str: string): boolean
10062
10062
  /**
10063
10063
  * Checks if `strv1` and `strv2` contain exactly the same elements in exactly the
10064
10064
  * same order. Elements are compared using g_str_equal(). To match independently
@@ -10070,7 +10070,7 @@ function strv_contains(strv: string | null, str: string | null): boolean
10070
10070
  * @param strv2 another %NULL-terminated array of strings
10071
10071
  * @returns %TRUE if @strv1 and @strv2 are equal
10072
10072
  */
10073
- function strv_equal(strv1: string | null, strv2: string | null): boolean
10073
+ function strv_equal(strv1: string, strv2: string): boolean
10074
10074
  function strv_get_type(): GObject.GType
10075
10075
  /**
10076
10076
  * Returns the length of the given %NULL-terminated
@@ -10097,7 +10097,7 @@ function strv_length(str_array: string | null): number
10097
10097
  * @param test_data Test data argument for the test function.
10098
10098
  * @param test_func The test function to invoke for this test.
10099
10099
  */
10100
- function test_add_data_func(testpath: string | null, test_data: any | null, test_func: TestDataFunc): void
10100
+ function test_add_data_func(testpath: string, test_data: any | null, test_func: TestDataFunc): void
10101
10101
  /**
10102
10102
  * Create a new test case, as with g_test_add_data_func(), but freeing
10103
10103
  * `test_data` after the test run is complete.
@@ -10105,7 +10105,7 @@ function test_add_data_func(testpath: string | null, test_data: any | null, test
10105
10105
  * @param test_data Test data argument for the test function.
10106
10106
  * @param test_func The test function to invoke for this test.
10107
10107
  */
10108
- function test_add_data_func_full(testpath: string | null, test_data: any | null, test_func: TestDataFunc): void
10108
+ function test_add_data_func_full(testpath: string, test_data: any | null, test_func: TestDataFunc): void
10109
10109
  /**
10110
10110
  * Create a new test case, similar to g_test_create_case(). However
10111
10111
  * the test is assumed to use no fixture, and test suites are automatically
@@ -10122,8 +10122,8 @@ function test_add_data_func_full(testpath: string | null, test_data: any | null,
10122
10122
  * @param testpath /-separated test case path name for the test.
10123
10123
  * @param test_func The test function to invoke for this test.
10124
10124
  */
10125
- function test_add_func(testpath: string | null, test_func: TestFunc): void
10126
- function test_assert_expected_messages_internal(domain: string | null, file: string | null, line: number, func: string | null): void
10125
+ function test_add_func(testpath: string, test_func: TestFunc): void
10126
+ function test_assert_expected_messages_internal(domain: string, file: string, line: number, func: string): void
10127
10127
  /**
10128
10128
  * This function adds a message to test reports that
10129
10129
  * associates a bug URI with a test case.
@@ -10137,7 +10137,7 @@ function test_assert_expected_messages_internal(domain: string | null, file: str
10137
10137
  * is already a valid URI.
10138
10138
  * @param bug_uri_snippet Bug specific bug tracker URI or URI portion.
10139
10139
  */
10140
- function test_bug(bug_uri_snippet: string | null): void
10140
+ function test_bug(bug_uri_snippet: string): void
10141
10141
  /**
10142
10142
  * Specify the base URI for bug reports.
10143
10143
  *
@@ -10155,7 +10155,7 @@ function test_bug(bug_uri_snippet: string | null): void
10155
10155
  * from the value provided by g_test_bug().
10156
10156
  * @param uri_pattern the base pattern for bug URIs
10157
10157
  */
10158
- function test_bug_base(uri_pattern: string | null): void
10158
+ function test_bug_base(uri_pattern: string): void
10159
10159
  /**
10160
10160
  * Indicates that a message with the given `log_domain` and `log_level,`
10161
10161
  * with text matching `pattern,` is expected to be logged. When this
@@ -10197,7 +10197,7 @@ function test_bug_base(uri_pattern: string | null): void
10197
10197
  * @param log_level the log level of the message
10198
10198
  * @param pattern a glob-style [pattern][glib-Glob-style-pattern-matching]
10199
10199
  */
10200
- function test_expect_message(log_domain: string | null, log_level: LogLevelFlags, pattern: string | null): void
10200
+ function test_expect_message(log_domain: string | null, log_level: LogLevelFlags, pattern: string): void
10201
10201
  /**
10202
10202
  * Indicates that a test failed. This function can be called
10203
10203
  * multiple times from the same test. You can use this function
@@ -10255,7 +10255,7 @@ function test_get_dir(file_type: TestFileType): string
10255
10255
  * Note that this is a test path, not a file system path.
10256
10256
  * @returns the test path for the test currently being run
10257
10257
  */
10258
- function test_get_path(): string | null
10258
+ function test_get_path(): string
10259
10259
  /**
10260
10260
  * Indicates that a test failed because of some incomplete
10261
10261
  * functionality. This function can be called multiple times
@@ -10270,7 +10270,7 @@ function test_get_path(): string | null
10270
10270
  * @param msg explanation
10271
10271
  */
10272
10272
  function test_incomplete(msg: string | null): void
10273
- function test_log_type_name(log_type: TestLogType): string | null
10273
+ function test_log_type_name(log_type: TestLogType): string
10274
10274
  /**
10275
10275
  * This function enqueus a callback `destroy_func` to be executed
10276
10276
  * during the next test case teardown phase. This is most useful
@@ -10428,7 +10428,7 @@ function test_subprocess(): boolean
10428
10428
  *
10429
10429
  * @param summary One or two sentences summarising what the test checks, and how it checks it.
10430
10430
  */
10431
- function test_summary(summary: string | null): void
10431
+ function test_summary(summary: string): void
10432
10432
  /**
10433
10433
  * Get the number of seconds since the last start of the timer with
10434
10434
  * g_test_timer_start().
@@ -10445,7 +10445,7 @@ function test_timer_last(): number
10445
10445
  * to be done. Call this function again to restart the timer.
10446
10446
  */
10447
10447
  function test_timer_start(): void
10448
- function test_trap_assertions(domain: string | null, file: string | null, line: number, func: string | null, assertion_flags: number, pattern: string | null): void
10448
+ function test_trap_assertions(domain: string, file: string, line: number, func: string, assertion_flags: number, pattern: string): void
10449
10449
  /**
10450
10450
  * Fork the current test program to execute a test case that might
10451
10451
  * not return or that might abort.
@@ -10670,7 +10670,7 @@ function thread_yield(): void
10670
10670
  * @param iso_date an ISO 8601 encoded date string
10671
10671
  * @returns %TRUE if the conversion was successful.
10672
10672
  */
10673
- function time_val_from_iso8601(iso_date: string | null): [ /* returnType */ boolean, /* time_ */ TimeVal ]
10673
+ function time_val_from_iso8601(iso_date: string): [ /* returnType */ boolean, /* time_ */ TimeVal ]
10674
10674
  /**
10675
10675
  * Sets a function to be called at regular intervals, with the given
10676
10676
  * priority. The function is called repeatedly until it returns
@@ -11160,7 +11160,7 @@ function unichar_iszerowidth(c: string): boolean
11160
11160
  * @param c a Unicode character code
11161
11161
  * @returns number of bytes written
11162
11162
  */
11163
- function unichar_to_utf8(c: string): [ /* returnType */ number, /* outbuf */ string | null ]
11163
+ function unichar_to_utf8(c: string): [ /* returnType */ number, /* outbuf */ string ]
11164
11164
  /**
11165
11165
  * Converts a character to lower case.
11166
11166
  * @param c a Unicode character.
@@ -11286,7 +11286,7 @@ function unix_fd_source_new(fd: number, condition: IOCondition): Source
11286
11286
  * @param user_name the username to get the passwd file entry for
11287
11287
  * @returns passwd entry, or %NULL on error; free the returned value with g_free()
11288
11288
  */
11289
- function unix_get_passwd_entry(user_name: string | null): any | null
11289
+ function unix_get_passwd_entry(user_name: string): any | null
11290
11290
  /**
11291
11291
  * Similar to the UNIX pipe() call, but on modern systems like Linux
11292
11292
  * uses the pipe2() system call, which atomically creates a pipe with
@@ -11402,7 +11402,7 @@ function unsetenv(variable: string): void
11402
11402
  * @param fragment the fragment, or %NULL
11403
11403
  * @returns a new #GUri
11404
11404
  */
11405
- 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
11405
+ function uri_build(flags: UriFlags, scheme: string, userinfo: string | null, host: string | null, port: number, path: string, query: string | null, fragment: string | null): Uri
11406
11406
  /**
11407
11407
  * Creates a new #GUri from the given components according to `flags`
11408
11408
  * (%G_URI_FLAGS_HAS_PASSWORD is added unconditionally). The `flags` must be
@@ -11424,7 +11424,7 @@ function uri_build(flags: UriFlags, scheme: string | null, userinfo: string | nu
11424
11424
  * @param fragment the fragment, or %NULL
11425
11425
  * @returns a new #GUri
11426
11426
  */
11427
- 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
11427
+ 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
11428
11428
  function uri_error_quark(): Quark
11429
11429
  /**
11430
11430
  * Escapes arbitrary data for use in a URI.
@@ -11457,7 +11457,7 @@ function uri_escape_bytes(unescaped: Uint8Array, reserved_chars_allowed: string
11457
11457
  * @param allow_utf8 %TRUE if the result can include UTF-8 characters.
11458
11458
  * @returns an escaped version of @unescaped. The returned string should be freed when no longer needed.
11459
11459
  */
11460
- function uri_escape_string(unescaped: string | null, reserved_chars_allowed: string | null, allow_utf8: boolean): string | null
11460
+ function uri_escape_string(unescaped: string, reserved_chars_allowed: string | null, allow_utf8: boolean): string | null
11461
11461
  /**
11462
11462
  * Parses `uri_string` according to `flags,` to determine whether it is a valid
11463
11463
  * [absolute URI][relative-absolute-uris], i.e. it does not need to be resolved
@@ -11471,7 +11471,7 @@ function uri_escape_string(unescaped: string | null, reserved_chars_allowed: str
11471
11471
  * @param flags flags for parsing `uri_string`
11472
11472
  * @returns %TRUE if @uri_string is a valid absolute URI, %FALSE on error.
11473
11473
  */
11474
- function uri_is_valid(uri_string: string | null, flags: UriFlags): boolean
11474
+ function uri_is_valid(uri_string: string, flags: UriFlags): boolean
11475
11475
  /**
11476
11476
  * Joins the given components together according to `flags` to create
11477
11477
  * an absolute URI string. `path` may not be %NULL (though it may be the empty
@@ -11497,7 +11497,7 @@ function uri_is_valid(uri_string: string | null, flags: UriFlags): boolean
11497
11497
  * @param fragment the fragment, or %NULL
11498
11498
  * @returns an absolute URI string
11499
11499
  */
11500
- 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
11500
+ 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
11501
11501
  /**
11502
11502
  * Joins the given components together according to `flags` to create
11503
11503
  * an absolute URI string. `path` may not be %NULL (though it may be the empty
@@ -11520,7 +11520,7 @@ function uri_join(flags: UriFlags, scheme: string | null, userinfo: string | nul
11520
11520
  * @param fragment the fragment, or %NULL
11521
11521
  * @returns an absolute URI string
11522
11522
  */
11523
- 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
11523
+ 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
11524
11524
  /**
11525
11525
  * Splits an URI list conforming to the text/uri-list
11526
11526
  * mime type defined in RFC 2483 into individual URIs,
@@ -11528,7 +11528,7 @@ function uri_join_with_user(flags: UriFlags, scheme: string | null, user: string
11528
11528
  * @param uri_list an URI list
11529
11529
  * @returns a newly allocated %NULL-terminated list of strings holding the individual URIs. The array should be freed with g_strfreev().
11530
11530
  */
11531
- function uri_list_extract_uris(uri_list: string | null): string[]
11531
+ function uri_list_extract_uris(uri_list: string): string[]
11532
11532
  /**
11533
11533
  * Parses `uri_string` according to `flags`. If the result is not a
11534
11534
  * valid [absolute URI][relative-absolute-uris], it will be discarded, and an
@@ -11537,7 +11537,7 @@ function uri_list_extract_uris(uri_list: string | null): string[]
11537
11537
  * @param flags flags describing how to parse `uri_string`
11538
11538
  * @returns a new #GUri, or NULL on error.
11539
11539
  */
11540
- function uri_parse(uri_string: string | null, flags: UriFlags): Uri
11540
+ function uri_parse(uri_string: string, flags: UriFlags): Uri
11541
11541
  /**
11542
11542
  * Many URI schemes include one or more attribute/value pairs as part of the URI
11543
11543
  * value. This method can be used to parse them into a hash table. When an
@@ -11569,7 +11569,7 @@ function uri_parse(uri_string: string | null, flags: UriFlags): Uri
11569
11569
  * @param flags flags to modify the way the parameters are handled.
11570
11570
  * @returns A hash table of attribute/value pairs, with both names and values fully-decoded; or %NULL on error.
11571
11571
  */
11572
- function uri_parse_params(params: string | null, length: number, separators: string | null, flags: UriParamsFlags): HashTable
11572
+ function uri_parse_params(params: string, length: number, separators: string, flags: UriParamsFlags): HashTable
11573
11573
  /**
11574
11574
  * Gets the scheme portion of a URI string.
11575
11575
  * [RFC 3986](https://tools.ietf.org/html/rfc3986#section-3) decodes the scheme
@@ -11583,7 +11583,7 @@ function uri_parse_params(params: string | null, length: number, separators: str
11583
11583
  * @param uri a valid URI.
11584
11584
  * @returns The ‘scheme’ component of the URI, or %NULL on error. The returned string should be freed when no longer needed.
11585
11585
  */
11586
- function uri_parse_scheme(uri: string | null): string | null
11586
+ function uri_parse_scheme(uri: string): string | null
11587
11587
  /**
11588
11588
  * Gets the scheme portion of a URI string.
11589
11589
  * [RFC 3986](https://tools.ietf.org/html/rfc3986#section-3) decodes the scheme
@@ -11600,7 +11600,7 @@ function uri_parse_scheme(uri: string | null): string | null
11600
11600
  * @param uri a valid URI.
11601
11601
  * @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.
11602
11602
  */
11603
- function uri_peek_scheme(uri: string | null): string | null
11603
+ function uri_peek_scheme(uri: string): string | null
11604
11604
  /**
11605
11605
  * Parses `uri_ref` according to `flags` and, if it is a
11606
11606
  * [relative URI][relative-absolute-uris], resolves it relative to
@@ -11614,7 +11614,7 @@ function uri_peek_scheme(uri: string | null): string | null
11614
11614
  * @param flags flags describing how to parse `uri_ref`
11615
11615
  * @returns the resolved URI string, or NULL on error.
11616
11616
  */
11617
- function uri_resolve_relative(base_uri_string: string | null, uri_ref: string | null, flags: UriFlags): string | null
11617
+ function uri_resolve_relative(base_uri_string: string | null, uri_ref: string, flags: UriFlags): string | null
11618
11618
  /**
11619
11619
  * Parses `uri_ref` (which can be an
11620
11620
  * [absolute or relative URI][relative-absolute-uris]) according to `flags,` and
@@ -11636,7 +11636,7 @@ function uri_resolve_relative(base_uri_string: string | null, uri_ref: string |
11636
11636
  * @param flags flags for parsing `uri_ref`
11637
11637
  * @returns %TRUE if @uri_ref parsed successfully, %FALSE on error.
11638
11638
  */
11639
- 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 ]
11639
+ 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 ]
11640
11640
  /**
11641
11641
  * Parses `uri_string` (which must be an [absolute URI][relative-absolute-uris])
11642
11642
  * according to `flags,` and returns the pieces relevant to connecting to a host.
@@ -11648,7 +11648,7 @@ function uri_split(uri_ref: string | null, flags: UriFlags): [ /* returnType */
11648
11648
  * @param flags flags for parsing `uri_string`
11649
11649
  * @returns %TRUE if @uri_string parsed successfully, %FALSE on error.
11650
11650
  */
11651
- function uri_split_network(uri_string: string | null, flags: UriFlags): [ /* returnType */ boolean, /* scheme */ string | null, /* host */ string | null, /* port */ number ]
11651
+ function uri_split_network(uri_string: string, flags: UriFlags): [ /* returnType */ boolean, /* scheme */ string | null, /* host */ string | null, /* port */ number ]
11652
11652
  /**
11653
11653
  * Parses `uri_ref` (which can be an
11654
11654
  * [absolute or relative URI][relative-absolute-uris]) according to `flags,` and
@@ -11665,7 +11665,7 @@ function uri_split_network(uri_string: string | null, flags: UriFlags): [ /* ret
11665
11665
  * @param flags flags for parsing `uri_ref`
11666
11666
  * @returns %TRUE if @uri_ref parsed successfully, %FALSE on error.
11667
11667
  */
11668
- 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 ]
11668
+ 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 ]
11669
11669
  /**
11670
11670
  * Unescapes a segment of an escaped string as binary data.
11671
11671
  *
@@ -11682,7 +11682,7 @@ function uri_split_with_user(uri_ref: string | null, flags: UriFlags): [ /* retu
11682
11682
  * @param illegal_characters a string of illegal characters not to be allowed, or %NULL.
11683
11683
  * @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.
11684
11684
  */
11685
- function uri_unescape_bytes(escaped_string: string | null, length: number, illegal_characters: string | null): Bytes
11685
+ function uri_unescape_bytes(escaped_string: string, length: number, illegal_characters: string | null): Bytes
11686
11686
  /**
11687
11687
  * Unescapes a segment of an escaped string.
11688
11688
  *
@@ -11712,7 +11712,7 @@ function uri_unescape_segment(escaped_string: string | null, escaped_string_end:
11712
11712
  * @param illegal_characters a string of illegal characters not to be allowed, or %NULL.
11713
11713
  * @returns an unescaped version of @escaped_string. The returned string should be freed when no longer needed.
11714
11714
  */
11715
- function uri_unescape_string(escaped_string: string | null, illegal_characters: string | null): string | null
11715
+ function uri_unescape_string(escaped_string: string, illegal_characters: string | null): string | null
11716
11716
  /**
11717
11717
  * Pauses the current thread for the given number of microseconds.
11718
11718
  *
@@ -11764,7 +11764,7 @@ function utf16_to_utf8(str: number[]): [ /* returnType */ string | null, /* item
11764
11764
  * @param len length of `str,` in bytes, or -1 if `str` is nul-terminated.
11765
11765
  * @returns a newly allocated string, that is a case independent form of @str.
11766
11766
  */
11767
- function utf8_casefold(str: string | null, len: number): string | null
11767
+ function utf8_casefold(str: string, len: number): string | null
11768
11768
  /**
11769
11769
  * Compares two strings for ordering using the linguistically
11770
11770
  * correct rules for the [current locale][setlocale].
@@ -11780,7 +11780,7 @@ function utf8_casefold(str: string | null, len: number): string | null
11780
11780
  * @param str2 a UTF-8 encoded string
11781
11781
  * @returns < 0 if @str1 compares before @str2, 0 if they compare equal, > 0 if @str1 compares after @str2.
11782
11782
  */
11783
- function utf8_collate(str1: string | null, str2: string | null): number
11783
+ function utf8_collate(str1: string, str2: string): number
11784
11784
  /**
11785
11785
  * Converts a string into a collation key that can be compared
11786
11786
  * with other collation keys produced by the same function using
@@ -11795,7 +11795,7 @@ function utf8_collate(str1: string | null, str2: string | null): number
11795
11795
  * @param len length of `str,` in bytes, or -1 if `str` is nul-terminated.
11796
11796
  * @returns a newly allocated string. This string should be freed with g_free() when you are done with it.
11797
11797
  */
11798
- function utf8_collate_key(str: string | null, len: number): string | null
11798
+ function utf8_collate_key(str: string, len: number): string | null
11799
11799
  /**
11800
11800
  * Converts a string into a collation key that can be compared
11801
11801
  * with other collation keys produced by the same function using strcmp().
@@ -11812,7 +11812,7 @@ function utf8_collate_key(str: string | null, len: number): string | null
11812
11812
  * @param len length of `str,` in bytes, or -1 if `str` is nul-terminated.
11813
11813
  * @returns a newly allocated string. This string should be freed with g_free() when you are done with it.
11814
11814
  */
11815
- function utf8_collate_key_for_filename(str: string | null, len: number): string | null
11815
+ function utf8_collate_key_for_filename(str: string, len: number): string | null
11816
11816
  /**
11817
11817
  * Finds the start of the next UTF-8 character in the string after `p`.
11818
11818
  *
@@ -11828,7 +11828,7 @@ function utf8_collate_key_for_filename(str: string | null, len: number): string
11828
11828
  * @param end a pointer to the byte following the end of the string, or %NULL to indicate that the string is nul-terminated
11829
11829
  * @returns a pointer to the found character or %NULL if @end is set and is reached
11830
11830
  */
11831
- function utf8_find_next_char(p: string | null, end: string | null): string | null
11831
+ function utf8_find_next_char(p: string, end: string | null): string | null
11832
11832
  /**
11833
11833
  * Given a position `p` with a UTF-8 encoded string `str,` find the start
11834
11834
  * of the previous UTF-8 character starting before `p`. Returns %NULL if no
@@ -11841,7 +11841,7 @@ function utf8_find_next_char(p: string | null, end: string | null): string | nul
11841
11841
  * @param p pointer to some position within `str`
11842
11842
  * @returns a pointer to the found character or %NULL.
11843
11843
  */
11844
- function utf8_find_prev_char(str: string | null, p: string | null): string | null
11844
+ function utf8_find_prev_char(str: string, p: string): string | null
11845
11845
  /**
11846
11846
  * Converts a sequence of bytes encoded as UTF-8 to a Unicode character.
11847
11847
  *
@@ -11852,7 +11852,7 @@ function utf8_find_prev_char(str: string | null, p: string | null): string | nul
11852
11852
  * @param p a pointer to Unicode character encoded as UTF-8
11853
11853
  * @returns the resulting character
11854
11854
  */
11855
- function utf8_get_char(p: string | null): string
11855
+ function utf8_get_char(p: string): string
11856
11856
  /**
11857
11857
  * Convert a sequence of bytes encoded as UTF-8 to a Unicode character.
11858
11858
  * This function checks for incomplete characters, for invalid characters
@@ -11866,7 +11866,7 @@ function utf8_get_char(p: string | null): string
11866
11866
  * @param max_len the maximum number of bytes to read, or -1 if `p` is nul-terminated
11867
11867
  * @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.
11868
11868
  */
11869
- function utf8_get_char_validated(p: string | null, max_len: number): string
11869
+ function utf8_get_char_validated(p: string, max_len: number): string
11870
11870
  /**
11871
11871
  * If the provided string is valid UTF-8, return a copy of it. If not,
11872
11872
  * return a copy in which bytes that could not be interpreted as valid Unicode
@@ -11881,7 +11881,7 @@ function utf8_get_char_validated(p: string | null, max_len: number): string
11881
11881
  * @param len the maximum length of `str` to use, in bytes. If `len` < 0, then the string is nul-terminated.
11882
11882
  * @returns a valid UTF-8 string whose content resembles @str
11883
11883
  */
11884
- function utf8_make_valid(str: string | null, len: number): string | null
11884
+ function utf8_make_valid(str: string, len: number): string | null
11885
11885
  /**
11886
11886
  * Converts a string into canonical form, standardizing
11887
11887
  * such issues as whether a character with an accent
@@ -11913,7 +11913,7 @@ function utf8_make_valid(str: string | null, len: number): string | null
11913
11913
  * @param mode the type of normalization to perform.
11914
11914
  * @returns a newly allocated string, that is the normalized form of @str, or %NULL if @str is not valid UTF-8.
11915
11915
  */
11916
- function utf8_normalize(str: string | null, len: number, mode: NormalizeMode): string | null
11916
+ function utf8_normalize(str: string, len: number, mode: NormalizeMode): string | null
11917
11917
  /**
11918
11918
  * Converts from an integer character offset to a pointer to a position
11919
11919
  * within the string.
@@ -11932,7 +11932,7 @@ function utf8_normalize(str: string | null, len: number, mode: NormalizeMode): s
11932
11932
  * @param offset a character offset within `str`
11933
11933
  * @returns the resulting pointer
11934
11934
  */
11935
- function utf8_offset_to_pointer(str: string | null, offset: number): string | null
11935
+ function utf8_offset_to_pointer(str: string, offset: number): string | null
11936
11936
  /**
11937
11937
  * Converts from a pointer to position within a string to an integer
11938
11938
  * character offset.
@@ -11943,7 +11943,7 @@ function utf8_offset_to_pointer(str: string | null, offset: number): string | nu
11943
11943
  * @param pos a pointer to a position within `str`
11944
11944
  * @returns the resulting character offset
11945
11945
  */
11946
- function utf8_pointer_to_offset(str: string | null, pos: string | null): number
11946
+ function utf8_pointer_to_offset(str: string, pos: string): number
11947
11947
  /**
11948
11948
  * Finds the previous UTF-8 character in the string before `p`.
11949
11949
  *
@@ -11954,7 +11954,7 @@ function utf8_pointer_to_offset(str: string | null, pos: string | null): number
11954
11954
  * @param p a pointer to a position within a UTF-8 encoded string
11955
11955
  * @returns a pointer to the found character
11956
11956
  */
11957
- function utf8_prev_char(p: string | null): string | null
11957
+ function utf8_prev_char(p: string): string | null
11958
11958
  /**
11959
11959
  * Finds the leftmost occurrence of the given Unicode character
11960
11960
  * in a UTF-8 encoded string, while limiting the search to `len` bytes.
@@ -11964,7 +11964,7 @@ function utf8_prev_char(p: string | null): string | null
11964
11964
  * @param c a Unicode character
11965
11965
  * @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.
11966
11966
  */
11967
- function utf8_strchr(p: string | null, len: number, c: string): string | null
11967
+ function utf8_strchr(p: string, len: number, c: string): string | null
11968
11968
  /**
11969
11969
  * Converts all Unicode characters in the string that have a case
11970
11970
  * to lowercase. The exact manner that this is done depends
@@ -11974,7 +11974,7 @@ function utf8_strchr(p: string | null, len: number, c: string): string | null
11974
11974
  * @param len length of `str,` in bytes, or -1 if `str` is nul-terminated.
11975
11975
  * @returns a newly allocated string, with all characters converted to lowercase.
11976
11976
  */
11977
- function utf8_strdown(str: string | null, len: number): string | null
11977
+ function utf8_strdown(str: string, len: number): string | null
11978
11978
  /**
11979
11979
  * Computes the length of the string in characters, not including
11980
11980
  * the terminating nul character. If the `max'`th byte falls in the
@@ -11983,7 +11983,7 @@ function utf8_strdown(str: string | null, len: number): string | null
11983
11983
  * @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
11984
11984
  * @returns the length of the string in characters
11985
11985
  */
11986
- function utf8_strlen(p: string | null, max: number): number
11986
+ function utf8_strlen(p: string, max: number): number
11987
11987
  /**
11988
11988
  * Like the standard C strncpy() function, but copies a given number
11989
11989
  * of characters instead of a given number of bytes. The `src` string
@@ -11997,7 +11997,7 @@ function utf8_strlen(p: string | null, max: number): number
11997
11997
  * @param n character count
11998
11998
  * @returns @dest
11999
11999
  */
12000
- function utf8_strncpy(dest: string | null, src: string | null, n: number): string | null
12000
+ function utf8_strncpy(dest: string | null, src: string, n: number): string | null
12001
12001
  /**
12002
12002
  * Find the rightmost occurrence of the given Unicode character
12003
12003
  * in a UTF-8 encoded string, while limiting the search to `len` bytes.
@@ -12007,7 +12007,7 @@ function utf8_strncpy(dest: string | null, src: string | null, n: number): strin
12007
12007
  * @param c a Unicode character
12008
12008
  * @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.
12009
12009
  */
12010
- function utf8_strrchr(p: string | null, len: number, c: string): string | null
12010
+ function utf8_strrchr(p: string, len: number, c: string): string | null
12011
12011
  /**
12012
12012
  * Reverses a UTF-8 string. `str` must be valid UTF-8 encoded text.
12013
12013
  * (Use g_utf8_validate() on all text before trying to use UTF-8
@@ -12026,7 +12026,7 @@ function utf8_strrchr(p: string | null, len: number, c: string): string | null
12026
12026
  * @param len the maximum length of `str` to use, in bytes. If `len` < 0, then the string is nul-terminated.
12027
12027
  * @returns a newly-allocated string which is the reverse of @str
12028
12028
  */
12029
- function utf8_strreverse(str: string | null, len: number): string | null
12029
+ function utf8_strreverse(str: string, len: number): string | null
12030
12030
  /**
12031
12031
  * Converts all Unicode characters in the string that have a case
12032
12032
  * to uppercase. The exact manner that this is done depends
@@ -12037,7 +12037,7 @@ function utf8_strreverse(str: string | null, len: number): string | null
12037
12037
  * @param len length of `str,` in bytes, or -1 if `str` is nul-terminated.
12038
12038
  * @returns a newly allocated string, with all characters converted to uppercase.
12039
12039
  */
12040
- function utf8_strup(str: string | null, len: number): string | null
12040
+ function utf8_strup(str: string, len: number): string | null
12041
12041
  /**
12042
12042
  * Copies a substring out of a UTF-8 encoded string.
12043
12043
  * The substring will contain `end_pos` - `start_pos` characters.
@@ -12049,7 +12049,7 @@ function utf8_strup(str: string | null, len: number): string | null
12049
12049
  * @param end_pos another character offset within `str,` or `-1` to indicate the end of the string
12050
12050
  * @returns a newly allocated copy of the requested substring. Free with g_free() when no longer needed.
12051
12051
  */
12052
- function utf8_substring(str: string | null, start_pos: number, end_pos: number): string | null
12052
+ function utf8_substring(str: string, start_pos: number, end_pos: number): string | null
12053
12053
  /**
12054
12054
  * Convert a string from UTF-8 to a 32-bit fixed width
12055
12055
  * representation as UCS-4. A trailing 0 character will be added to the
@@ -12058,7 +12058,7 @@ function utf8_substring(str: string | null, start_pos: number, end_pos: number):
12058
12058
  * @param len the maximum length of `str` to use, in bytes. If `len` < 0, then the string is nul-terminated.
12059
12059
  * @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.
12060
12060
  */
12061
- function utf8_to_ucs4(str: string | null, len: number): [ /* returnType */ string, /* items_read */ number, /* items_written */ number ]
12061
+ function utf8_to_ucs4(str: string, len: number): [ /* returnType */ string, /* items_read */ number, /* items_written */ number ]
12062
12062
  /**
12063
12063
  * Convert a string from UTF-8 to a 32-bit fixed width
12064
12064
  * representation as UCS-4, assuming valid UTF-8 input.
@@ -12069,7 +12069,7 @@ function utf8_to_ucs4(str: string | null, len: number): [ /* returnType */ strin
12069
12069
  * @param len the maximum length of `str` to use, in bytes. If `len` < 0, then the string is nul-terminated.
12070
12070
  * @returns a pointer to a newly allocated UCS-4 string. This value must be freed with g_free().
12071
12071
  */
12072
- function utf8_to_ucs4_fast(str: string | null, len: number): [ /* returnType */ string, /* items_written */ number ]
12072
+ function utf8_to_ucs4_fast(str: string, len: number): [ /* returnType */ string, /* items_written */ number ]
12073
12073
  /**
12074
12074
  * Convert a string from UTF-8 to UTF-16. A 0 character will be
12075
12075
  * added to the result after the converted text.
@@ -12077,7 +12077,7 @@ function utf8_to_ucs4_fast(str: string | null, len: number): [ /* returnType */
12077
12077
  * @param len the maximum length (number of bytes) of `str` to use. If `len` < 0, then the string is nul-terminated.
12078
12078
  * @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.
12079
12079
  */
12080
- function utf8_to_utf16(str: string | null, len: number): [ /* returnType */ number, /* items_read */ number, /* items_written */ number ]
12080
+ function utf8_to_utf16(str: string, len: number): [ /* returnType */ number, /* items_read */ number, /* items_written */ number ]
12081
12081
  /**
12082
12082
  * Cuts off the middle of the string, preserving half of `truncate_length`
12083
12083
  * characters at the beginning and half at the end.
@@ -12088,7 +12088,7 @@ function utf8_to_utf16(str: string | null, len: number): [ /* returnType */ numb
12088
12088
  * @param truncate_length the new size of `string,` in characters, including the ellipsis character
12089
12089
  * @returns a newly-allocated copy of @string ellipsized in the middle
12090
12090
  */
12091
- function utf8_truncate_middle(string: string | null, truncate_length: number): string | null
12091
+ function utf8_truncate_middle(string: string, truncate_length: number): string | null
12092
12092
  /**
12093
12093
  * Validates UTF-8 encoded text. `str` is the text to validate;
12094
12094
  * if `str` is nul-terminated, then `max_len` can be -1, otherwise
@@ -12108,7 +12108,7 @@ function utf8_truncate_middle(string: string | null, truncate_length: number): s
12108
12108
  * @param str a pointer to character data
12109
12109
  * @returns %TRUE if the text was valid UTF-8
12110
12110
  */
12111
- function utf8_validate(str: Uint8Array): [ /* returnType */ boolean, /* end */ string | null ]
12111
+ function utf8_validate(str: Uint8Array): [ /* returnType */ boolean, /* end */ string ]
12112
12112
  /**
12113
12113
  * Validates UTF-8 encoded text.
12114
12114
  *
@@ -12117,7 +12117,7 @@ function utf8_validate(str: Uint8Array): [ /* returnType */ boolean, /* end */ s
12117
12117
  * @param str a pointer to character data
12118
12118
  * @returns %TRUE if the text was valid UTF-8
12119
12119
  */
12120
- function utf8_validate_len(str: Uint8Array): [ /* returnType */ boolean, /* end */ string | null ]
12120
+ function utf8_validate_len(str: Uint8Array): [ /* returnType */ boolean, /* end */ string ]
12121
12121
  /**
12122
12122
  * Parses the string `str` and verify if it is a UUID.
12123
12123
  *
@@ -12130,7 +12130,7 @@ function utf8_validate_len(str: Uint8Array): [ /* returnType */ boolean, /* end
12130
12130
  * @param str a string representing a UUID
12131
12131
  * @returns %TRUE if @str is a valid UUID, %FALSE otherwise.
12132
12132
  */
12133
- function uuid_string_is_valid(str: string | null): boolean
12133
+ function uuid_string_is_valid(str: string): boolean
12134
12134
  /**
12135
12135
  * Generates a random UUID (RFC 4122 version 4) as a string. It has the same
12136
12136
  * randomness guarantees as #GRand, so must not be used for cryptographic
@@ -12151,7 +12151,7 @@ function variant_get_gtype(): GObject.GType
12151
12151
  * @param string a normal C nul-terminated string
12152
12152
  * @returns %TRUE if @string is a D-Bus object path
12153
12153
  */
12154
- function variant_is_object_path(string: string | null): boolean
12154
+ function variant_is_object_path(string: string): boolean
12155
12155
  /**
12156
12156
  * Determines if a given string is a valid D-Bus type signature. You
12157
12157
  * should ensure that a string is a valid D-Bus type signature before
@@ -12162,7 +12162,7 @@ function variant_is_object_path(string: string | null): boolean
12162
12162
  * @param string a normal C nul-terminated string
12163
12163
  * @returns %TRUE if @string is a D-Bus type signature
12164
12164
  */
12165
- function variant_is_signature(string: string | null): boolean
12165
+ function variant_is_signature(string: string): boolean
12166
12166
  /**
12167
12167
  * Parses a #GVariant from a text representation.
12168
12168
  *
@@ -12205,7 +12205,7 @@ function variant_is_signature(string: string | null): boolean
12205
12205
  * @param endptr a location to store the end pointer, or %NULL
12206
12206
  * @returns a non-floating reference to a #GVariant, or %NULL
12207
12207
  */
12208
- function variant_parse(type: VariantType | null, text: string | null, limit: string | null, endptr: string | null): Variant
12208
+ function variant_parse(type: VariantType | null, text: string, limit: string | null, endptr: string | null): Variant
12209
12209
  /**
12210
12210
  * Pretty-prints a message showing the context of a #GVariant parse
12211
12211
  * error within the string for which parsing was attempted.
@@ -12244,14 +12244,14 @@ function variant_parse(type: VariantType | null, text: string | null, limit: str
12244
12244
  * @param source_str the string that was given to the parser
12245
12245
  * @returns the printed message
12246
12246
  */
12247
- function variant_parse_error_print_context(error: Error, source_str: string | null): string | null
12247
+ function variant_parse_error_print_context(error: Error, source_str: string): string | null
12248
12248
  function variant_parse_error_quark(): Quark
12249
12249
  /**
12250
12250
  * Same as g_variant_error_quark().
12251
12251
  */
12252
12252
  function variant_parser_get_error_quark(): Quark
12253
- function variant_type_checked_(arg0: string | null): VariantType
12254
- function variant_type_string_get_depth_(type_string: string | null): number
12253
+ function variant_type_checked_(arg0: string): VariantType
12254
+ function variant_type_string_get_depth_(type_string: string): number
12255
12255
  /**
12256
12256
  * Checks if `type_string` is a valid GVariant type string. This call is
12257
12257
  * equivalent to calling g_variant_type_string_scan() and confirming
@@ -12259,7 +12259,7 @@ function variant_type_string_get_depth_(type_string: string | null): number
12259
12259
  * @param type_string a pointer to any string
12260
12260
  * @returns %TRUE if @type_string is exactly one valid type string Since 2.24
12261
12261
  */
12262
- function variant_type_string_is_valid(type_string: string | null): boolean
12262
+ function variant_type_string_is_valid(type_string: string): boolean
12263
12263
  /**
12264
12264
  * Scan for a single complete and valid GVariant type string in `string`.
12265
12265
  * The memory pointed to by `limit` (or bytes beyond it) is never
@@ -12278,7 +12278,7 @@ function variant_type_string_is_valid(type_string: string | null): boolean
12278
12278
  * @param limit the end of `string,` or %NULL
12279
12279
  * @returns %TRUE if a valid type string was found
12280
12280
  */
12281
- function variant_type_string_scan(string: string | null, limit: string | null): [ /* returnType */ boolean, /* endptr */ string | null ]
12281
+ function variant_type_string_scan(string: string, limit: string | null): [ /* returnType */ boolean, /* endptr */ string ]
12282
12282
  /**
12283
12283
  * Prototype of a #GChildWatchSource callback, called when a child
12284
12284
  * process has exited.
@@ -12626,7 +12626,7 @@ interface IOFunc {
12626
12626
  * @param message the message to process
12627
12627
  */
12628
12628
  interface LogFunc {
12629
- (log_domain: string | null, log_level: LogLevelFlags, message: string | null): void
12629
+ (log_domain: string, log_level: LogLevelFlags, message: string): void
12630
12630
  }
12631
12631
  /**
12632
12632
  * Writer function for log entries. A log entry is a collection of one or more
@@ -12689,7 +12689,7 @@ interface NodeTraverseFunc {
12689
12689
  * @returns %TRUE if the option was successfully parsed, %FALSE if an error occurred, in which case @error should be set with g_set_error()
12690
12690
  */
12691
12691
  interface OptionArgFunc {
12692
- (option_name: string | null, value: string | null, data: any | null): boolean
12692
+ (option_name: string, value: string, data: any | null): boolean
12693
12693
  }
12694
12694
  /**
12695
12695
  * The type of function to be used as callback when a parse error occurs.
@@ -12731,7 +12731,7 @@ interface PollFunc {
12731
12731
  * @param string the message to output
12732
12732
  */
12733
12733
  interface PrintFunc {
12734
- (string: string | null): void
12734
+ (string: string): void
12735
12735
  }
12736
12736
  /**
12737
12737
  * Specifies the type of the function passed to g_regex_replace_eval().
@@ -12887,7 +12887,7 @@ interface TestFunc {
12887
12887
  * @returns %TRUE if the program should abort, %FALSE otherwise
12888
12888
  */
12889
12889
  interface TestLogFatalFunc {
12890
- (log_domain: string | null, log_level: LogLevelFlags, message: string | null): boolean
12890
+ (log_domain: string, log_level: LogLevelFlags, message: string): boolean
12891
12891
  }
12892
12892
  /**
12893
12893
  * Specifies the type of the `func` functions passed to g_thread_new()
@@ -12908,7 +12908,7 @@ interface ThreadFunc {
12908
12908
  * @returns a translation of the string for the current locale. The returned string is owned by GLib and must not be freed.
12909
12909
  */
12910
12910
  interface TranslateFunc {
12911
- (str: string | null, data: any | null): string | null
12911
+ (str: string, data: any | null): string
12912
12912
  }
12913
12913
  /**
12914
12914
  * Specifies the type of function passed to g_tree_traverse(). It is
@@ -13224,7 +13224,7 @@ interface BookmarkFile {
13224
13224
  * @param name the name of the application registering the bookmark or %NULL
13225
13225
  * @param exec command line to be used to launch the bookmark or %NULL
13226
13226
  */
13227
- add_application(uri: string | null, name: string | null, exec: string | null): void
13227
+ add_application(uri: string, name: string | null, exec: string | null): void
13228
13228
  /**
13229
13229
  * Adds `group` to the list of groups to which the bookmark for `uri`
13230
13230
  * belongs to.
@@ -13233,7 +13233,7 @@ interface BookmarkFile {
13233
13233
  * @param uri a valid URI
13234
13234
  * @param group the group name to be added
13235
13235
  */
13236
- add_group(uri: string | null, group: string | null): void
13236
+ add_group(uri: string, group: string): void
13237
13237
  /**
13238
13238
  * Deeply copies a `bookmark` #GBookmarkFile object to a new one.
13239
13239
  * @returns the copy of @bookmark. Use g_bookmark_free() when finished using it.
@@ -13251,7 +13251,7 @@ interface BookmarkFile {
13251
13251
  * @param uri a valid URI
13252
13252
  * @returns a timestamp
13253
13253
  */
13254
- get_added(uri: string | null): number
13254
+ get_added(uri: string): number
13255
13255
  /**
13256
13256
  * Gets the time the bookmark for `uri` was added to `bookmark`
13257
13257
  *
@@ -13260,7 +13260,7 @@ interface BookmarkFile {
13260
13260
  * @param uri a valid URI
13261
13261
  * @returns a #GDateTime
13262
13262
  */
13263
- get_added_date_time(uri: string | null): DateTime
13263
+ get_added_date_time(uri: string): DateTime
13264
13264
  /**
13265
13265
  * Gets the registration information of `app_name` for the bookmark for
13266
13266
  * `uri`. See g_bookmark_file_set_application_info() for more information about
@@ -13279,7 +13279,7 @@ interface BookmarkFile {
13279
13279
  * @param name an application's name
13280
13280
  * @returns %TRUE on success.
13281
13281
  */
13282
- get_app_info(uri: string | null, name: string | null): [ /* returnType */ boolean, /* exec */ string | null, /* count */ number, /* stamp */ number ]
13282
+ get_app_info(uri: string, name: string): [ /* returnType */ boolean, /* exec */ string, /* count */ number, /* stamp */ number ]
13283
13283
  /**
13284
13284
  * Gets the registration information of `app_name` for the bookmark for
13285
13285
  * `uri`. See g_bookmark_file_set_application_info() for more information about
@@ -13298,7 +13298,7 @@ interface BookmarkFile {
13298
13298
  * @param name an application's name
13299
13299
  * @returns %TRUE on success.
13300
13300
  */
13301
- get_application_info(uri: string | null, name: string | null): [ /* returnType */ boolean, /* exec */ string | null, /* count */ number, /* stamp */ DateTime ]
13301
+ get_application_info(uri: string, name: string): [ /* returnType */ boolean, /* exec */ string, /* count */ number, /* stamp */ DateTime ]
13302
13302
  /**
13303
13303
  * Retrieves the names of the applications that have registered the
13304
13304
  * bookmark for `uri`.
@@ -13308,7 +13308,7 @@ interface BookmarkFile {
13308
13308
  * @param uri a valid URI
13309
13309
  * @returns a newly allocated %NULL-terminated array of strings. Use g_strfreev() to free it.
13310
13310
  */
13311
- get_applications(uri: string | null): string[]
13311
+ get_applications(uri: string): string[]
13312
13312
  /**
13313
13313
  * Retrieves the description of the bookmark for `uri`.
13314
13314
  *
@@ -13317,7 +13317,7 @@ interface BookmarkFile {
13317
13317
  * @param uri a valid URI
13318
13318
  * @returns a newly allocated string or %NULL if the specified URI cannot be found.
13319
13319
  */
13320
- get_description(uri: string | null): string | null
13320
+ get_description(uri: string): string | null
13321
13321
  /**
13322
13322
  * Retrieves the list of group names of the bookmark for `uri`.
13323
13323
  *
@@ -13329,7 +13329,7 @@ interface BookmarkFile {
13329
13329
  * @param uri a valid URI
13330
13330
  * @returns a newly allocated %NULL-terminated array of group names. Use g_strfreev() to free it.
13331
13331
  */
13332
- get_groups(uri: string | null): string[]
13332
+ get_groups(uri: string): string[]
13333
13333
  /**
13334
13334
  * Gets the icon of the bookmark for `uri`.
13335
13335
  *
@@ -13338,7 +13338,7 @@ interface BookmarkFile {
13338
13338
  * @param uri a valid URI
13339
13339
  * @returns %TRUE if the icon for the bookmark for the URI was found. You should free the returned strings.
13340
13340
  */
13341
- get_icon(uri: string | null): [ /* returnType */ boolean, /* href */ string | null, /* mime_type */ string | null ]
13341
+ get_icon(uri: string): [ /* returnType */ boolean, /* href */ string, /* mime_type */ string ]
13342
13342
  /**
13343
13343
  * Gets whether the private flag of the bookmark for `uri` is set.
13344
13344
  *
@@ -13349,7 +13349,7 @@ interface BookmarkFile {
13349
13349
  * @param uri a valid URI
13350
13350
  * @returns %TRUE if the private flag is set, %FALSE otherwise.
13351
13351
  */
13352
- get_is_private(uri: string | null): boolean
13352
+ get_is_private(uri: string): boolean
13353
13353
  /**
13354
13354
  * Retrieves the MIME type of the resource pointed by `uri`.
13355
13355
  *
@@ -13360,7 +13360,7 @@ interface BookmarkFile {
13360
13360
  * @param uri a valid URI
13361
13361
  * @returns a newly allocated string or %NULL if the specified URI cannot be found.
13362
13362
  */
13363
- get_mime_type(uri: string | null): string | null
13363
+ get_mime_type(uri: string): string | null
13364
13364
  /**
13365
13365
  * Gets the time when the bookmark for `uri` was last modified.
13366
13366
  *
@@ -13369,7 +13369,7 @@ interface BookmarkFile {
13369
13369
  * @param uri a valid URI
13370
13370
  * @returns a timestamp
13371
13371
  */
13372
- get_modified(uri: string | null): number
13372
+ get_modified(uri: string): number
13373
13373
  /**
13374
13374
  * Gets the time when the bookmark for `uri` was last modified.
13375
13375
  *
@@ -13378,7 +13378,7 @@ interface BookmarkFile {
13378
13378
  * @param uri a valid URI
13379
13379
  * @returns a #GDateTime
13380
13380
  */
13381
- get_modified_date_time(uri: string | null): DateTime
13381
+ get_modified_date_time(uri: string): DateTime
13382
13382
  /**
13383
13383
  * Gets the number of bookmarks inside `bookmark`.
13384
13384
  * @returns the number of bookmarks
@@ -13410,7 +13410,7 @@ interface BookmarkFile {
13410
13410
  * @param uri a valid URI
13411
13411
  * @returns a timestamp.
13412
13412
  */
13413
- get_visited(uri: string | null): number
13413
+ get_visited(uri: string): number
13414
13414
  /**
13415
13415
  * Gets the time the bookmark for `uri` was last visited.
13416
13416
  *
@@ -13419,7 +13419,7 @@ interface BookmarkFile {
13419
13419
  * @param uri a valid URI
13420
13420
  * @returns a #GDateTime
13421
13421
  */
13422
- get_visited_date_time(uri: string | null): DateTime
13422
+ get_visited_date_time(uri: string): DateTime
13423
13423
  /**
13424
13424
  * Checks whether the bookmark for `uri` inside `bookmark` has been
13425
13425
  * registered by application `name`.
@@ -13430,7 +13430,7 @@ interface BookmarkFile {
13430
13430
  * @param name the name of the application
13431
13431
  * @returns %TRUE if the application @name was found
13432
13432
  */
13433
- has_application(uri: string | null, name: string | null): boolean
13433
+ has_application(uri: string, name: string): boolean
13434
13434
  /**
13435
13435
  * Checks whether `group` appears in the list of groups to which
13436
13436
  * the bookmark for `uri` belongs to.
@@ -13441,13 +13441,13 @@ interface BookmarkFile {
13441
13441
  * @param group the group name to be searched
13442
13442
  * @returns %TRUE if @group was found.
13443
13443
  */
13444
- has_group(uri: string | null, group: string | null): boolean
13444
+ has_group(uri: string, group: string): boolean
13445
13445
  /**
13446
13446
  * Looks whether the desktop bookmark has an item with its URI set to `uri`.
13447
13447
  * @param uri a valid URI
13448
13448
  * @returns %TRUE if @uri is inside @bookmark, %FALSE otherwise
13449
13449
  */
13450
- has_item(uri: string | null): boolean
13450
+ has_item(uri: string): boolean
13451
13451
  /**
13452
13452
  * Loads a bookmark file from memory into an empty #GBookmarkFile
13453
13453
  * structure. If the object cannot be created then `error` is set to a
@@ -13485,7 +13485,7 @@ interface BookmarkFile {
13485
13485
  * @param new_uri a valid URI, or %NULL
13486
13486
  * @returns %TRUE if the URI was successfully changed
13487
13487
  */
13488
- move_item(old_uri: string | null, new_uri: string | null): boolean
13488
+ move_item(old_uri: string, new_uri: string | null): boolean
13489
13489
  /**
13490
13490
  * Removes application registered with `name` from the list of applications
13491
13491
  * that have registered a bookmark for `uri` inside `bookmark`.
@@ -13499,7 +13499,7 @@ interface BookmarkFile {
13499
13499
  * @param name the name of the application
13500
13500
  * @returns %TRUE if the application was successfully removed.
13501
13501
  */
13502
- remove_application(uri: string | null, name: string | null): boolean
13502
+ remove_application(uri: string, name: string): boolean
13503
13503
  /**
13504
13504
  * Removes `group` from the list of groups to which the bookmark
13505
13505
  * for `uri` belongs to.
@@ -13512,13 +13512,13 @@ interface BookmarkFile {
13512
13512
  * @param group the group name to be removed
13513
13513
  * @returns %TRUE if @group was successfully removed.
13514
13514
  */
13515
- remove_group(uri: string | null, group: string | null): boolean
13515
+ remove_group(uri: string, group: string): boolean
13516
13516
  /**
13517
13517
  * Removes the bookmark for `uri` from the bookmark file `bookmark`.
13518
13518
  * @param uri a valid URI
13519
13519
  * @returns %TRUE if the bookmark was removed successfully.
13520
13520
  */
13521
- remove_item(uri: string | null): boolean
13521
+ remove_item(uri: string): boolean
13522
13522
  /**
13523
13523
  * Sets the time the bookmark for `uri` was added into `bookmark`.
13524
13524
  *
@@ -13526,7 +13526,7 @@ interface BookmarkFile {
13526
13526
  * @param uri a valid URI
13527
13527
  * @param added a timestamp or -1 to use the current time
13528
13528
  */
13529
- set_added(uri: string | null, added: number): void
13529
+ set_added(uri: string, added: number): void
13530
13530
  /**
13531
13531
  * Sets the time the bookmark for `uri` was added into `bookmark`.
13532
13532
  *
@@ -13534,7 +13534,7 @@ interface BookmarkFile {
13534
13534
  * @param uri a valid URI
13535
13535
  * @param added a #GDateTime
13536
13536
  */
13537
- set_added_date_time(uri: string | null, added: DateTime): void
13537
+ set_added_date_time(uri: string, added: DateTime): void
13538
13538
  /**
13539
13539
  * Sets the meta-data of application `name` inside the list of
13540
13540
  * applications that have registered a bookmark for `uri` inside
@@ -13571,7 +13571,7 @@ interface BookmarkFile {
13571
13571
  * @param stamp the time of the last registration for this application
13572
13572
  * @returns %TRUE if the application's meta-data was successfully changed.
13573
13573
  */
13574
- set_app_info(uri: string | null, name: string | null, exec: string | null, count: number, stamp: number): boolean
13574
+ set_app_info(uri: string, name: string, exec: string, count: number, stamp: number): boolean
13575
13575
  /**
13576
13576
  * Sets the meta-data of application `name` inside the list of
13577
13577
  * applications that have registered a bookmark for `uri` inside
@@ -13607,7 +13607,7 @@ interface BookmarkFile {
13607
13607
  * @param stamp the time of the last registration for this application, which may be %NULL if `count` is 0
13608
13608
  * @returns %TRUE if the application's meta-data was successfully changed.
13609
13609
  */
13610
- set_application_info(uri: string | null, name: string | null, exec: string | null, count: number, stamp: DateTime | null): boolean
13610
+ set_application_info(uri: string, name: string, exec: string, count: number, stamp: DateTime | null): boolean
13611
13611
  /**
13612
13612
  * Sets `description` as the description of the bookmark for `uri`.
13613
13613
  *
@@ -13617,7 +13617,7 @@ interface BookmarkFile {
13617
13617
  * @param uri a valid URI or %NULL
13618
13618
  * @param description a string
13619
13619
  */
13620
- set_description(uri: string | null, description: string | null): void
13620
+ set_description(uri: string | null, description: string): void
13621
13621
  /**
13622
13622
  * Sets a list of group names for the item with URI `uri`. Each previously
13623
13623
  * set group name list is removed.
@@ -13626,7 +13626,7 @@ interface BookmarkFile {
13626
13626
  * @param uri an item's URI
13627
13627
  * @param groups an array of group names, or %NULL to remove all groups
13628
13628
  */
13629
- set_groups(uri: string | null, groups: string[] | null): void
13629
+ set_groups(uri: string, groups: string[] | null): void
13630
13630
  /**
13631
13631
  * Sets the icon for the bookmark for `uri`. If `href` is %NULL, unsets
13632
13632
  * the currently set icon. `href` can either be a full URL for the icon
@@ -13637,7 +13637,7 @@ interface BookmarkFile {
13637
13637
  * @param href the URI of the icon for the bookmark, or %NULL
13638
13638
  * @param mime_type the MIME type of the icon for the bookmark
13639
13639
  */
13640
- set_icon(uri: string | null, href: string | null, mime_type: string | null): void
13640
+ set_icon(uri: string, href: string | null, mime_type: string): void
13641
13641
  /**
13642
13642
  * Sets the private flag of the bookmark for `uri`.
13643
13643
  *
@@ -13645,7 +13645,7 @@ interface BookmarkFile {
13645
13645
  * @param uri a valid URI
13646
13646
  * @param is_private %TRUE if the bookmark should be marked as private
13647
13647
  */
13648
- set_is_private(uri: string | null, is_private: boolean): void
13648
+ set_is_private(uri: string, is_private: boolean): void
13649
13649
  /**
13650
13650
  * Sets `mime_type` as the MIME type of the bookmark for `uri`.
13651
13651
  *
@@ -13653,7 +13653,7 @@ interface BookmarkFile {
13653
13653
  * @param uri a valid URI
13654
13654
  * @param mime_type a MIME type
13655
13655
  */
13656
- set_mime_type(uri: string | null, mime_type: string | null): void
13656
+ set_mime_type(uri: string, mime_type: string): void
13657
13657
  /**
13658
13658
  * Sets the last time the bookmark for `uri` was last modified.
13659
13659
  *
@@ -13666,7 +13666,7 @@ interface BookmarkFile {
13666
13666
  * @param uri a valid URI
13667
13667
  * @param modified a timestamp or -1 to use the current time
13668
13668
  */
13669
- set_modified(uri: string | null, modified: number): void
13669
+ set_modified(uri: string, modified: number): void
13670
13670
  /**
13671
13671
  * Sets the last time the bookmark for `uri` was last modified.
13672
13672
  *
@@ -13679,7 +13679,7 @@ interface BookmarkFile {
13679
13679
  * @param uri a valid URI
13680
13680
  * @param modified a #GDateTime
13681
13681
  */
13682
- set_modified_date_time(uri: string | null, modified: DateTime): void
13682
+ set_modified_date_time(uri: string, modified: DateTime): void
13683
13683
  /**
13684
13684
  * Sets `title` as the title of the bookmark for `uri` inside the
13685
13685
  * bookmark file `bookmark`.
@@ -13690,7 +13690,7 @@ interface BookmarkFile {
13690
13690
  * @param uri a valid URI or %NULL
13691
13691
  * @param title a UTF-8 encoded string
13692
13692
  */
13693
- set_title(uri: string | null, title: string | null): void
13693
+ set_title(uri: string | null, title: string): void
13694
13694
  /**
13695
13695
  * Sets the time the bookmark for `uri` was last visited.
13696
13696
  *
@@ -13704,7 +13704,7 @@ interface BookmarkFile {
13704
13704
  * @param uri a valid URI
13705
13705
  * @param visited a timestamp or -1 to use the current time
13706
13706
  */
13707
- set_visited(uri: string | null, visited: number): void
13707
+ set_visited(uri: string, visited: number): void
13708
13708
  /**
13709
13709
  * Sets the time the bookmark for `uri` was last visited.
13710
13710
  *
@@ -13718,7 +13718,7 @@ interface BookmarkFile {
13718
13718
  * @param uri a valid URI
13719
13719
  * @param visited a #GDateTime
13720
13720
  */
13721
- set_visited_date_time(uri: string | null, visited: DateTime): void
13721
+ set_visited_date_time(uri: string, visited: DateTime): void
13722
13722
  /**
13723
13723
  * This function outputs `bookmark` as a string.
13724
13724
  * @returns a newly allocated string holding the contents of the #GBookmarkFile
@@ -14129,7 +14129,7 @@ interface Checksum {
14129
14129
  * The hexadecimal characters will be lower case.
14130
14130
  * @returns the hexadecimal representation of the checksum. The returned string is owned by the checksum and should not be modified or freed.
14131
14131
  */
14132
- get_string(): string | null
14132
+ get_string(): string
14133
14133
  /**
14134
14134
  * Resets the state of the `checksum` back to its initial state.
14135
14135
  */
@@ -14635,7 +14635,7 @@ interface Date {
14635
14635
  * capacity).
14636
14636
  * @param str string to parse
14637
14637
  */
14638
- set_parse(str: string | null): void
14638
+ set_parse(str: string): void
14639
14639
  /**
14640
14640
  * Sets the value of a date from a #GTime value.
14641
14641
  * The time to date conversion is done using the user's current timezone.
@@ -14840,7 +14840,7 @@ class Date {
14840
14840
  * @param date valid #GDate
14841
14841
  * @returns number of characters written to the buffer, or 0 the buffer was too small
14842
14842
  */
14843
- static strftime(s: string | null, slen: number, format: string | null, date: Date): number
14843
+ static strftime(s: string | null, slen: number, format: string, date: Date): number
14844
14844
  /**
14845
14845
  * Returns %TRUE if the day of the month is valid (a day is valid if it's
14846
14846
  * between 1 and 31 inclusive).
@@ -15095,7 +15095,7 @@ interface DateTime {
15095
15095
  * @param format a valid UTF-8 string, containing the format for the #GDateTime
15096
15096
  * @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().
15097
15097
  */
15098
- format(format: string | null): string | null
15098
+ format(format: string): string | null
15099
15099
  /**
15100
15100
  * Format `datetime` in [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601),
15101
15101
  * including the date, time and time zone, and return that as a UTF-8 encoded
@@ -15169,7 +15169,7 @@ interface DateTime {
15169
15169
  * time is in effect.
15170
15170
  * @returns the time zone abbreviation. The returned string is owned by the #GDateTime and it should not be modified or freed
15171
15171
  */
15172
- get_timezone_abbreviation(): string | null
15172
+ get_timezone_abbreviation(): string
15173
15173
  /**
15174
15174
  * Determines the offset to UTC in effect at the time and in the time
15175
15175
  * zone of `datetime`.
@@ -15467,7 +15467,7 @@ class DateTime {
15467
15467
  * @param default_tz a #GTimeZone to use if the text doesn't contain a timezone, or %NULL.
15468
15468
  * @returns a new #GDateTime, or %NULL
15469
15469
  */
15470
- static new_from_iso8601(text: string | null, default_tz: TimeZone | null): DateTime
15470
+ static new_from_iso8601(text: string, default_tz: TimeZone | null): DateTime
15471
15471
  /**
15472
15472
  * Creates a #GDateTime corresponding to the given #GTimeVal `tv` in the
15473
15473
  * local time zone.
@@ -15611,7 +15611,7 @@ interface DebugKey {
15611
15611
  * the string
15612
15612
  * @field
15613
15613
  */
15614
- key: string | null
15614
+ key: string
15615
15615
  /**
15616
15616
  * the flag
15617
15617
  * @field
@@ -15790,7 +15790,7 @@ class Error {
15790
15790
  * @param message error message
15791
15791
  * @returns a new #GError
15792
15792
  */
15793
- static new_literal(domain: Quark, code: number, message: string | null): Error
15793
+ static new_literal(domain: Quark, code: number, message: string): Error
15794
15794
 
15795
15795
  // Owm static methods of GLib-2.0.GLib.Error
15796
15796
 
@@ -16116,7 +16116,7 @@ interface Hmac {
16116
16116
  * The hexadecimal characters will be lower case.
16117
16117
  * @returns the hexadecimal representation of the HMAC. The returned string is owned by the HMAC and should not be modified or freed.
16118
16118
  */
16119
- get_string(): string | null
16119
+ get_string(): string
16120
16120
  /**
16121
16121
  * Atomically decrements the reference count of `hmac` by one.
16122
16122
  *
@@ -16402,7 +16402,7 @@ interface IOChannel {
16402
16402
  * makes the channel safe for binary data.
16403
16403
  * @returns A string containing the encoding, this string is owned by GLib and must not be freed.
16404
16404
  */
16405
- get_encoding(): string | null
16405
+ get_encoding(): string
16406
16406
  /**
16407
16407
  * Gets the current flags for a #GIOChannel, including read-only
16408
16408
  * flags such as %G_IO_FLAG_IS_READABLE.
@@ -16422,7 +16422,7 @@ interface IOChannel {
16422
16422
  * indicates autodetection.
16423
16423
  * @returns The line termination string. This value is owned by GLib and must not be freed.
16424
16424
  */
16425
- get_line_term(): [ /* returnType */ string | null, /* length */ number ]
16425
+ get_line_term(): [ /* returnType */ string, /* length */ number ]
16426
16426
  /**
16427
16427
  * Initializes a #GIOChannel struct.
16428
16428
  *
@@ -16607,7 +16607,7 @@ interface IOChannel {
16607
16607
  * @param bytes_written the number of bytes actually written
16608
16608
  * @returns %G_IO_ERROR_NONE if the operation was successful.
16609
16609
  */
16610
- write(buf: string | null, count: number, bytes_written: number): IOError
16610
+ write(buf: string, count: number, bytes_written: number): IOError
16611
16611
  /**
16612
16612
  * Replacement for g_io_channel_write() with the new API.
16613
16613
  *
@@ -16654,7 +16654,7 @@ class IOChannel {
16654
16654
  * @param mode One of "r", "w", "a", "r+", "w+", "a+". These have the same meaning as in fopen()
16655
16655
  * @returns A #GIOChannel on success, %NULL on failure.
16656
16656
  */
16657
- static new_file(filename: string, mode: string | null): IOChannel
16657
+ static new_file(filename: string, mode: string): IOChannel
16658
16658
  /**
16659
16659
  * Creates a new #GIOChannel given a file descriptor. On UNIX systems
16660
16660
  * this works for plain files, pipes, and sockets.
@@ -16697,7 +16697,7 @@ interface IOFuncs {
16697
16697
  // Own fields of GLib-2.0.GLib.IOFuncs
16698
16698
 
16699
16699
  io_read: (channel: IOChannel, buf: string | null, count: number, bytes_read: number) => IOStatus
16700
- io_write: (channel: IOChannel, buf: string | null, count: number, bytes_written: number) => IOStatus
16700
+ io_write: (channel: IOChannel, buf: string, count: number, bytes_written: number) => IOStatus
16701
16701
  io_seek: (channel: IOChannel, offset: number, type: SeekType) => IOStatus
16702
16702
  io_close: (channel: IOChannel) => IOStatus
16703
16703
  io_create_watch: (channel: IOChannel, condition: IOCondition) => Source
@@ -16734,7 +16734,7 @@ interface KeyFile {
16734
16734
  * @param key a key
16735
16735
  * @returns the value associated with the key as a boolean, or %FALSE if the key was not found or could not be parsed.
16736
16736
  */
16737
- get_boolean(group_name: string | null, key: string | null): boolean
16737
+ get_boolean(group_name: string, key: string): boolean
16738
16738
  /**
16739
16739
  * Returns the values associated with `key` under `group_name` as
16740
16740
  * booleans.
@@ -16747,7 +16747,7 @@ interface KeyFile {
16747
16747
  * @param key a key
16748
16748
  * @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.
16749
16749
  */
16750
- get_boolean_list(group_name: string | null, key: string | null): boolean[]
16750
+ get_boolean_list(group_name: string, key: string): boolean[]
16751
16751
  /**
16752
16752
  * Retrieves a comment above `key` from `group_name`.
16753
16753
  * If `key` is %NULL then `comment` will be read from above
@@ -16774,7 +16774,7 @@ interface KeyFile {
16774
16774
  * @param key a key
16775
16775
  * @returns the value associated with the key as a double, or 0.0 if the key was not found or could not be parsed.
16776
16776
  */
16777
- get_double(group_name: string | null, key: string | null): number
16777
+ get_double(group_name: string, key: string): number
16778
16778
  /**
16779
16779
  * Returns the values associated with `key` under `group_name` as
16780
16780
  * doubles.
@@ -16787,7 +16787,7 @@ interface KeyFile {
16787
16787
  * @param key a key
16788
16788
  * @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.
16789
16789
  */
16790
- get_double_list(group_name: string | null, key: string | null): number[]
16790
+ get_double_list(group_name: string, key: string): number[]
16791
16791
  /**
16792
16792
  * Returns all groups in the key file loaded with `key_file`.
16793
16793
  * The array of returned groups will be %NULL-terminated, so
@@ -16803,7 +16803,7 @@ interface KeyFile {
16803
16803
  * @param key a non-%NULL key
16804
16804
  * @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.
16805
16805
  */
16806
- get_int64(group_name: string | null, key: string | null): number
16806
+ get_int64(group_name: string, key: string): number
16807
16807
  /**
16808
16808
  * Returns the value associated with `key` under `group_name` as an
16809
16809
  * integer.
@@ -16817,7 +16817,7 @@ interface KeyFile {
16817
16817
  * @param key a key
16818
16818
  * @returns the value associated with the key as an integer, or 0 if the key was not found or could not be parsed.
16819
16819
  */
16820
- get_integer(group_name: string | null, key: string | null): number
16820
+ get_integer(group_name: string, key: string): number
16821
16821
  /**
16822
16822
  * Returns the values associated with `key` under `group_name` as
16823
16823
  * integers.
@@ -16831,7 +16831,7 @@ interface KeyFile {
16831
16831
  * @param key a key
16832
16832
  * @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.
16833
16833
  */
16834
- get_integer_list(group_name: string | null, key: string | null): number[]
16834
+ get_integer_list(group_name: string, key: string): number[]
16835
16835
  /**
16836
16836
  * Returns all keys for the group name `group_name`. The array of
16837
16837
  * returned keys will be %NULL-terminated, so `length` may
@@ -16841,7 +16841,7 @@ interface KeyFile {
16841
16841
  * @param group_name a group name
16842
16842
  * @returns a newly-allocated %NULL-terminated array of strings. Use g_strfreev() to free it.
16843
16843
  */
16844
- get_keys(group_name: string | null): [ /* returnType */ string[], /* length */ number ]
16844
+ get_keys(group_name: string): [ /* returnType */ string[], /* length */ number ]
16845
16845
  /**
16846
16846
  * Returns the actual locale which the result of
16847
16847
  * g_key_file_get_locale_string() or g_key_file_get_locale_string_list()
@@ -16857,7 +16857,7 @@ interface KeyFile {
16857
16857
  * @param locale a locale identifier or %NULL
16858
16858
  * @returns the locale from the file, or %NULL if the key was not found or the entry in the file was was untranslated
16859
16859
  */
16860
- get_locale_for_key(group_name: string | null, key: string | null, locale: string | null): string | null
16860
+ get_locale_for_key(group_name: string, key: string, locale: string | null): string | null
16861
16861
  /**
16862
16862
  * Returns the value associated with `key` under `group_name`
16863
16863
  * translated in the given `locale` if available. If `locale` is
@@ -16876,7 +16876,7 @@ interface KeyFile {
16876
16876
  * @param locale a locale identifier or %NULL
16877
16877
  * @returns a newly allocated string or %NULL if the specified key cannot be found.
16878
16878
  */
16879
- get_locale_string(group_name: string | null, key: string | null, locale: string | null): string | null
16879
+ get_locale_string(group_name: string, key: string, locale: string | null): string | null
16880
16880
  /**
16881
16881
  * Returns the values associated with `key` under `group_name`
16882
16882
  * translated in the given `locale` if available. If `locale` is
@@ -16897,7 +16897,7 @@ interface KeyFile {
16897
16897
  * @param locale a locale identifier or %NULL
16898
16898
  * @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().
16899
16899
  */
16900
- get_locale_string_list(group_name: string | null, key: string | null, locale: string | null): string[]
16900
+ get_locale_string_list(group_name: string, key: string, locale: string | null): string[]
16901
16901
  /**
16902
16902
  * Returns the name of the start group of the file.
16903
16903
  * @returns The start group of the key file.
@@ -16916,7 +16916,7 @@ interface KeyFile {
16916
16916
  * @param key a key
16917
16917
  * @returns a newly allocated string or %NULL if the specified key cannot be found.
16918
16918
  */
16919
- get_string(group_name: string | null, key: string | null): string | null
16919
+ get_string(group_name: string, key: string): string | null
16920
16920
  /**
16921
16921
  * Returns the values associated with `key` under `group_name`.
16922
16922
  *
@@ -16928,7 +16928,7 @@ interface KeyFile {
16928
16928
  * @param key a key
16929
16929
  * @returns a %NULL-terminated string array or %NULL if the specified key cannot be found. The array should be freed with g_strfreev().
16930
16930
  */
16931
- get_string_list(group_name: string | null, key: string | null): string[]
16931
+ get_string_list(group_name: string, key: string): string[]
16932
16932
  /**
16933
16933
  * Returns the value associated with `key` under `group_name` as an unsigned
16934
16934
  * 64-bit integer. This is similar to g_key_file_get_integer() but can return
@@ -16937,7 +16937,7 @@ interface KeyFile {
16937
16937
  * @param key a non-%NULL key
16938
16938
  * @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.
16939
16939
  */
16940
- get_uint64(group_name: string | null, key: string | null): number
16940
+ get_uint64(group_name: string, key: string): number
16941
16941
  /**
16942
16942
  * Returns the raw value associated with `key` under `group_name`.
16943
16943
  * Use g_key_file_get_string() to retrieve an unescaped UTF-8 string.
@@ -16950,13 +16950,13 @@ interface KeyFile {
16950
16950
  * @param key a key
16951
16951
  * @returns a newly allocated string or %NULL if the specified key cannot be found.
16952
16952
  */
16953
- get_value(group_name: string | null, key: string | null): string | null
16953
+ get_value(group_name: string, key: string): string | null
16954
16954
  /**
16955
16955
  * Looks whether the key file has the group `group_name`.
16956
16956
  * @param group_name a group name
16957
16957
  * @returns %TRUE if @group_name is a part of @key_file, %FALSE otherwise.
16958
16958
  */
16959
- has_group(group_name: string | null): boolean
16959
+ has_group(group_name: string): boolean
16960
16960
  /**
16961
16961
  * Loads a key file from the data in `bytes` into an empty #GKeyFile structure.
16962
16962
  * If the object cannot be created then %error is set to a #GKeyFileError.
@@ -16973,7 +16973,7 @@ interface KeyFile {
16973
16973
  * @param flags flags from #GKeyFileFlags
16974
16974
  * @returns %TRUE if a key file could be loaded, %FALSE otherwise
16975
16975
  */
16976
- load_from_data(data: string | null, length: number, flags: KeyFileFlags): boolean
16976
+ load_from_data(data: string, length: number, flags: KeyFileFlags): boolean
16977
16977
  /**
16978
16978
  * This function looks for a key file named `file` in the paths
16979
16979
  * returned from g_get_user_data_dir() and g_get_system_data_dirs(),
@@ -17031,14 +17031,14 @@ interface KeyFile {
17031
17031
  * @param group_name a group name
17032
17032
  * @returns %TRUE if the group was removed, %FALSE otherwise
17033
17033
  */
17034
- remove_group(group_name: string | null): boolean
17034
+ remove_group(group_name: string): boolean
17035
17035
  /**
17036
17036
  * Removes `key` in `group_name` from the key file.
17037
17037
  * @param group_name a group name
17038
17038
  * @param key a key name to remove
17039
17039
  * @returns %TRUE if the key was removed, %FALSE otherwise
17040
17040
  */
17041
- remove_key(group_name: string | null, key: string | null): boolean
17041
+ remove_key(group_name: string, key: string): boolean
17042
17042
  /**
17043
17043
  * Writes the contents of `key_file` to `filename` using
17044
17044
  * g_file_set_contents(). If you need stricter guarantees about durability of
@@ -17050,7 +17050,7 @@ interface KeyFile {
17050
17050
  * @param filename the name of the file to write to
17051
17051
  * @returns %TRUE if successful, else %FALSE with @error set
17052
17052
  */
17053
- save_to_file(filename: string | null): boolean
17053
+ save_to_file(filename: string): boolean
17054
17054
  /**
17055
17055
  * Associates a new boolean value with `key` under `group_name`.
17056
17056
  * If `key` cannot be found then it is created.
@@ -17058,7 +17058,7 @@ interface KeyFile {
17058
17058
  * @param key a key
17059
17059
  * @param value %TRUE or %FALSE
17060
17060
  */
17061
- set_boolean(group_name: string | null, key: string | null, value: boolean): void
17061
+ set_boolean(group_name: string, key: string, value: boolean): void
17062
17062
  /**
17063
17063
  * Associates a list of boolean values with `key` under `group_name`.
17064
17064
  * If `key` cannot be found then it is created.
@@ -17067,7 +17067,7 @@ interface KeyFile {
17067
17067
  * @param key a key
17068
17068
  * @param list an array of boolean values
17069
17069
  */
17070
- set_boolean_list(group_name: string | null, key: string | null, list: boolean[]): void
17070
+ set_boolean_list(group_name: string, key: string, list: boolean[]): void
17071
17071
  /**
17072
17072
  * Places a comment above `key` from `group_name`.
17073
17073
  *
@@ -17082,7 +17082,7 @@ interface KeyFile {
17082
17082
  * @param comment a comment
17083
17083
  * @returns %TRUE if the comment was written, %FALSE otherwise
17084
17084
  */
17085
- set_comment(group_name: string | null, key: string | null, comment: string | null): boolean
17085
+ set_comment(group_name: string | null, key: string | null, comment: string): boolean
17086
17086
  /**
17087
17087
  * Associates a new double value with `key` under `group_name`.
17088
17088
  * If `key` cannot be found then it is created.
@@ -17090,7 +17090,7 @@ interface KeyFile {
17090
17090
  * @param key a key
17091
17091
  * @param value a double value
17092
17092
  */
17093
- set_double(group_name: string | null, key: string | null, value: number): void
17093
+ set_double(group_name: string, key: string, value: number): void
17094
17094
  /**
17095
17095
  * Associates a list of double values with `key` under
17096
17096
  * `group_name`. If `key` cannot be found then it is created.
@@ -17098,7 +17098,7 @@ interface KeyFile {
17098
17098
  * @param key a key
17099
17099
  * @param list an array of double values
17100
17100
  */
17101
- set_double_list(group_name: string | null, key: string | null, list: number[]): void
17101
+ set_double_list(group_name: string, key: string, list: number[]): void
17102
17102
  /**
17103
17103
  * Associates a new integer value with `key` under `group_name`.
17104
17104
  * If `key` cannot be found then it is created.
@@ -17106,7 +17106,7 @@ interface KeyFile {
17106
17106
  * @param key a key
17107
17107
  * @param value an integer value
17108
17108
  */
17109
- set_int64(group_name: string | null, key: string | null, value: number): void
17109
+ set_int64(group_name: string, key: string, value: number): void
17110
17110
  /**
17111
17111
  * Associates a new integer value with `key` under `group_name`.
17112
17112
  * If `key` cannot be found then it is created.
@@ -17114,7 +17114,7 @@ interface KeyFile {
17114
17114
  * @param key a key
17115
17115
  * @param value an integer value
17116
17116
  */
17117
- set_integer(group_name: string | null, key: string | null, value: number): void
17117
+ set_integer(group_name: string, key: string, value: number): void
17118
17118
  /**
17119
17119
  * Associates a list of integer values with `key` under `group_name`.
17120
17120
  * If `key` cannot be found then it is created.
@@ -17122,7 +17122,7 @@ interface KeyFile {
17122
17122
  * @param key a key
17123
17123
  * @param list an array of integer values
17124
17124
  */
17125
- set_integer_list(group_name: string | null, key: string | null, list: number[]): void
17125
+ set_integer_list(group_name: string, key: string, list: number[]): void
17126
17126
  /**
17127
17127
  * Sets the character which is used to separate
17128
17128
  * values in lists. Typically ';' or ',' are used
@@ -17138,7 +17138,7 @@ interface KeyFile {
17138
17138
  * @param locale a locale identifier
17139
17139
  * @param string a string
17140
17140
  */
17141
- set_locale_string(group_name: string | null, key: string | null, locale: string | null, string: string | null): void
17141
+ set_locale_string(group_name: string, key: string, locale: string, string: string): void
17142
17142
  /**
17143
17143
  * Associates a list of string values for `key` and `locale` under
17144
17144
  * `group_name`. If the translation for `key` cannot be found then
@@ -17148,7 +17148,7 @@ interface KeyFile {
17148
17148
  * @param locale a locale identifier
17149
17149
  * @param list a %NULL-terminated array of locale string values
17150
17150
  */
17151
- set_locale_string_list(group_name: string | null, key: string | null, locale: string | null, list: string[]): void
17151
+ set_locale_string_list(group_name: string, key: string, locale: string, list: string[]): void
17152
17152
  /**
17153
17153
  * Associates a new string value with `key` under `group_name`.
17154
17154
  * If `key` cannot be found then it is created.
@@ -17159,7 +17159,7 @@ interface KeyFile {
17159
17159
  * @param key a key
17160
17160
  * @param string a string
17161
17161
  */
17162
- set_string(group_name: string | null, key: string | null, string: string | null): void
17162
+ set_string(group_name: string, key: string, string: string): void
17163
17163
  /**
17164
17164
  * Associates a list of string values for `key` under `group_name`.
17165
17165
  * If `key` cannot be found then it is created.
@@ -17168,7 +17168,7 @@ interface KeyFile {
17168
17168
  * @param key a key
17169
17169
  * @param list an array of string values
17170
17170
  */
17171
- set_string_list(group_name: string | null, key: string | null, list: string[]): void
17171
+ set_string_list(group_name: string, key: string, list: string[]): void
17172
17172
  /**
17173
17173
  * Associates a new integer value with `key` under `group_name`.
17174
17174
  * If `key` cannot be found then it is created.
@@ -17176,7 +17176,7 @@ interface KeyFile {
17176
17176
  * @param key a key
17177
17177
  * @param value an integer value
17178
17178
  */
17179
- set_uint64(group_name: string | null, key: string | null, value: number): void
17179
+ set_uint64(group_name: string, key: string, value: number): void
17180
17180
  /**
17181
17181
  * Associates a new value with `key` under `group_name`.
17182
17182
  *
@@ -17188,7 +17188,7 @@ interface KeyFile {
17188
17188
  * @param key a key
17189
17189
  * @param value a string
17190
17190
  */
17191
- set_value(group_name: string | null, key: string | null, value: string | null): void
17191
+ set_value(group_name: string, key: string, value: string): void
17192
17192
  /**
17193
17193
  * This function outputs `key_file` as a string.
17194
17194
  *
@@ -17418,7 +17418,7 @@ interface LogField {
17418
17418
  * field name (UTF-8 string)
17419
17419
  * @field
17420
17420
  */
17421
- key: string | null
17421
+ key: string
17422
17422
  /**
17423
17423
  * field value (arbitrary bytes)
17424
17424
  * @field
@@ -17828,6 +17828,11 @@ interface MainLoop {
17828
17828
  * the result is zero, free the loop and free all associated memory.
17829
17829
  */
17830
17830
  unref(): void
17831
+ /**
17832
+ * Similar to `GLib.MainLoop.run` but return a Promise which resolves when the main loop ends, instead of blocking while the main loop runs.
17833
+ * This helps avoid the situation where Promises never resolved if you didn't run the main loop inside a callback.
17834
+ */
17835
+ runAsync(): Promise<void>
17831
17836
  }
17832
17837
 
17833
17838
  /**
@@ -18017,7 +18022,7 @@ interface MarkupParseContext {
18017
18022
  * elements, see g_markup_parse_context_get_element_stack().
18018
18023
  * @returns the name of the currently open element, or %NULL
18019
18024
  */
18020
- get_element(): string | null
18025
+ get_element(): string
18021
18026
  /**
18022
18027
  * Retrieves the current line number and the number of the character on
18023
18028
  * that line. Intended for use in error messages; there are no strict
@@ -18049,7 +18054,7 @@ interface MarkupParseContext {
18049
18054
  * @param text_len length of `text` in bytes
18050
18055
  * @returns %FALSE if an error occurred, %TRUE on success
18051
18056
  */
18052
- parse(text: string | null, text_len: number): boolean
18057
+ parse(text: string, text_len: number): boolean
18053
18058
  /**
18054
18059
  * Completes the process of a temporary sub-parser redirection.
18055
18060
  *
@@ -18254,10 +18259,10 @@ interface MarkupParser {
18254
18259
 
18255
18260
  // Own fields of GLib-2.0.GLib.MarkupParser
18256
18261
 
18257
- start_element: (context: MarkupParseContext, element_name: string | null, attribute_names: string | null, attribute_values: string | null) => void
18258
- end_element: (context: MarkupParseContext, element_name: string | null) => void
18259
- text: (context: MarkupParseContext, text: string | null, text_len: number) => void
18260
- passthrough: (context: MarkupParseContext, passthrough_text: string | null, text_len: number) => void
18262
+ start_element: (context: MarkupParseContext, element_name: string, attribute_names: string, attribute_values: string) => void
18263
+ end_element: (context: MarkupParseContext, element_name: string) => void
18264
+ text: (context: MarkupParseContext, text: string, text_len: number) => void
18265
+ passthrough: (context: MarkupParseContext, passthrough_text: string, text_len: number) => void
18261
18266
  error: (context: MarkupParseContext, error: Error) => void
18262
18267
  }
18263
18268
 
@@ -18303,7 +18308,7 @@ interface MatchInfo {
18303
18308
  * @param string_to_expand the string to expand
18304
18309
  * @returns the expanded string, or %NULL if an error occurred
18305
18310
  */
18306
- expand_references(string_to_expand: string | null): string | null
18311
+ expand_references(string_to_expand: string): string | null
18307
18312
  /**
18308
18313
  * Retrieves the text matching the `match_num'`th capturing
18309
18314
  * parentheses. 0 is the full text of the match, 1 is the first paren
@@ -18357,7 +18362,7 @@ interface MatchInfo {
18357
18362
  * @param name name of the subexpression
18358
18363
  * @returns The matched substring, or %NULL if an error occurred. You have to free the string yourself
18359
18364
  */
18360
- fetch_named(name: string | null): string | null
18365
+ fetch_named(name: string): string | null
18361
18366
  /**
18362
18367
  * Retrieves the position in bytes of the capturing parentheses named `name`.
18363
18368
  *
@@ -18367,7 +18372,7 @@ interface MatchInfo {
18367
18372
  * @param name name of the subexpression
18368
18373
  * @returns %TRUE if the position was fetched, %FALSE otherwise. If the position cannot be fetched, @start_pos and @end_pos are left unchanged.
18369
18374
  */
18370
- fetch_named_pos(name: string | null): [ /* returnType */ boolean, /* start_pos */ number, /* end_pos */ number ]
18375
+ fetch_named_pos(name: string): [ /* returnType */ boolean, /* start_pos */ number, /* end_pos */ number ]
18371
18376
  /**
18372
18377
  * Retrieves the position in bytes of the `match_num'`th capturing
18373
18378
  * parentheses. 0 is the full text of the match, 1 is the first
@@ -18416,7 +18421,7 @@ interface MatchInfo {
18416
18421
  * you may not free it before calling this function.
18417
18422
  * @returns the string searched with @match_info
18418
18423
  */
18419
- get_string(): string | null
18424
+ get_string(): string
18420
18425
  /**
18421
18426
  * Usually if the string passed to g_regex_match*() matches as far as
18422
18427
  * it goes, but is too short to match the entire pattern, %FALSE is
@@ -18742,7 +18747,7 @@ interface OptionContext {
18742
18747
  * Returns the description. See g_option_context_set_description().
18743
18748
  * @returns the description
18744
18749
  */
18745
- get_description(): string | null
18750
+ get_description(): string
18746
18751
  /**
18747
18752
  * Returns a formatted, translated help text for the given context.
18748
18753
  * To obtain the text produced by `--help`, call
@@ -18784,7 +18789,7 @@ interface OptionContext {
18784
18789
  * Returns the summary. See g_option_context_set_summary().
18785
18790
  * @returns the summary
18786
18791
  */
18787
- get_summary(): string | null
18792
+ get_summary(): string
18788
18793
  /**
18789
18794
  * Parses the command line arguments, recognizing options
18790
18795
  * which have been added to `context`. A side-effect of
@@ -18926,7 +18931,7 @@ interface OptionContext {
18926
18931
  * user-visible strings.
18927
18932
  * @param domain the domain to use
18928
18933
  */
18929
- set_translation_domain(domain: string | null): void
18934
+ set_translation_domain(domain: string): void
18930
18935
  }
18931
18936
 
18932
18937
  /**
@@ -19110,7 +19115,7 @@ interface OptionEntry {
19110
19115
  * `--groupname-long_name`.
19111
19116
  * @field
19112
19117
  */
19113
- long_name: string | null
19118
+ long_name: string
19114
19119
  /**
19115
19120
  * If an option has a short name, it can be specified
19116
19121
  * `-short_name` in a commandline. `short_name` must be a printable
@@ -19156,7 +19161,7 @@ interface OptionEntry {
19156
19161
  * of the group, see g_option_group_set_translation_domain().
19157
19162
  * @field
19158
19163
  */
19159
- description: string | null
19164
+ description: string
19160
19165
  /**
19161
19166
  * The placeholder to use for the extra argument parsed
19162
19167
  * by the option in `--help` output. The `arg_description` is translated
@@ -19164,7 +19169,7 @@ interface OptionEntry {
19164
19169
  * g_option_group_set_translation_domain().
19165
19170
  * @field
19166
19171
  */
19167
- arg_description: string | null
19172
+ arg_description: string
19168
19173
  }
19169
19174
 
19170
19175
  /**
@@ -19214,7 +19219,7 @@ interface OptionGroup {
19214
19219
  * user-visible strings.
19215
19220
  * @param domain the domain to use
19216
19221
  */
19217
- set_translation_domain(domain: string | null): void
19222
+ set_translation_domain(domain: string): void
19218
19223
  /**
19219
19224
  * Decrements the reference count of `group` by one.
19220
19225
  * If the reference count drops to 0, the `group` will be freed.
@@ -19251,7 +19256,7 @@ class OptionGroup {
19251
19256
  * @param destroy a function that will be called to free `user_data,` or %NULL
19252
19257
  * @returns a newly created option group. It should be added to a #GOptionContext or freed with g_option_group_unref().
19253
19258
  */
19254
- constructor(name: string | null, description: string | null, help_description: string | null, user_data: any | null, destroy: DestroyNotify | null)
19259
+ constructor(name: string, description: string, help_description: string, user_data: any | null, destroy: DestroyNotify | null)
19255
19260
  /**
19256
19261
  * Creates a new #GOptionGroup.
19257
19262
  * @constructor
@@ -19262,7 +19267,7 @@ class OptionGroup {
19262
19267
  * @param destroy a function that will be called to free `user_data,` or %NULL
19263
19268
  * @returns a newly created option group. It should be added to a #GOptionContext or freed with g_option_group_unref().
19264
19269
  */
19265
- static new(name: string | null, description: string | null, help_description: string | null, user_data: any | null, destroy: DestroyNotify | null): OptionGroup
19270
+ static new(name: string, description: string, help_description: string, user_data: any | null, destroy: DestroyNotify | null): OptionGroup
19266
19271
  }
19267
19272
 
19268
19273
  interface PathBuf {
@@ -19541,7 +19546,7 @@ interface PatternSpec {
19541
19546
  * @param string_reversed the reverse of `string` or %NULL
19542
19547
  * @returns %TRUE if @string matches @pspec
19543
19548
  */
19544
- match(string_length: number, string: string | null, string_reversed: string | null): boolean
19549
+ match(string_length: number, string: string, string_reversed: string | null): boolean
19545
19550
  /**
19546
19551
  * Matches a string against a compiled pattern. If the string is to be
19547
19552
  * matched against more than one pattern, consider using
@@ -19549,7 +19554,7 @@ interface PatternSpec {
19549
19554
  * @param string the UTF-8 encoded string to match
19550
19555
  * @returns %TRUE if @string matches @pspec
19551
19556
  */
19552
- match_string(string: string | null): boolean
19557
+ match_string(string: string): boolean
19553
19558
  }
19554
19559
 
19555
19560
  /**
@@ -19571,14 +19576,14 @@ class PatternSpec {
19571
19576
  * @param pattern a zero-terminated UTF-8 encoded string
19572
19577
  * @returns a newly-allocated #GPatternSpec
19573
19578
  */
19574
- constructor(pattern: string | null)
19579
+ constructor(pattern: string)
19575
19580
  /**
19576
19581
  * Compiles a pattern to a #GPatternSpec.
19577
19582
  * @constructor
19578
19583
  * @param pattern a zero-terminated UTF-8 encoded string
19579
19584
  * @returns a newly-allocated #GPatternSpec
19580
19585
  */
19581
- static new(pattern: string | null): PatternSpec
19586
+ static new(pattern: string): PatternSpec
19582
19587
  }
19583
19588
 
19584
19589
  interface PollFD {
@@ -20242,13 +20247,13 @@ interface Regex {
20242
20247
  * the string passed to g_regex_new().
20243
20248
  * @returns the pattern of @regex
20244
20249
  */
20245
- get_pattern(): string | null
20250
+ get_pattern(): string
20246
20251
  /**
20247
20252
  * Retrieves the number of the subexpression named `name`.
20248
20253
  * @param name name of the subexpression
20249
20254
  * @returns The number of the subexpression or -1 if @name does not exists
20250
20255
  */
20251
- get_string_number(name: string | null): number
20256
+ get_string_number(name: string): number
20252
20257
  /**
20253
20258
  * Scans for a match in `string` for the pattern in `regex`.
20254
20259
  * The `match_options` are combined with the match options specified
@@ -20296,7 +20301,7 @@ interface Regex {
20296
20301
  * @param match_options match options
20297
20302
  * @returns %TRUE is the string matched, %FALSE otherwise
20298
20303
  */
20299
- match(string: string | null, match_options: RegexMatchFlags): [ /* returnType */ boolean, /* match_info */ MatchInfo ]
20304
+ match(string: string, match_options: RegexMatchFlags): [ /* returnType */ boolean, /* match_info */ MatchInfo ]
20300
20305
  /**
20301
20306
  * Using the standard algorithm for regular expression matching only
20302
20307
  * the longest match in the string is retrieved. This function uses
@@ -20316,7 +20321,7 @@ interface Regex {
20316
20321
  * @param match_options match options
20317
20322
  * @returns %TRUE is the string matched, %FALSE otherwise
20318
20323
  */
20319
- match_all(string: string | null, match_options: RegexMatchFlags): [ /* returnType */ boolean, /* match_info */ MatchInfo ]
20324
+ match_all(string: string, match_options: RegexMatchFlags): [ /* returnType */ boolean, /* match_info */ MatchInfo ]
20320
20325
  /**
20321
20326
  * Using the standard algorithm for regular expression matching only
20322
20327
  * the longest match in the `string` is retrieved, it is not possible
@@ -20460,7 +20465,7 @@ interface Regex {
20460
20465
  * @param match_options options for the match
20461
20466
  * @returns a newly allocated string containing the replacements
20462
20467
  */
20463
- replace(string: string[], start_position: number, replacement: string | null, match_options: RegexMatchFlags): string | null
20468
+ replace(string: string[], start_position: number, replacement: string, match_options: RegexMatchFlags): string | null
20464
20469
  /**
20465
20470
  * Replaces all occurrences of the pattern in `regex` with the
20466
20471
  * replacement text. `replacement` is replaced literally, to
@@ -20476,7 +20481,7 @@ interface Regex {
20476
20481
  * @param match_options options for the match
20477
20482
  * @returns a newly allocated string containing the replacements
20478
20483
  */
20479
- replace_literal(string: string[], start_position: number, replacement: string | null, match_options: RegexMatchFlags): string | null
20484
+ replace_literal(string: string[], start_position: number, replacement: string, match_options: RegexMatchFlags): string | null
20480
20485
  /**
20481
20486
  * Breaks the string on the pattern, and returns an array of the tokens.
20482
20487
  * If the pattern contains capturing parentheses, then the text for each
@@ -20499,7 +20504,7 @@ interface Regex {
20499
20504
  * @param match_options match time option flags
20500
20505
  * @returns a %NULL-terminated gchar ** array. Free it using g_strfreev()
20501
20506
  */
20502
- split(string: string | null, match_options: RegexMatchFlags): string[]
20507
+ split(string: string, match_options: RegexMatchFlags): string[]
20503
20508
  /**
20504
20509
  * Breaks the string on the pattern, and returns an array of the tokens.
20505
20510
  * If the pattern contains capturing parentheses, then the text for each
@@ -20609,7 +20614,7 @@ class Regex {
20609
20614
  * @param match_options match options for the regular expression, or 0
20610
20615
  * @returns a #GRegex structure or %NULL if an error occurred. Call g_regex_unref() when you are done with it
20611
20616
  */
20612
- constructor(pattern: string | null, compile_options: RegexCompileFlags, match_options: RegexMatchFlags)
20617
+ constructor(pattern: string, compile_options: RegexCompileFlags, match_options: RegexMatchFlags)
20613
20618
  /**
20614
20619
  * Compiles the regular expression to an internal form, and does
20615
20620
  * the initial setup of the #GRegex structure.
@@ -20619,7 +20624,7 @@ class Regex {
20619
20624
  * @param match_options match options for the regular expression, or 0
20620
20625
  * @returns a #GRegex structure or %NULL if an error occurred. Call g_regex_unref() when you are done with it
20621
20626
  */
20622
- static new(pattern: string | null, compile_options: RegexCompileFlags, match_options: RegexMatchFlags): Regex
20627
+ static new(pattern: string, compile_options: RegexCompileFlags, match_options: RegexMatchFlags): Regex
20623
20628
  /**
20624
20629
  * Checks whether `replacement` is a valid replacement string
20625
20630
  * (see g_regex_replace()), i.e. that all escape sequences in
@@ -20633,7 +20638,7 @@ class Regex {
20633
20638
  * @param replacement the replacement string
20634
20639
  * @returns whether @replacement is a valid replacement string
20635
20640
  */
20636
- static check_replacement(replacement: string | null): [ /* returnType */ boolean, /* has_references */ boolean ]
20641
+ static check_replacement(replacement: string): [ /* returnType */ boolean, /* has_references */ boolean ]
20637
20642
  static error_quark(): Quark
20638
20643
  /**
20639
20644
  * Escapes the nul characters in `string` to "\x00". It can be used
@@ -20645,7 +20650,7 @@ class Regex {
20645
20650
  * @param length the length of `string`
20646
20651
  * @returns a newly-allocated escaped string
20647
20652
  */
20648
- static escape_nul(string: string | null, length: number): string | null
20653
+ static escape_nul(string: string, length: number): string | null
20649
20654
  /**
20650
20655
  * Escapes the special characters used for regular expressions
20651
20656
  * in `string,` for instance "a.b*c" becomes "a\.b\*c". This
@@ -20658,7 +20663,7 @@ class Regex {
20658
20663
  * @param length the length of `string,` in bytes, or -1 if `string` is nul-terminated
20659
20664
  * @returns a newly-allocated escaped string
20660
20665
  */
20661
- static escape_string(string: string | null, length: number): string | null
20666
+ static escape_string(string: string, length: number): string | null
20662
20667
  /**
20663
20668
  * Scans for a match in `string` for `pattern`.
20664
20669
  *
@@ -20676,7 +20681,7 @@ class Regex {
20676
20681
  * @param match_options match options, or 0
20677
20682
  * @returns %TRUE if the string matched, %FALSE otherwise
20678
20683
  */
20679
- static match_simple(pattern: string | null, string: string | null, compile_options: RegexCompileFlags, match_options: RegexMatchFlags): boolean
20684
+ static match_simple(pattern: string, string: string, compile_options: RegexCompileFlags, match_options: RegexMatchFlags): boolean
20680
20685
  /**
20681
20686
  * Breaks the string on the pattern, and returns an array of
20682
20687
  * the tokens. If the pattern contains capturing parentheses,
@@ -20711,7 +20716,7 @@ class Regex {
20711
20716
  * @param match_options match options, or 0
20712
20717
  * @returns a %NULL-terminated array of strings. Free it using g_strfreev()
20713
20718
  */
20714
- static split_simple(pattern: string | null, string: string | null, compile_options: RegexCompileFlags, match_options: RegexMatchFlags): string[]
20719
+ static split_simple(pattern: string, string: string, compile_options: RegexCompileFlags, match_options: RegexMatchFlags): string[]
20715
20720
  }
20716
20721
 
20717
20722
  interface SList {
@@ -20767,7 +20772,7 @@ interface Scanner {
20767
20772
  * name of input stream, featured by the default message handler
20768
20773
  * @field
20769
20774
  */
20770
- input_name: string | null
20775
+ input_name: string
20771
20776
  /**
20772
20777
  * quarked data
20773
20778
  * @field
@@ -20874,7 +20879,7 @@ interface Scanner {
20874
20879
  * @param text the text buffer to scan
20875
20880
  * @param text_len the length of the text buffer
20876
20881
  */
20877
- input_text(text: string | null, text_len: number): void
20882
+ input_text(text: string, text_len: number): void
20878
20883
  /**
20879
20884
  * Looks up a symbol in the current scope and return its value.
20880
20885
  * If the symbol is not bound in the current scope, %NULL is
@@ -20882,7 +20887,7 @@ interface Scanner {
20882
20887
  * @param symbol the symbol to look up
20883
20888
  * @returns the value of @symbol in the current scope, or %NULL if @symbol is not bound in the current scope
20884
20889
  */
20885
- lookup_symbol(symbol: string | null): any | null
20890
+ lookup_symbol(symbol: string): any | null
20886
20891
  /**
20887
20892
  * Parses the next token, without removing it from the input stream.
20888
20893
  * The token data is placed in the `next_token,` `next_value,` `next_line,`
@@ -20904,7 +20909,7 @@ interface Scanner {
20904
20909
  * @param symbol the symbol to add
20905
20910
  * @param value the value of the symbol
20906
20911
  */
20907
- scope_add_symbol(scope_id: number, symbol: string | null, value: any | null): void
20912
+ scope_add_symbol(scope_id: number, symbol: string, value: any | null): void
20908
20913
  /**
20909
20914
  * Looks up a symbol in a scope and return its value. If the
20910
20915
  * symbol is not bound in the scope, %NULL is returned.
@@ -20912,13 +20917,13 @@ interface Scanner {
20912
20917
  * @param symbol the symbol to look up
20913
20918
  * @returns the value of @symbol in the given scope, or %NULL if @symbol is not bound in the given scope.
20914
20919
  */
20915
- scope_lookup_symbol(scope_id: number, symbol: string | null): any | null
20920
+ scope_lookup_symbol(scope_id: number, symbol: string): any | null
20916
20921
  /**
20917
20922
  * Removes a symbol from a scope.
20918
20923
  * @param scope_id the scope id
20919
20924
  * @param symbol the symbol to remove
20920
20925
  */
20921
- scope_remove_symbol(scope_id: number, symbol: string | null): void
20926
+ scope_remove_symbol(scope_id: number, symbol: string): void
20922
20927
  /**
20923
20928
  * Sets the current scope.
20924
20929
  * @param scope_id the new scope id
@@ -20947,7 +20952,7 @@ interface Scanner {
20947
20952
  * @param message a message string to output at the end of the warning/error, or %NULL.
20948
20953
  * @param is_error if %TRUE it is output as an error. If %FALSE it is output as a warning.
20949
20954
  */
20950
- unexp_token(expected_token: TokenType, identifier_spec: string | null, symbol_spec: string | null, symbol_name: string | null, message: string | null, is_error: number): void
20955
+ unexp_token(expected_token: TokenType, identifier_spec: string, symbol_spec: string, symbol_name: string, message: string, is_error: number): void
20951
20956
  }
20952
20957
 
20953
20958
  /**
@@ -21756,7 +21761,7 @@ interface Source {
21756
21761
  * Also see g_source_set_static_name().
21757
21762
  * @param name debug name for the source
21758
21763
  */
21759
- set_name(name: string | null): void
21764
+ set_name(name: string): void
21760
21765
  /**
21761
21766
  * Sets the priority of a source. While the main loop is being run, a
21762
21767
  * source will be dispatched if it is ready to be dispatched and no
@@ -21801,7 +21806,7 @@ interface Source {
21801
21806
  * string literals.
21802
21807
  * @param name debug name for the source
21803
21808
  */
21804
- set_static_name(name: string | null): void
21809
+ set_static_name(name: string): void
21805
21810
  /**
21806
21811
  * Decreases the reference count of a source by one. If the
21807
21812
  * resulting reference count is zero the source and associated
@@ -21914,7 +21919,7 @@ class Source {
21914
21919
  * @param tag a #GSource ID
21915
21920
  * @param name debug name for the source
21916
21921
  */
21917
- static set_name_by_id(tag: number, name: string | null): void
21922
+ static set_name_by_id(tag: number, name: string): void
21918
21923
  }
21919
21924
 
21920
21925
  interface SourceCallbackFuncs {
@@ -22035,7 +22040,7 @@ interface String {
22035
22040
  * @param val the string to append onto the end of `string`
22036
22041
  * @returns @string
22037
22042
  */
22038
- append(val: string | null): String
22043
+ append(val: string): String
22039
22044
  /**
22040
22045
  * Adds a byte onto the end of a #GString, expanding
22041
22046
  * it if necessary.
@@ -22057,7 +22062,7 @@ interface String {
22057
22062
  * @param len number of bytes of `val` to use, or -1 for all of `val`
22058
22063
  * @returns @string
22059
22064
  */
22060
- append_len(val: string | null, len: number): String
22065
+ append_len(val: string, len: number): String
22061
22066
  /**
22062
22067
  * Converts a Unicode character into UTF-8, and appends it
22063
22068
  * to the string.
@@ -22073,7 +22078,7 @@ interface String {
22073
22078
  * @param allow_utf8 set %TRUE if the escaped string may include UTF8 characters
22074
22079
  * @returns @string
22075
22080
  */
22076
- append_uri_escaped(unescaped: string | null, reserved_chars_allowed: string | null, allow_utf8: boolean): String
22081
+ append_uri_escaped(unescaped: string, reserved_chars_allowed: string, allow_utf8: boolean): String
22077
22082
  /**
22078
22083
  * Converts all uppercase ASCII letters to lowercase ASCII letters.
22079
22084
  * @returns passed-in @string pointer, with all the uppercase characters converted to lowercase in place, with semantics that exactly match g_ascii_tolower().
@@ -22092,7 +22097,7 @@ interface String {
22092
22097
  * @param rval the string to copy into `string`
22093
22098
  * @returns @string
22094
22099
  */
22095
- assign(rval: string | null): String
22100
+ assign(rval: string): String
22096
22101
  /**
22097
22102
  * Converts a #GString to lowercase.
22098
22103
  * @returns the #GString
@@ -22157,7 +22162,7 @@ interface String {
22157
22162
  * @param val the string to insert
22158
22163
  * @returns @string
22159
22164
  */
22160
- insert(pos: number, val: string | null): String
22165
+ insert(pos: number, val: string): String
22161
22166
  /**
22162
22167
  * Inserts a byte into a #GString, expanding it if necessary.
22163
22168
  * @param pos the position to insert the byte
@@ -22181,7 +22186,7 @@ interface String {
22181
22186
  * @param len number of bytes of `val` to insert, or -1 for all of `val`
22182
22187
  * @returns @string
22183
22188
  */
22184
- insert_len(pos: number, val: string | null, len: number): String
22189
+ insert_len(pos: number, val: string, len: number): String
22185
22190
  /**
22186
22191
  * Converts a Unicode character into UTF-8, and insert it
22187
22192
  * into the string at the given position.
@@ -22196,7 +22201,7 @@ interface String {
22196
22201
  * @param val the string that will overwrite the `string` starting at `pos`
22197
22202
  * @returns @string
22198
22203
  */
22199
- overwrite(pos: number, val: string | null): String
22204
+ overwrite(pos: number, val: string): String
22200
22205
  /**
22201
22206
  * Overwrites part of a string, lengthening it if necessary.
22202
22207
  * This function will work with embedded nuls.
@@ -22205,14 +22210,14 @@ interface String {
22205
22210
  * @param len the number of bytes to write from `val`
22206
22211
  * @returns @string
22207
22212
  */
22208
- overwrite_len(pos: number, val: string | null, len: number): String
22213
+ overwrite_len(pos: number, val: string, len: number): String
22209
22214
  /**
22210
22215
  * Adds a string on to the start of a #GString,
22211
22216
  * expanding it if necessary.
22212
22217
  * @param val the string to prepend on the start of `string`
22213
22218
  * @returns @string
22214
22219
  */
22215
- prepend(val: string | null): String
22220
+ prepend(val: string): String
22216
22221
  /**
22217
22222
  * Adds a byte onto the start of a #GString,
22218
22223
  * expanding it if necessary.
@@ -22234,7 +22239,7 @@ interface String {
22234
22239
  * @param len number of bytes in `val` to prepend, or -1 for all of `val`
22235
22240
  * @returns @string
22236
22241
  */
22237
- prepend_len(val: string | null, len: number): String
22242
+ prepend_len(val: string, len: number): String
22238
22243
  /**
22239
22244
  * Converts a Unicode character into UTF-8, and prepends it
22240
22245
  * to the string.
@@ -22257,7 +22262,7 @@ interface String {
22257
22262
  * @param limit the maximum instances of `find` to replace with `replace,` or `0` for no limit
22258
22263
  * @returns the number of find and replace operations performed.
22259
22264
  */
22260
- replace(find: string | null, replace: string | null, limit: number): number
22265
+ replace(find: string, replace: string, limit: number): number
22261
22266
  /**
22262
22267
  * Sets the length of a #GString. If the length is less than
22263
22268
  * the current length, the string will be truncated. If the
@@ -22320,7 +22325,7 @@ class String {
22320
22325
  * @param len length of `init` to use
22321
22326
  * @returns a new #GString
22322
22327
  */
22323
- static new_len(init: string | null, len: number): String
22328
+ static new_len(init: string, len: number): String
22324
22329
  /**
22325
22330
  * Creates a new #GString, initialized with the given string.
22326
22331
  *
@@ -22375,7 +22380,7 @@ interface StringChunk {
22375
22380
  * @param string the string to add
22376
22381
  * @returns a pointer to the copy of @string within the #GStringChunk
22377
22382
  */
22378
- insert(string: string | null): string | null
22383
+ insert(string: string): string | null
22379
22384
  /**
22380
22385
  * Adds a copy of `string` to the #GStringChunk, unless the same
22381
22386
  * string has already been added to the #GStringChunk with
@@ -22393,7 +22398,7 @@ interface StringChunk {
22393
22398
  * @param string the string to add
22394
22399
  * @returns a pointer to the new or existing copy of @string within the #GStringChunk
22395
22400
  */
22396
- insert_const(string: string | null): string | null
22401
+ insert_const(string: string): string | null
22397
22402
  /**
22398
22403
  * Adds a copy of the first `len` bytes of `string` to the #GStringChunk.
22399
22404
  * The copy is nul-terminated.
@@ -22408,7 +22413,7 @@ interface StringChunk {
22408
22413
  * @param len number of bytes of `string` to insert, or -1 to insert a nul-terminated string
22409
22414
  * @returns a pointer to the copy of @string within the #GStringChunk
22410
22415
  */
22411
- insert_len(string: string | null, len: number): string | null
22416
+ insert_len(string: string, len: number): string | null
22412
22417
  }
22413
22418
 
22414
22419
  /**
@@ -22433,7 +22438,7 @@ interface StrvBuilder {
22433
22438
  * Since 2.68
22434
22439
  * @param value a string.
22435
22440
  */
22436
- add(value: string | null): void
22441
+ add(value: string): void
22437
22442
  /**
22438
22443
  * Appends all the strings in the given vector to the builder.
22439
22444
  *
@@ -23064,7 +23069,7 @@ class TimeVal {
23064
23069
  * @param iso_date an ISO 8601 encoded date string
23065
23070
  * @returns %TRUE if the conversion was successful.
23066
23071
  */
23067
- static from_iso8601(iso_date: string | null): [ /* returnType */ boolean, /* time_ */ TimeVal ]
23072
+ static from_iso8601(iso_date: string): [ /* returnType */ boolean, /* time_ */ TimeVal ]
23068
23073
  }
23069
23074
 
23070
23075
  interface TimeZone {
@@ -23127,7 +23132,7 @@ interface TimeZone {
23127
23132
  * @param interval an interval within the timezone
23128
23133
  * @returns the time zone abbreviation, which belongs to @tz
23129
23134
  */
23130
- get_abbreviation(interval: number): string | null
23135
+ get_abbreviation(interval: number): string
23131
23136
  /**
23132
23137
  * Get the identifier of this #GTimeZone, as passed to g_time_zone_new().
23133
23138
  * If the identifier passed at construction time was not recognised, `UTC` will
@@ -23139,7 +23144,7 @@ interface TimeZone {
23139
23144
  * this function.
23140
23145
  * @returns identifier for this timezone
23141
23146
  */
23142
- get_identifier(): string | null
23147
+ get_identifier(): string
23143
23148
  /**
23144
23149
  * Determines the offset to UTC in effect during a particular `interval`
23145
23150
  * of time in the time zone `tz`.
@@ -23735,7 +23740,7 @@ interface Uri {
23735
23740
  * flags with which `uri` was created.
23736
23741
  * @returns @uri's path.
23737
23742
  */
23738
- get_path(): string | null
23743
+ get_path(): string
23739
23744
  /**
23740
23745
  * Gets `uri'`s port.
23741
23746
  * @returns @uri's port, or `-1` if no port was specified.
@@ -23755,7 +23760,7 @@ interface Uri {
23755
23760
  * regardless of the string or strings that `uri` was created from.
23756
23761
  * @returns @uri's scheme.
23757
23762
  */
23758
- get_scheme(): string | null
23763
+ get_scheme(): string
23759
23764
  /**
23760
23765
  * Gets the ‘username’ component of `uri'`s userinfo, which may contain
23761
23766
  * `%`-encoding, depending on the flags with which `uri` was created.
@@ -23779,7 +23784,7 @@ interface Uri {
23779
23784
  * @param flags flags describing how to parse `uri_ref`
23780
23785
  * @returns a new #GUri, or NULL on error.
23781
23786
  */
23782
- parse_relative(uri_ref: string | null, flags: UriFlags): Uri
23787
+ parse_relative(uri_ref: string, flags: UriFlags): Uri
23783
23788
  /**
23784
23789
  * Returns a string representing `uri`.
23785
23790
  *
@@ -23939,7 +23944,7 @@ class Uri {
23939
23944
  * @param fragment the fragment, or %NULL
23940
23945
  * @returns a new #GUri
23941
23946
  */
23942
- 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
23947
+ static build(flags: UriFlags, scheme: string, userinfo: string | null, host: string | null, port: number, path: string, query: string | null, fragment: string | null): Uri
23943
23948
  /**
23944
23949
  * Creates a new #GUri from the given components according to `flags`
23945
23950
  * (%G_URI_FLAGS_HAS_PASSWORD is added unconditionally). The `flags` must be
@@ -23961,7 +23966,7 @@ class Uri {
23961
23966
  * @param fragment the fragment, or %NULL
23962
23967
  * @returns a new #GUri
23963
23968
  */
23964
- 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
23969
+ 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
23965
23970
  static error_quark(): Quark
23966
23971
  /**
23967
23972
  * Escapes arbitrary data for use in a URI.
@@ -23994,7 +23999,7 @@ class Uri {
23994
23999
  * @param allow_utf8 %TRUE if the result can include UTF-8 characters.
23995
24000
  * @returns an escaped version of @unescaped. The returned string should be freed when no longer needed.
23996
24001
  */
23997
- static escape_string(unescaped: string | null, reserved_chars_allowed: string | null, allow_utf8: boolean): string | null
24002
+ static escape_string(unescaped: string, reserved_chars_allowed: string | null, allow_utf8: boolean): string | null
23998
24003
  /**
23999
24004
  * Parses `uri_string` according to `flags,` to determine whether it is a valid
24000
24005
  * [absolute URI][relative-absolute-uris], i.e. it does not need to be resolved
@@ -24008,7 +24013,7 @@ class Uri {
24008
24013
  * @param flags flags for parsing `uri_string`
24009
24014
  * @returns %TRUE if @uri_string is a valid absolute URI, %FALSE on error.
24010
24015
  */
24011
- static is_valid(uri_string: string | null, flags: UriFlags): boolean
24016
+ static is_valid(uri_string: string, flags: UriFlags): boolean
24012
24017
  /**
24013
24018
  * Joins the given components together according to `flags` to create
24014
24019
  * an absolute URI string. `path` may not be %NULL (though it may be the empty
@@ -24034,7 +24039,7 @@ class Uri {
24034
24039
  * @param fragment the fragment, or %NULL
24035
24040
  * @returns an absolute URI string
24036
24041
  */
24037
- 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
24042
+ 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
24038
24043
  /**
24039
24044
  * Joins the given components together according to `flags` to create
24040
24045
  * an absolute URI string. `path` may not be %NULL (though it may be the empty
@@ -24057,7 +24062,7 @@ class Uri {
24057
24062
  * @param fragment the fragment, or %NULL
24058
24063
  * @returns an absolute URI string
24059
24064
  */
24060
- 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
24065
+ 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
24061
24066
  /**
24062
24067
  * Splits an URI list conforming to the text/uri-list
24063
24068
  * mime type defined in RFC 2483 into individual URIs,
@@ -24065,7 +24070,7 @@ class Uri {
24065
24070
  * @param uri_list an URI list
24066
24071
  * @returns a newly allocated %NULL-terminated list of strings holding the individual URIs. The array should be freed with g_strfreev().
24067
24072
  */
24068
- static list_extract_uris(uri_list: string | null): string[]
24073
+ static list_extract_uris(uri_list: string): string[]
24069
24074
  /**
24070
24075
  * Parses `uri_string` according to `flags`. If the result is not a
24071
24076
  * valid [absolute URI][relative-absolute-uris], it will be discarded, and an
@@ -24074,7 +24079,7 @@ class Uri {
24074
24079
  * @param flags flags describing how to parse `uri_string`
24075
24080
  * @returns a new #GUri, or NULL on error.
24076
24081
  */
24077
- static parse(uri_string: string | null, flags: UriFlags): Uri
24082
+ static parse(uri_string: string, flags: UriFlags): Uri
24078
24083
  /**
24079
24084
  * Many URI schemes include one or more attribute/value pairs as part of the URI
24080
24085
  * value. This method can be used to parse them into a hash table. When an
@@ -24106,7 +24111,7 @@ class Uri {
24106
24111
  * @param flags flags to modify the way the parameters are handled.
24107
24112
  * @returns A hash table of attribute/value pairs, with both names and values fully-decoded; or %NULL on error.
24108
24113
  */
24109
- static parse_params(params: string | null, length: number, separators: string | null, flags: UriParamsFlags): HashTable
24114
+ static parse_params(params: string, length: number, separators: string, flags: UriParamsFlags): HashTable
24110
24115
  /**
24111
24116
  * Gets the scheme portion of a URI string.
24112
24117
  * [RFC 3986](https://tools.ietf.org/html/rfc3986#section-3) decodes the scheme
@@ -24120,7 +24125,7 @@ class Uri {
24120
24125
  * @param uri a valid URI.
24121
24126
  * @returns The ‘scheme’ component of the URI, or %NULL on error. The returned string should be freed when no longer needed.
24122
24127
  */
24123
- static parse_scheme(uri: string | null): string | null
24128
+ static parse_scheme(uri: string): string | null
24124
24129
  /**
24125
24130
  * Gets the scheme portion of a URI string.
24126
24131
  * [RFC 3986](https://tools.ietf.org/html/rfc3986#section-3) decodes the scheme
@@ -24137,7 +24142,7 @@ class Uri {
24137
24142
  * @param uri a valid URI.
24138
24143
  * @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.
24139
24144
  */
24140
- static peek_scheme(uri: string | null): string | null
24145
+ static peek_scheme(uri: string): string | null
24141
24146
  /**
24142
24147
  * Parses `uri_ref` according to `flags` and, if it is a
24143
24148
  * [relative URI][relative-absolute-uris], resolves it relative to
@@ -24151,7 +24156,7 @@ class Uri {
24151
24156
  * @param flags flags describing how to parse `uri_ref`
24152
24157
  * @returns the resolved URI string, or NULL on error.
24153
24158
  */
24154
- static resolve_relative(base_uri_string: string | null, uri_ref: string | null, flags: UriFlags): string | null
24159
+ static resolve_relative(base_uri_string: string | null, uri_ref: string, flags: UriFlags): string | null
24155
24160
  /**
24156
24161
  * Parses `uri_ref` (which can be an
24157
24162
  * [absolute or relative URI][relative-absolute-uris]) according to `flags,` and
@@ -24173,7 +24178,7 @@ class Uri {
24173
24178
  * @param flags flags for parsing `uri_ref`
24174
24179
  * @returns %TRUE if @uri_ref parsed successfully, %FALSE on error.
24175
24180
  */
24176
- 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 ]
24181
+ 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 ]
24177
24182
  /**
24178
24183
  * Parses `uri_string` (which must be an [absolute URI][relative-absolute-uris])
24179
24184
  * according to `flags,` and returns the pieces relevant to connecting to a host.
@@ -24185,7 +24190,7 @@ class Uri {
24185
24190
  * @param flags flags for parsing `uri_string`
24186
24191
  * @returns %TRUE if @uri_string parsed successfully, %FALSE on error.
24187
24192
  */
24188
- static split_network(uri_string: string | null, flags: UriFlags): [ /* returnType */ boolean, /* scheme */ string | null, /* host */ string | null, /* port */ number ]
24193
+ static split_network(uri_string: string, flags: UriFlags): [ /* returnType */ boolean, /* scheme */ string | null, /* host */ string | null, /* port */ number ]
24189
24194
  /**
24190
24195
  * Parses `uri_ref` (which can be an
24191
24196
  * [absolute or relative URI][relative-absolute-uris]) according to `flags,` and
@@ -24202,7 +24207,7 @@ class Uri {
24202
24207
  * @param flags flags for parsing `uri_ref`
24203
24208
  * @returns %TRUE if @uri_ref parsed successfully, %FALSE on error.
24204
24209
  */
24205
- 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 ]
24210
+ 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 ]
24206
24211
  /**
24207
24212
  * Unescapes a segment of an escaped string as binary data.
24208
24213
  *
@@ -24219,7 +24224,7 @@ class Uri {
24219
24224
  * @param illegal_characters a string of illegal characters not to be allowed, or %NULL.
24220
24225
  * @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.
24221
24226
  */
24222
- static unescape_bytes(escaped_string: string | null, length: number, illegal_characters: string | null): Bytes
24227
+ static unescape_bytes(escaped_string: string, length: number, illegal_characters: string | null): Bytes
24223
24228
  /**
24224
24229
  * Unescapes a segment of an escaped string.
24225
24230
  *
@@ -24249,7 +24254,7 @@ class Uri {
24249
24254
  * @param illegal_characters a string of illegal characters not to be allowed, or %NULL.
24250
24255
  * @returns an unescaped version of @escaped_string. The returned string should be freed when no longer needed.
24251
24256
  */
24252
- static unescape_string(escaped_string: string | null, illegal_characters: string | null): string | null
24257
+ static unescape_string(escaped_string: string, illegal_characters: string | null): string | null
24253
24258
  }
24254
24259
 
24255
24260
  interface UriParamsIter {
@@ -24297,7 +24302,7 @@ interface UriParamsIter {
24297
24302
  * @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.
24298
24303
  * @param flags flags to modify the way the parameters are handled.
24299
24304
  */
24300
- init(params: string | null, length: number, separators: string | null, flags: UriParamsFlags): void
24305
+ init(params: string, length: number, separators: string, flags: UriParamsFlags): void
24301
24306
  /**
24302
24307
  * Advances `iter` and retrieves the next attribute/value. %FALSE is returned if
24303
24308
  * an error has occurred (in which case `error` is set), or if the end of the
@@ -24376,7 +24381,7 @@ interface Variant {
24376
24381
  * @param copy_only %TRUE to ensure the format string makes deep copies
24377
24382
  * @returns %TRUE if @format_string is safe to use
24378
24383
  */
24379
- check_format_string(format_string: string | null, copy_only: boolean): boolean
24384
+ check_format_string(format_string: string, copy_only: boolean): boolean
24380
24385
  /**
24381
24386
  * Classifies `value` according to its top-level type.
24382
24387
  * @returns the #GVariantClass of @value
@@ -24721,7 +24726,7 @@ interface Variant {
24721
24726
  * The return value remains valid as long as `value` exists.
24722
24727
  * @returns the constant string, UTF-8 encoded
24723
24728
  */
24724
- get_string(): [ /* returnType */ string | null, /* length */ number ]
24729
+ get_string(): [ /* returnType */ string, /* length */ number ]
24725
24730
  /**
24726
24731
  * Gets the contents of an array of strings #GVariant. This call
24727
24732
  * makes a shallow copy; the return result should be released with
@@ -24750,7 +24755,7 @@ interface Variant {
24750
24755
  * string belongs to #GVariant and must not be freed.
24751
24756
  * @returns the type string for the type of @value
24752
24757
  */
24753
- get_type_string(): string | null
24758
+ get_type_string(): string
24754
24759
  /**
24755
24760
  * Returns the 16-bit unsigned integer value of `value`.
24756
24761
  *
@@ -24861,7 +24866,7 @@ interface Variant {
24861
24866
  * @param expected_type a #GVariantType, or %NULL
24862
24867
  * @returns the value of the dictionary key, or %NULL
24863
24868
  */
24864
- lookup_value(key: string | null, expected_type: VariantType | null): Variant
24869
+ lookup_value(key: string, expected_type: VariantType | null): Variant
24865
24870
  /**
24866
24871
  * Determines the number of children in a container #GVariant instance.
24867
24872
  * This includes variants, maybes, arrays, tuples and dictionary
@@ -25449,7 +25454,7 @@ class Variant {
25449
25454
  * @param object_path a normal C nul-terminated string
25450
25455
  * @returns a floating reference to a new object path #GVariant instance
25451
25456
  */
25452
- static new_object_path(object_path: string | null): Variant
25457
+ static new_object_path(object_path: string): Variant
25453
25458
  /**
25454
25459
  * Constructs an array of object paths #GVariant from the given array of
25455
25460
  * strings.
@@ -25471,7 +25476,7 @@ class Variant {
25471
25476
  * @param signature a normal C nul-terminated string
25472
25477
  * @returns a floating reference to a new signature #GVariant instance
25473
25478
  */
25474
- static new_signature(signature: string | null): Variant
25479
+ static new_signature(signature: string): Variant
25475
25480
  /**
25476
25481
  * Creates a string #GVariant with the contents of `string`.
25477
25482
  *
@@ -25482,7 +25487,7 @@ class Variant {
25482
25487
  * @param string a normal UTF-8 nul-terminated string
25483
25488
  * @returns a floating reference to a new string #GVariant instance
25484
25489
  */
25485
- static new_string(string: string | null): Variant
25490
+ static new_string(string: string): Variant
25486
25491
  /**
25487
25492
  * Constructs an array of strings #GVariant from the given array of
25488
25493
  * strings.
@@ -25551,7 +25556,7 @@ class Variant {
25551
25556
  * @param string a normal C nul-terminated string
25552
25557
  * @returns %TRUE if @string is a D-Bus object path
25553
25558
  */
25554
- static is_object_path(string: string | null): boolean
25559
+ static is_object_path(string: string): boolean
25555
25560
  /**
25556
25561
  * Determines if a given string is a valid D-Bus type signature. You
25557
25562
  * should ensure that a string is a valid D-Bus type signature before
@@ -25562,7 +25567,7 @@ class Variant {
25562
25567
  * @param string a normal C nul-terminated string
25563
25568
  * @returns %TRUE if @string is a D-Bus type signature
25564
25569
  */
25565
- static is_signature(string: string | null): boolean
25570
+ static is_signature(string: string): boolean
25566
25571
  /**
25567
25572
  * Parses a #GVariant from a text representation.
25568
25573
  *
@@ -25605,7 +25610,7 @@ class Variant {
25605
25610
  * @param endptr a location to store the end pointer, or %NULL
25606
25611
  * @returns a non-floating reference to a #GVariant, or %NULL
25607
25612
  */
25608
- static parse(type: VariantType | null, text: string | null, limit: string | null, endptr: string | null): Variant
25613
+ static parse(type: VariantType | null, text: string, limit: string | null, endptr: string | null): Variant
25609
25614
  /**
25610
25615
  * Pretty-prints a message showing the context of a #GVariant parse
25611
25616
  * error within the string for which parsing was attempted.
@@ -25644,7 +25649,7 @@ class Variant {
25644
25649
  * @param source_str the string that was given to the parser
25645
25650
  * @returns the printed message
25646
25651
  */
25647
- static parse_error_print_context(error: Error, source_str: string | null): string | null
25652
+ static parse_error_print_context(error: Error, source_str: string): string | null
25648
25653
  static parse_error_quark(): Quark
25649
25654
  /**
25650
25655
  * Same as g_variant_error_quark().
@@ -25842,7 +25847,7 @@ interface VariantDict {
25842
25847
  * @param key the key to look up in the dictionary
25843
25848
  * @returns %TRUE if @key is in @dict
25844
25849
  */
25845
- contains(key: string | null): boolean
25850
+ contains(key: string): boolean
25846
25851
  /**
25847
25852
  * Returns the current value of `dict` as a #GVariant of type
25848
25853
  * %G_VARIANT_TYPE_VARDICT, clearing it in the process.
@@ -25861,7 +25866,7 @@ interface VariantDict {
25861
25866
  * @param key the key to insert a value for
25862
25867
  * @param value the value to insert
25863
25868
  */
25864
- insert_value(key: string | null, value: Variant): void
25869
+ insert_value(key: string, value: Variant): void
25865
25870
  /**
25866
25871
  * Looks up a value in a #GVariantDict.
25867
25872
  *
@@ -25878,7 +25883,7 @@ interface VariantDict {
25878
25883
  * @param expected_type a #GVariantType, or %NULL
25879
25884
  * @returns the value of the dictionary key, or %NULL
25880
25885
  */
25881
- lookup_value(key: string | null, expected_type: VariantType | null): Variant | null
25886
+ lookup_value(key: string, expected_type: VariantType | null): Variant | null
25882
25887
  /**
25883
25888
  * Increases the reference count on `dict`.
25884
25889
  *
@@ -25892,7 +25897,7 @@ interface VariantDict {
25892
25897
  * @param key the key to remove
25893
25898
  * @returns %TRUE if the key was found and removed
25894
25899
  */
25895
- remove(key: string | null): boolean
25900
+ remove(key: string): boolean
25896
25901
  /**
25897
25902
  * Decreases the reference count on `dict`.
25898
25903
  *
@@ -26502,7 +26507,7 @@ class VariantType {
26502
26507
  * @param type_string a valid GVariant type string
26503
26508
  * @returns a new #GVariantType
26504
26509
  */
26505
- constructor(type_string: string | null)
26510
+ constructor(type_string: string)
26506
26511
  /**
26507
26512
  * Creates a new #GVariantType corresponding to the type string given
26508
26513
  * by `type_string`. It is appropriate to call g_variant_type_free() on
@@ -26514,7 +26519,7 @@ class VariantType {
26514
26519
  * @param type_string a valid GVariant type string
26515
26520
  * @returns a new #GVariantType
26516
26521
  */
26517
- static new(type_string: string | null): VariantType
26522
+ static new(type_string: string): VariantType
26518
26523
  /**
26519
26524
  * Constructs the type corresponding to an array of elements of the
26520
26525
  * type `type`.
@@ -26558,8 +26563,8 @@ class VariantType {
26558
26563
  * @returns a new tuple #GVariantType Since 2.24
26559
26564
  */
26560
26565
  static new_tuple(items: VariantType[]): VariantType
26561
- static checked_(arg0: string | null): VariantType
26562
- static string_get_depth_(type_string: string | null): number
26566
+ static checked_(arg0: string): VariantType
26567
+ static string_get_depth_(type_string: string): number
26563
26568
  /**
26564
26569
  * Checks if `type_string` is a valid GVariant type string. This call is
26565
26570
  * equivalent to calling g_variant_type_string_scan() and confirming
@@ -26567,7 +26572,7 @@ class VariantType {
26567
26572
  * @param type_string a pointer to any string
26568
26573
  * @returns %TRUE if @type_string is exactly one valid type string Since 2.24
26569
26574
  */
26570
- static string_is_valid(type_string: string | null): boolean
26575
+ static string_is_valid(type_string: string): boolean
26571
26576
  /**
26572
26577
  * Scan for a single complete and valid GVariant type string in `string`.
26573
26578
  * The memory pointed to by `limit` (or bytes beyond it) is never
@@ -26586,7 +26591,7 @@ class VariantType {
26586
26591
  * @param limit the end of `string,` or %NULL
26587
26592
  * @returns %TRUE if a valid type string was found
26588
26593
  */
26589
- static string_scan(string: string | null, limit: string | null): [ /* returnType */ boolean, /* endptr */ string | null ]
26594
+ static string_scan(string: string, limit: string | null): [ /* returnType */ boolean, /* endptr */ string ]
26590
26595
  }
26591
26596
 
26592
26597
  interface DoubleIEEE754 {