@girs/glib-2.0 2.82.2-4.0.0-beta.18 → 2.82.2-4.0.0-beta.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/glib-2.0)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for GLib-2.0, generated from library version 2.82.2 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.18.
8
+ GJS TypeScript type definitions for GLib-2.0, generated from library version 2.82.2 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.19.
9
9
 
10
10
 
11
11
  ## Install
package/glib-2.0.d.ts CHANGED
@@ -5027,7 +5027,7 @@ export namespace GLib {
5027
5027
  * @param checksum_type a #GChecksumType
5028
5028
  * @returns the checksum length, or -1 if @checksum_type is not supported.
5029
5029
  */
5030
- function checksum_type_get_length(checksum_type: ChecksumType): number;
5030
+ function checksum_type_get_length(checksum_type: ChecksumType | null): number;
5031
5031
  /**
5032
5032
  * Sets a function to be called when the child indicated by `pid`
5033
5033
  * exits, at the priority `priority`.
@@ -5184,7 +5184,7 @@ export namespace GLib {
5184
5184
  * @param data binary blob to compute the digest of
5185
5185
  * @returns the digest of the binary data as a string in hexadecimal, or %NULL if g_checksum_new() fails for @checksum_type. The returned string should be freed with g_free() when done using it.
5186
5186
  */
5187
- function compute_checksum_for_bytes(checksum_type: ChecksumType, data: Bytes | Uint8Array): string | null;
5187
+ function compute_checksum_for_bytes(checksum_type: ChecksumType | null, data: Bytes | Uint8Array): string | null;
5188
5188
  /**
5189
5189
  * Computes the checksum for a binary `data` of `length`. This is a
5190
5190
  * convenience wrapper for g_checksum_new(), g_checksum_get_string()
@@ -5195,7 +5195,7 @@ export namespace GLib {
5195
5195
  * @param data binary blob to compute the digest of
5196
5196
  * @returns the digest of the binary data as a string in hexadecimal, or %NULL if g_checksum_new() fails for @checksum_type. The returned string should be freed with g_free() when done using it.
5197
5197
  */
5198
- function compute_checksum_for_data(checksum_type: ChecksumType, data: Uint8Array | string): string | null;
5198
+ function compute_checksum_for_data(checksum_type: ChecksumType | null, data: Uint8Array | string): string | null;
5199
5199
  /**
5200
5200
  * Computes the checksum of a string.
5201
5201
  *
@@ -5205,7 +5205,11 @@ export namespace GLib {
5205
5205
  * @param length the length of the string, or -1 if the string is null-terminated.
5206
5206
  * @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.
5207
5207
  */
5208
- function compute_checksum_for_string(checksum_type: ChecksumType, str: string, length: number): string | null;
5208
+ function compute_checksum_for_string(
5209
+ checksum_type: ChecksumType | null,
5210
+ str: string,
5211
+ length: number,
5212
+ ): string | null;
5209
5213
  /**
5210
5214
  * Computes the HMAC for a binary `data`. This is a
5211
5215
  * convenience wrapper for g_hmac_new(), g_hmac_get_string()
@@ -5218,7 +5222,7 @@ export namespace GLib {
5218
5222
  * @returns the HMAC of the binary data as a string in hexadecimal. The returned string should be freed with g_free() when done using it.
5219
5223
  */
5220
5224
  function compute_hmac_for_bytes(
5221
- digest_type: ChecksumType,
5225
+ digest_type: ChecksumType | null,
5222
5226
  key: Bytes | Uint8Array,
5223
5227
  data: Bytes | Uint8Array,
5224
5228
  ): string;
@@ -5234,7 +5238,7 @@ export namespace GLib {
5234
5238
  * @returns the HMAC of the binary data as a string in hexadecimal. The returned string should be freed with g_free() when done using it.
5235
5239
  */
5236
5240
  function compute_hmac_for_data(
5237
- digest_type: ChecksumType,
5241
+ digest_type: ChecksumType | null,
5238
5242
  key: Uint8Array | string,
5239
5243
  data: Uint8Array | string,
5240
5244
  ): string;
@@ -5249,7 +5253,7 @@ export namespace GLib {
5249
5253
  * @returns the HMAC as a hexadecimal string. The returned string should be freed with g_free() when done using it.
5250
5254
  */
5251
5255
  function compute_hmac_for_string(
5252
- digest_type: ChecksumType,
5256
+ digest_type: ChecksumType | null,
5253
5257
  key: Uint8Array | string,
5254
5258
  str: string,
5255
5259
  length: number,
@@ -5431,7 +5435,7 @@ export namespace GLib {
5431
5435
  * @param year year
5432
5436
  * @returns number of days in @month during the @year
5433
5437
  */
5434
- function date_get_days_in_month(month: DateMonth, year: DateYear): number;
5438
+ function date_get_days_in_month(month: DateMonth | null, year: DateYear): number;
5435
5439
  /**
5436
5440
  * Returns the number of weeks in the year, where weeks
5437
5441
  * are taken to start on Monday. Will be 52 or 53. The
@@ -5504,7 +5508,7 @@ export namespace GLib {
5504
5508
  * @param year year
5505
5509
  * @returns %TRUE if the date is a valid one
5506
5510
  */
5507
- function date_valid_dmy(day: DateDay, month: DateMonth, year: DateYear): boolean;
5511
+ function date_valid_dmy(day: DateDay, month: DateMonth | null, year: DateYear): boolean;
5508
5512
  /**
5509
5513
  * Returns %TRUE if the Julian day is valid. Anything greater than zero
5510
5514
  * is basically a valid Julian, though there is a 32-bit limit.
@@ -5518,14 +5522,14 @@ export namespace GLib {
5518
5522
  * @param month month
5519
5523
  * @returns %TRUE if the month is valid
5520
5524
  */
5521
- function date_valid_month(month: DateMonth): boolean;
5525
+ function date_valid_month(month: DateMonth | null): boolean;
5522
5526
  /**
5523
5527
  * Returns %TRUE if the weekday is valid. The seven #GDateWeekday enumeration
5524
5528
  * values are the only valid weekdays.
5525
5529
  * @param weekday weekday
5526
5530
  * @returns %TRUE if the weekday is valid
5527
5531
  */
5528
- function date_valid_weekday(weekday: DateWeekday): boolean;
5532
+ function date_valid_weekday(weekday: DateWeekday | null): boolean;
5529
5533
  /**
5530
5534
  * Returns %TRUE if the year is valid. Any year greater than 0 is valid,
5531
5535
  * though there is a 16-bit limit to what #GDate will understand.
@@ -5944,7 +5948,7 @@ export namespace GLib {
5944
5948
  function file_set_contents_full(
5945
5949
  filename: string,
5946
5950
  contents: Uint8Array | string,
5947
- flags: FileSetContentsFlags,
5951
+ flags: FileSetContentsFlags | null,
5948
5952
  mode: number,
5949
5953
  ): boolean;
5950
5954
  /**
@@ -6013,7 +6017,7 @@ export namespace GLib {
6013
6017
  * @param test bitfield of #GFileTest flags
6014
6018
  * @returns whether a test was %TRUE
6015
6019
  */
6016
- function file_test(filename: string, test: FileTest): boolean;
6020
+ function file_test(filename: string, test: FileTest | null): boolean;
6017
6021
  /**
6018
6022
  * Returns the display basename for the particular filename, guaranteed
6019
6023
  * to be valid UTF-8. The display name might not be identical to the filename,
@@ -6194,7 +6198,7 @@ export namespace GLib {
6194
6198
  * @param flags #GFormatSizeFlags to modify the output
6195
6199
  * @returns a newly-allocated formatted string containing a human readable file size
6196
6200
  */
6197
- function format_size_full(size: number, flags: FormatSizeFlags): string;
6201
+ function format_size_full(size: number, flags: FormatSizeFlags | null): string;
6198
6202
  /**
6199
6203
  * Frees the memory pointed to by `mem`.
6200
6204
  *
@@ -6719,7 +6723,7 @@ export namespace GLib {
6719
6723
  * @param directory the logical id of special directory
6720
6724
  * @returns the path to the specified special directory, or %NULL if the logical id was not found. The returned string is owned by GLib and should not be modified or freed.
6721
6725
  */
6722
- function get_user_special_dir(directory: UserDirectory): string | null;
6726
+ function get_user_special_dir(directory: UserDirectory | null): string | null;
6723
6727
  /**
6724
6728
  * Returns a base directory in which to store state files specific to
6725
6729
  * particular user.
@@ -7252,7 +7256,7 @@ export namespace GLib {
7252
7256
  * @param func the function to call when the condition is satisfied
7253
7257
  * @returns the event source id
7254
7258
  */
7255
- function io_add_watch(channel: IOChannel, priority: number, condition: IOCondition, func: IOFunc): number;
7259
+ function io_add_watch(channel: IOChannel, priority: number, condition: IOCondition | null, func: IOFunc): number;
7256
7260
  /**
7257
7261
  * Converts an `errno` error number to a #GIOChannelError.
7258
7262
  * @param en an `errno` error number, e.g. `EINVAL`
@@ -7279,7 +7283,7 @@ export namespace GLib {
7279
7283
  * @param condition conditions to watch for
7280
7284
  * @returns a new #GSource
7281
7285
  */
7282
- function io_create_watch(channel: IOChannel, condition: IOCondition): Source;
7286
+ function io_create_watch(channel: IOChannel, condition: IOCondition | null): Source;
7283
7287
  function key_file_error_quark(): Quark;
7284
7288
  function list_pop_allocator(): void;
7285
7289
  function list_push_allocator(allocator: Allocator): void;
@@ -7362,7 +7366,7 @@ export namespace GLib {
7362
7366
  */
7363
7367
  function log_default_handler(
7364
7368
  log_domain: string | null,
7365
- log_level: LogLevelFlags,
7369
+ log_level: LogLevelFlags | null,
7366
7370
  message?: string | null,
7367
7371
  unused_data?: any | null,
7368
7372
  ): void;
@@ -7408,7 +7412,7 @@ export namespace GLib {
7408
7412
  * @param fatal_mask the mask containing bits set for each level of error which is to be fatal
7409
7413
  * @returns the old fatal mask
7410
7414
  */
7411
- function log_set_always_fatal(fatal_mask: LogLevelFlags): LogLevelFlags;
7415
+ function log_set_always_fatal(fatal_mask: LogLevelFlags | null): LogLevelFlags;
7412
7416
  /**
7413
7417
  * Enable or disable debug output from the GLib logging system for all domains.
7414
7418
  *
@@ -7440,7 +7444,7 @@ export namespace GLib {
7440
7444
  * @param fatal_mask the new fatal mask
7441
7445
  * @returns the old fatal mask for the log domain
7442
7446
  */
7443
- function log_set_fatal_mask(log_domain: string, fatal_mask: LogLevelFlags): LogLevelFlags;
7447
+ function log_set_fatal_mask(log_domain: string, fatal_mask: LogLevelFlags | null): LogLevelFlags;
7444
7448
  /**
7445
7449
  * Like [func`GLib`.log_set_handler], but takes a destroy notify for the `user_data`.
7446
7450
  *
@@ -7451,7 +7455,7 @@ export namespace GLib {
7451
7455
  * @param log_func the log handler function
7452
7456
  * @returns the ID of the new handler
7453
7457
  */
7454
- function log_set_handler(log_domain: string | null, log_levels: LogLevelFlags, log_func: LogFunc): number;
7458
+ function log_set_handler(log_domain: string | null, log_levels: LogLevelFlags | null, log_func: LogFunc): number;
7455
7459
  /**
7456
7460
  * Set a writer function which will be called to format and write out each log
7457
7461
  * message.
@@ -7482,7 +7486,7 @@ export namespace GLib {
7482
7486
  * @param log_level log level, either from [type@GLib.LogLevelFlags], or a user-defined level
7483
7487
  * @param fields key–value pairs of structured data to add to the log message
7484
7488
  */
7485
- function log_structured_array(log_level: LogLevelFlags, fields: LogField[]): void;
7489
+ function log_structured_array(log_level: LogLevelFlags | null, fields: LogField[]): void;
7486
7490
  /**
7487
7491
  * Log a message with structured data, accepting the data within a [type`GLib`.Variant].
7488
7492
  *
@@ -7503,7 +7507,7 @@ export namespace GLib {
7503
7507
  * @param log_level log level, either from [type@GLib.LogLevelFlags], or a user-defined level
7504
7508
  * @param fields a dictionary ([type@GLib.Variant] of the type `G_VARIANT_TYPE_VARDICT`) containing the key-value pairs of message data.
7505
7509
  */
7506
- function log_variant(log_domain: string | null, log_level: LogLevelFlags, fields: Variant): void;
7510
+ function log_variant(log_domain: string | null, log_level: LogLevelFlags | null, fields: Variant): void;
7507
7511
  /**
7508
7512
  * Format a structured log message and output it to the default log destination
7509
7513
  * for the platform.
@@ -7531,7 +7535,11 @@ export namespace GLib {
7531
7535
  * @param user_data user data passed to [func@GLib.log_set_writer_func]
7532
7536
  * @returns [enum@GLib.LogWriterOutput.HANDLED] on success, [enum@GLib.LogWriterOutput.UNHANDLED] otherwise
7533
7537
  */
7534
- function log_writer_default(log_level: LogLevelFlags, fields: LogField[], user_data?: any | null): LogWriterOutput;
7538
+ function log_writer_default(
7539
+ log_level: LogLevelFlags | null,
7540
+ fields: LogField[],
7541
+ user_data?: any | null,
7542
+ ): LogWriterOutput;
7535
7543
  /**
7536
7544
  * Reset the list of domains to be logged, that might be initially set by the
7537
7545
  * `G_MESSAGES_DEBUG` environment variable.
@@ -7591,7 +7599,7 @@ export namespace GLib {
7591
7599
  * @param log_domain log domain
7592
7600
  * @returns `TRUE` if the log message would be dropped by GLib’s default log handlers
7593
7601
  */
7594
- function log_writer_default_would_drop(log_level: LogLevelFlags, log_domain?: string | null): boolean;
7602
+ function log_writer_default_would_drop(log_level: LogLevelFlags | null, log_domain?: string | null): boolean;
7595
7603
  /**
7596
7604
  * Format a structured log message as a string suitable for outputting to the
7597
7605
  * terminal (or elsewhere).
@@ -7609,7 +7617,7 @@ export namespace GLib {
7609
7617
  * @param use_color `TRUE` to use [ANSI color escape sequences](https://en.wikipedia.org/wiki/ANSI_escape_code) when formatting the message, `FALSE` to not
7610
7618
  * @returns string containing the formatted log message, in the character set of the current locale
7611
7619
  */
7612
- function log_writer_format_fields(log_level: LogLevelFlags, fields: LogField[], use_color: boolean): string;
7620
+ function log_writer_format_fields(log_level: LogLevelFlags | null, fields: LogField[], use_color: boolean): string;
7613
7621
  /**
7614
7622
  * Check whether the given `output_fd` file descriptor is a connection to the
7615
7623
  * systemd journal, or something else (like a log file or `stdout` or
@@ -7641,7 +7649,11 @@ export namespace GLib {
7641
7649
  * @param user_data user data passed to [func@GLib.log_set_writer_func]
7642
7650
  * @returns [enum@GLib.LogWriterOutput.HANDLED] on success, [enum@GLib.LogWriterOutput.UNHANDLED] otherwise
7643
7651
  */
7644
- function log_writer_journald(log_level: LogLevelFlags, fields: LogField[], user_data?: any | null): LogWriterOutput;
7652
+ function log_writer_journald(
7653
+ log_level: LogLevelFlags | null,
7654
+ fields: LogField[],
7655
+ user_data?: any | null,
7656
+ ): LogWriterOutput;
7645
7657
  /**
7646
7658
  * Format a structured log message and print it to either `stdout` or `stderr`,
7647
7659
  * depending on its log level.
@@ -7666,7 +7678,7 @@ export namespace GLib {
7666
7678
  * @returns [enum@GLib.LogWriterOutput.HANDLED] on success, [enum@GLib.LogWriterOutput.UNHANDLED] otherwise
7667
7679
  */
7668
7680
  function log_writer_standard_streams(
7669
- log_level: LogLevelFlags,
7681
+ log_level: LogLevelFlags | null,
7670
7682
  fields: LogField[],
7671
7683
  user_data?: any | null,
7672
7684
  ): LogWriterOutput;
@@ -7697,7 +7709,11 @@ export namespace GLib {
7697
7709
  * @param user_data user data passed to [func@GLib.log_set_writer_func]
7698
7710
  * @returns [enum@GLib.LogWriterOutput.HANDLED] on success, [enum@GLib.LogWriterOutput.UNHANDLED] otherwise
7699
7711
  */
7700
- function log_writer_syslog(log_level: LogLevelFlags, fields: LogField[], user_data?: any | null): LogWriterOutput;
7712
+ function log_writer_syslog(
7713
+ log_level: LogLevelFlags | null,
7714
+ fields: LogField[],
7715
+ user_data?: any | null,
7716
+ ): LogWriterOutput;
7701
7717
  /**
7702
7718
  * A wrapper for the POSIX lstat() function. The lstat() function is
7703
7719
  * like stat() except that in the case of symbolic links, it returns
@@ -8718,8 +8734,8 @@ export namespace GLib {
8718
8734
  function regex_match_simple(
8719
8735
  pattern: string,
8720
8736
  string: string,
8721
- compile_options: RegexCompileFlags,
8722
- match_options: RegexMatchFlags,
8737
+ compile_options: RegexCompileFlags | null,
8738
+ match_options: RegexMatchFlags | null,
8723
8739
  ): boolean;
8724
8740
  /**
8725
8741
  * Breaks the string on the pattern, and returns an array of
@@ -8758,8 +8774,8 @@ export namespace GLib {
8758
8774
  function regex_split_simple(
8759
8775
  pattern: string,
8760
8776
  string: string,
8761
- compile_options: RegexCompileFlags,
8762
- match_options: RegexMatchFlags,
8777
+ compile_options: RegexCompileFlags | null,
8778
+ match_options: RegexMatchFlags | null,
8763
8779
  ): string[];
8764
8780
  /**
8765
8781
  * Resets the cache used for g_get_user_special_dir(), so
@@ -9152,9 +9168,9 @@ export namespace GLib {
9152
9168
  * @param next_offset the offset of the @next field in the blocks
9153
9169
  */
9154
9170
  function slice_free_chain_with_offset(block_size: number, mem_chain: any | null, next_offset: number): void;
9155
- function slice_get_config(ckey: SliceConfig): number;
9156
- function slice_get_config_state(ckey: SliceConfig, address: number, n_values: number): number;
9157
- function slice_set_config(ckey: SliceConfig, value: number): void;
9171
+ function slice_get_config(ckey: SliceConfig | null): number;
9172
+ function slice_get_config_state(ckey: SliceConfig | null, address: number, n_values: number): number;
9173
+ function slice_set_config(ckey: SliceConfig | null, value: number): void;
9158
9174
  function slist_pop_allocator(): void;
9159
9175
  function slist_push_allocator(allocator: Allocator): void;
9160
9176
  /**
@@ -9259,7 +9275,7 @@ export namespace GLib {
9259
9275
  working_directory: string | null,
9260
9276
  argv: string[],
9261
9277
  envp: string[] | null,
9262
- flags: SpawnFlags,
9278
+ flags: SpawnFlags | null,
9263
9279
  child_setup?: SpawnChildSetupFunc | null,
9264
9280
  ): [boolean, Pid | null];
9265
9281
  /**
@@ -9281,7 +9297,7 @@ export namespace GLib {
9281
9297
  working_directory: string | null,
9282
9298
  argv: string[],
9283
9299
  envp: string[] | null,
9284
- flags: SpawnFlags,
9300
+ flags: SpawnFlags | null,
9285
9301
  child_setup: SpawnChildSetupFunc | null,
9286
9302
  stdin_fd: number,
9287
9303
  stdout_fd: number,
@@ -9301,7 +9317,7 @@ export namespace GLib {
9301
9317
  working_directory: string | null,
9302
9318
  argv: string[],
9303
9319
  envp: string[] | null,
9304
- flags: SpawnFlags,
9320
+ flags: SpawnFlags | null,
9305
9321
  child_setup: SpawnChildSetupFunc | null,
9306
9322
  ): [boolean, Pid | null, number, number, number];
9307
9323
  /**
@@ -9515,7 +9531,7 @@ export namespace GLib {
9515
9531
  working_directory: string | null,
9516
9532
  argv: string[],
9517
9533
  envp: string[] | null,
9518
- flags: SpawnFlags,
9534
+ flags: SpawnFlags | null,
9519
9535
  child_setup: SpawnChildSetupFunc | null,
9520
9536
  stdin_fd: number,
9521
9537
  stdout_fd: number,
@@ -9674,7 +9690,7 @@ export namespace GLib {
9674
9690
  working_directory: string | null,
9675
9691
  argv: string[],
9676
9692
  envp: string[] | null,
9677
- flags: SpawnFlags,
9693
+ flags: SpawnFlags | null,
9678
9694
  child_setup: SpawnChildSetupFunc | null,
9679
9695
  ): [boolean, Uint8Array | null, Uint8Array | null, number];
9680
9696
  /**
@@ -10413,7 +10429,7 @@ export namespace GLib {
10413
10429
  * @param log_level the log level of the message
10414
10430
  * @param pattern a glob-style pattern (see [type@GLib.PatternSpec])
10415
10431
  */
10416
- function test_expect_message(log_domain: string | null, log_level: LogLevelFlags, pattern: string): void;
10432
+ function test_expect_message(log_domain: string | null, log_level: LogLevelFlags | null, pattern: string): void;
10417
10433
  /**
10418
10434
  * Indicates that a test failed. This function can be called
10419
10435
  * multiple times from the same test. You can use this function
@@ -10459,7 +10475,7 @@ export namespace GLib {
10459
10475
  * @param file_type the type of file (built vs. distributed)
10460
10476
  * @returns the path of the directory, owned by GLib
10461
10477
  */
10462
- function test_get_dir(file_type: TestFileType): string;
10478
+ function test_get_dir(file_type: TestFileType | null): string;
10463
10479
  /**
10464
10480
  * Gets the test path for the test currently being run.
10465
10481
  *
@@ -10486,7 +10502,7 @@ export namespace GLib {
10486
10502
  * @param msg explanation
10487
10503
  */
10488
10504
  function test_incomplete(msg?: string | null): void;
10489
- function test_log_type_name(log_type: TestLogType): string;
10505
+ function test_log_type_name(log_type: TestLogType | null): string;
10490
10506
  /**
10491
10507
  * Enqueues a callback `destroy_func` to be executed during the next test case
10492
10508
  * teardown phase.
@@ -10704,7 +10720,7 @@ export namespace GLib {
10704
10720
  * @param test_trap_flags Flags to modify forking behaviour.
10705
10721
  * @returns %TRUE for the forked child and %FALSE for the executing parent process.
10706
10722
  */
10707
- function test_trap_fork(usec_timeout: number, test_trap_flags: TestTrapFlags): boolean;
10723
+ function test_trap_fork(usec_timeout: number, test_trap_flags: TestTrapFlags | null): boolean;
10708
10724
  /**
10709
10725
  * Check the result of the last g_test_trap_subprocess() call.
10710
10726
  * @returns %TRUE if the last test subprocess terminated successfully.
@@ -10727,7 +10743,7 @@ export namespace GLib {
10727
10743
  function test_trap_subprocess(
10728
10744
  test_path: string | null,
10729
10745
  usec_timeout: number,
10730
- test_flags: TestSubprocessFlags,
10746
+ test_flags: TestSubprocessFlags | null,
10731
10747
  ): void;
10732
10748
  /**
10733
10749
  * Respawns the test program to run only `test_path` in a subprocess with the
@@ -10831,7 +10847,7 @@ export namespace GLib {
10831
10847
  test_path: string | null,
10832
10848
  envp: string[] | null,
10833
10849
  usec_timeout: number,
10834
- test_flags: TestSubprocessFlags,
10850
+ test_flags: TestSubprocessFlags | null,
10835
10851
  ): void;
10836
10852
  function thread_error_quark(): Quark;
10837
10853
  /**
@@ -11527,7 +11543,7 @@ export namespace GLib {
11527
11543
  * @param script a Unicode script
11528
11544
  * @returns the ISO 15924 code for @script, encoded as an integer, of zero if @script is %G_UNICODE_SCRIPT_INVALID_CODE or ISO 15924 code 'Zzzz' (script code for UNKNOWN) if @script is not understood.
11529
11545
  */
11530
- function unicode_script_to_iso15924(script: UnicodeScript): number;
11546
+ function unicode_script_to_iso15924(script: UnicodeScript | null): number;
11531
11547
  function unix_error_quark(): Quark;
11532
11548
  /**
11533
11549
  * Sets a function to be called when the IO condition, as specified by
@@ -11545,7 +11561,7 @@ export namespace GLib {
11545
11561
  function unix_fd_add_full(
11546
11562
  priority: number,
11547
11563
  fd: number,
11548
- condition: IOCondition,
11564
+ condition: IOCondition | null,
11549
11565
  _function: UnixFDSourceFunc,
11550
11566
  ): number;
11551
11567
  /**
@@ -11560,7 +11576,7 @@ export namespace GLib {
11560
11576
  * @param condition I/O conditions to watch for on @fd
11561
11577
  * @returns the newly created #GSource
11562
11578
  */
11563
- function unix_fd_source_new(fd: number, condition: IOCondition): Source;
11579
+ function unix_fd_source_new(fd: number, condition: IOCondition | null): Source;
11564
11580
  /**
11565
11581
  * Get the `passwd` file entry for the given `user_name` using `getpwnam_r()`.
11566
11582
  * This can fail if the given `user_name` doesn’t exist.
@@ -11699,7 +11715,7 @@ export namespace GLib {
11699
11715
  * @returns a new #GUri
11700
11716
  */
11701
11717
  function uri_build(
11702
- flags: UriFlags,
11718
+ flags: UriFlags | null,
11703
11719
  scheme: string,
11704
11720
  userinfo: string | null,
11705
11721
  host: string | null,
@@ -11730,7 +11746,7 @@ export namespace GLib {
11730
11746
  * @returns a new #GUri
11731
11747
  */
11732
11748
  function uri_build_with_user(
11733
- flags: UriFlags,
11749
+ flags: UriFlags | null,
11734
11750
  scheme: string,
11735
11751
  user: string | null,
11736
11752
  password: string | null,
@@ -11787,7 +11803,7 @@ export namespace GLib {
11787
11803
  * @param flags flags for parsing @uri_string
11788
11804
  * @returns %TRUE if @uri_string is a valid absolute URI, %FALSE on error.
11789
11805
  */
11790
- function uri_is_valid(uri_string: string, flags: UriFlags): boolean;
11806
+ function uri_is_valid(uri_string: string, flags: UriFlags | null): boolean;
11791
11807
  /**
11792
11808
  * Joins the given components together according to `flags` to create
11793
11809
  * an absolute URI string. `path` may not be %NULL (though it may be the empty
@@ -11814,7 +11830,7 @@ export namespace GLib {
11814
11830
  * @returns an absolute URI string
11815
11831
  */
11816
11832
  function uri_join(
11817
- flags: UriFlags,
11833
+ flags: UriFlags | null,
11818
11834
  scheme: string | null,
11819
11835
  userinfo: string | null,
11820
11836
  host: string | null,
@@ -11846,7 +11862,7 @@ export namespace GLib {
11846
11862
  * @returns an absolute URI string
11847
11863
  */
11848
11864
  function uri_join_with_user(
11849
- flags: UriFlags,
11865
+ flags: UriFlags | null,
11850
11866
  scheme: string | null,
11851
11867
  user: string | null,
11852
11868
  password: string | null,
@@ -11873,7 +11889,7 @@ export namespace GLib {
11873
11889
  * @param flags flags describing how to parse @uri_string
11874
11890
  * @returns a new #GUri, or NULL on error.
11875
11891
  */
11876
- function uri_parse(uri_string: string, flags: UriFlags): Uri;
11892
+ function uri_parse(uri_string: string, flags: UriFlags | null): Uri;
11877
11893
  /**
11878
11894
  * Many URI schemes include one or more attribute/value pairs as part of the URI
11879
11895
  * value. This method can be used to parse them into a hash table. When an
@@ -11909,7 +11925,7 @@ export namespace GLib {
11909
11925
  params: string,
11910
11926
  length: number,
11911
11927
  separators: string,
11912
- flags: UriParamsFlags,
11928
+ flags: UriParamsFlags | null,
11913
11929
  ): HashTable<string, string>;
11914
11930
  /**
11915
11931
  * Gets the scheme portion of a URI string.
@@ -11955,7 +11971,7 @@ export namespace GLib {
11955
11971
  * @param flags flags describing how to parse @uri_ref
11956
11972
  * @returns the resolved URI string, or NULL on error.
11957
11973
  */
11958
- function uri_resolve_relative(base_uri_string: string | null, uri_ref: string, flags: UriFlags): string;
11974
+ function uri_resolve_relative(base_uri_string: string | null, uri_ref: string, flags: UriFlags | null): string;
11959
11975
  /**
11960
11976
  * Parses `uri_ref` (which can be an
11961
11977
  * [absolute or relative URI](#relative-and-absolute-uris)) according to `flags,` and
@@ -11979,7 +11995,7 @@ export namespace GLib {
11979
11995
  */
11980
11996
  function uri_split(
11981
11997
  uri_ref: string,
11982
- flags: UriFlags,
11998
+ flags: UriFlags | null,
11983
11999
  ): [boolean, string, string, string, number, string, string, string];
11984
12000
  /**
11985
12001
  * Parses `uri_string` (which must be an [absolute URI](#relative-and-absolute-uris))
@@ -11992,7 +12008,7 @@ export namespace GLib {
11992
12008
  * @param flags flags for parsing @uri_string
11993
12009
  * @returns %TRUE if @uri_string parsed successfully, %FALSE on error.
11994
12010
  */
11995
- function uri_split_network(uri_string: string, flags: UriFlags): [boolean, string, string, number];
12011
+ function uri_split_network(uri_string: string, flags: UriFlags | null): [boolean, string, string, number];
11996
12012
  /**
11997
12013
  * Parses `uri_ref` (which can be an
11998
12014
  * [absolute or relative URI](#relative-and-absolute-uris)) according to `flags,` and
@@ -12011,7 +12027,7 @@ export namespace GLib {
12011
12027
  */
12012
12028
  function uri_split_with_user(
12013
12029
  uri_ref: string,
12014
- flags: UriFlags,
12030
+ flags: UriFlags | null,
12015
12031
  ): [boolean, string, string, string, string, string, number, string, string, string];
12016
12032
  /**
12017
12033
  * Unescapes a segment of an escaped string as binary data.
@@ -12264,7 +12280,7 @@ export namespace GLib {
12264
12280
  * @param mode the type of normalization to perform.
12265
12281
  * @returns a newly allocated string, that is the normalized form of @str, or %NULL if @str is not valid UTF-8.
12266
12282
  */
12267
- function utf8_normalize(str: string, len: number, mode: NormalizeMode): string | null;
12283
+ function utf8_normalize(str: string, len: number, mode: NormalizeMode | null): string | null;
12268
12284
  /**
12269
12285
  * Converts from an integer character offset to a pointer to a position
12270
12286
  * within the string.
@@ -16010,7 +16026,7 @@ export namespace GLib {
16010
16026
  * @param month month
16011
16027
  * @param y year
16012
16028
  */
16013
- set_dmy(day: DateDay, month: DateMonth, y: DateYear): void;
16029
+ set_dmy(day: DateDay, month: DateMonth | null, y: DateYear): void;
16014
16030
  /**
16015
16031
  * Sets the value of a #GDate from a Julian day number.
16016
16032
  * @param julian_date Julian day number (days since January 1, Year 1)
@@ -16021,7 +16037,7 @@ export namespace GLib {
16021
16037
  * day-month-year triplet is invalid, the date will be invalid.
16022
16038
  * @param month month to set
16023
16039
  */
16024
- set_month(month: DateMonth): void;
16040
+ set_month(month: DateMonth | null): void;
16025
16041
  /**
16026
16042
  * Parses a user-inputted string `str,` and try to figure out what date it
16027
16043
  * represents, taking the [current locale][setlocale] into account. If the
@@ -17589,14 +17605,14 @@ export namespace GLib {
17589
17605
  * @param type the position in the file, which can be %G_SEEK_CUR (the current position), %G_SEEK_SET (the start of the file), or %G_SEEK_END (the end of the file)
17590
17606
  * @returns %G_IO_ERROR_NONE if the operation was successful.
17591
17607
  */
17592
- seek(offset: number, type: SeekType): IOError;
17608
+ seek(offset: number, type: SeekType | null): IOError;
17593
17609
  /**
17594
17610
  * Replacement for g_io_channel_seek() with the new API.
17595
17611
  * @param offset The offset in bytes from the position specified by @type
17596
17612
  * @param type a #GSeekType. The type %G_SEEK_CUR is only allowed in those cases where a call to g_io_channel_set_encoding () is allowed. See the documentation for g_io_channel_set_encoding () for details.
17597
17613
  * @returns the status of the operation.
17598
17614
  */
17599
- seek_position(offset: number, type: SeekType): IOStatus;
17615
+ seek_position(offset: number, type: SeekType | null): IOStatus;
17600
17616
  /**
17601
17617
  * Sets the buffer size.
17602
17618
  * @param size the size of the buffer, or 0 to let GLib pick a good size
@@ -17679,7 +17695,7 @@ export namespace GLib {
17679
17695
  * @param flags the flags to set on the IO channel
17680
17696
  * @returns the status of the operation.
17681
17697
  */
17682
- set_flags(flags: IOFlags): IOStatus;
17698
+ set_flags(flags: IOFlags | null): IOStatus;
17683
17699
  /**
17684
17700
  * This sets the string that #GIOChannel uses to determine
17685
17701
  * where in the file a line break occurs.
@@ -18139,7 +18155,7 @@ export namespace GLib {
18139
18155
  * @param flags flags from #GKeyFileFlags
18140
18156
  * @returns %TRUE if a key file could be loaded, %FALSE otherwise
18141
18157
  */
18142
- load_from_bytes(bytes: Bytes | Uint8Array, flags: KeyFileFlags): boolean;
18158
+ load_from_bytes(bytes: Bytes | Uint8Array, flags: KeyFileFlags | null): boolean;
18143
18159
  /**
18144
18160
  * Loads a key file from memory into an empty #GKeyFile structure.
18145
18161
  * If the object cannot be created then %error is set to a #GKeyFileError.
@@ -18148,7 +18164,7 @@ export namespace GLib {
18148
18164
  * @param flags flags from #GKeyFileFlags
18149
18165
  * @returns %TRUE if a key file could be loaded, %FALSE otherwise
18150
18166
  */
18151
- load_from_data(data: string, length: number, flags: KeyFileFlags): boolean;
18167
+ load_from_data(data: string, length: number, flags: KeyFileFlags | null): boolean;
18152
18168
  /**
18153
18169
  * This function looks for a key file named `file` in the paths
18154
18170
  * returned from g_get_user_data_dir() and g_get_system_data_dirs(),
@@ -18159,7 +18175,7 @@ export namespace GLib {
18159
18175
  * @param flags flags from #GKeyFileFlags
18160
18176
  * @returns %TRUE if a key file could be loaded, %FALSE otherwise
18161
18177
  */
18162
- load_from_data_dirs(file: string, flags: KeyFileFlags): [boolean, string];
18178
+ load_from_data_dirs(file: string, flags: KeyFileFlags | null): [boolean, string];
18163
18179
  /**
18164
18180
  * This function looks for a key file named `file` in the paths
18165
18181
  * specified in `search_dirs,` loads the file into `key_file` and
@@ -18175,7 +18191,7 @@ export namespace GLib {
18175
18191
  * @param flags flags from #GKeyFileFlags
18176
18192
  * @returns %TRUE if a key file could be loaded, %FALSE otherwise
18177
18193
  */
18178
- load_from_dirs(file: string, search_dirs: string[], flags: KeyFileFlags): [boolean, string];
18194
+ load_from_dirs(file: string, search_dirs: string[], flags: KeyFileFlags | null): [boolean, string];
18179
18195
  /**
18180
18196
  * Loads a key file into an empty #GKeyFile structure.
18181
18197
  *
@@ -18189,7 +18205,7 @@ export namespace GLib {
18189
18205
  * @param flags flags from #GKeyFileFlags
18190
18206
  * @returns %TRUE if a key file could be loaded, %FALSE otherwise
18191
18207
  */
18192
- load_from_file(file: string, flags: KeyFileFlags): boolean;
18208
+ load_from_file(file: string, flags: KeyFileFlags | null): boolean;
18193
18209
  /**
18194
18210
  * Removes a comment above `key` from `group_name`.
18195
18211
  * If `key` is %NULL then `comment` will be removed above `group_name`.
@@ -19438,7 +19454,7 @@ export namespace GLib {
19438
19454
  * @param flags which types of children are to be visited, one of %G_TRAVERSE_ALL, %G_TRAVERSE_LEAVES and %G_TRAVERSE_NON_LEAVES
19439
19455
  * @param func the function to call for each visited node
19440
19456
  */
19441
- children_foreach(flags: TraverseFlags, func: NodeForeachFunc): void;
19457
+ children_foreach(flags: TraverseFlags | null, func: NodeForeachFunc): void;
19442
19458
  /**
19443
19459
  * Gets the depth of a #GNode.
19444
19460
  *
@@ -19479,7 +19495,7 @@ export namespace GLib {
19479
19495
  * @param flags which types of children are to be counted, one of %G_TRAVERSE_ALL, %G_TRAVERSE_LEAVES and %G_TRAVERSE_NON_LEAVES
19480
19496
  * @returns the number of nodes in the tree
19481
19497
  */
19482
- n_nodes(flags: TraverseFlags): number;
19498
+ n_nodes(flags: TraverseFlags | null): number;
19483
19499
  /**
19484
19500
  * Reverses the order of the children of a #GNode.
19485
19501
  * (It doesn't change the order of the grandchildren.)
@@ -19495,7 +19511,12 @@ export namespace GLib {
19495
19511
  * @param max_depth the maximum depth of the traversal. Nodes below this depth will not be visited. If max_depth is -1 all nodes in the tree are visited. If depth is 1, only the root is visited. If depth is 2, the root and its children are visited. And so on.
19496
19512
  * @param func the function to call for each visited #GNode
19497
19513
  */
19498
- traverse(order: TraverseType, flags: TraverseFlags, max_depth: number, func: NodeTraverseFunc): void;
19514
+ traverse(
19515
+ order: TraverseType | null,
19516
+ flags: TraverseFlags | null,
19517
+ max_depth: number,
19518
+ func: NodeTraverseFunc,
19519
+ ): void;
19499
19520
  /**
19500
19521
  * Unlinks a #GNode from a tree, resulting in two separate trees.
19501
19522
  */
@@ -21107,7 +21128,7 @@ export namespace GLib {
21107
21128
  * @param match_options match options
21108
21129
  * @returns %TRUE is the string matched, %FALSE otherwise
21109
21130
  */
21110
- match(string: string, match_options: RegexMatchFlags): [boolean, MatchInfo | null];
21131
+ match(string: string, match_options: RegexMatchFlags | null): [boolean, MatchInfo | null];
21111
21132
  /**
21112
21133
  * Using the standard algorithm for regular expression matching only
21113
21134
  * the longest match in the string is retrieved. This function uses
@@ -21127,7 +21148,7 @@ export namespace GLib {
21127
21148
  * @param match_options match options
21128
21149
  * @returns %TRUE is the string matched, %FALSE otherwise
21129
21150
  */
21130
- match_all(string: string, match_options: RegexMatchFlags): [boolean, MatchInfo | null];
21151
+ match_all(string: string, match_options: RegexMatchFlags | null): [boolean, MatchInfo | null];
21131
21152
  /**
21132
21153
  * Using the standard algorithm for regular expression matching only
21133
21154
  * the longest match in the `string` is retrieved, it is not possible
@@ -21175,7 +21196,7 @@ export namespace GLib {
21175
21196
  match_all_full(
21176
21197
  string: string[],
21177
21198
  start_position: number,
21178
- match_options: RegexMatchFlags,
21199
+ match_options: RegexMatchFlags | null,
21179
21200
  ): [boolean, MatchInfo | null];
21180
21201
  /**
21181
21202
  * Scans for a match in `string` for the pattern in `regex`.
@@ -21239,7 +21260,7 @@ export namespace GLib {
21239
21260
  match_full(
21240
21261
  string: string[],
21241
21262
  start_position: number,
21242
- match_options: RegexMatchFlags,
21263
+ match_options: RegexMatchFlags | null,
21243
21264
  ): [boolean, MatchInfo | null];
21244
21265
  /**
21245
21266
  * Increases reference count of `regex` by 1.
@@ -21279,7 +21300,12 @@ export namespace GLib {
21279
21300
  * @param match_options options for the match
21280
21301
  * @returns a newly allocated string containing the replacements
21281
21302
  */
21282
- replace(string: string[], start_position: number, replacement: string, match_options: RegexMatchFlags): string;
21303
+ replace(
21304
+ string: string[],
21305
+ start_position: number,
21306
+ replacement: string,
21307
+ match_options: RegexMatchFlags | null,
21308
+ ): string;
21283
21309
  /**
21284
21310
  * Replaces occurrences of the pattern in regex with the output of
21285
21311
  * `eval` for that occurrence.
@@ -21337,7 +21363,7 @@ export namespace GLib {
21337
21363
  replace_eval(
21338
21364
  string: string[],
21339
21365
  start_position: number,
21340
- match_options: RegexMatchFlags,
21366
+ match_options: RegexMatchFlags | null,
21341
21367
  _eval: RegexEvalCallback,
21342
21368
  ): string;
21343
21369
  /**
@@ -21359,7 +21385,7 @@ export namespace GLib {
21359
21385
  string: string[],
21360
21386
  start_position: number,
21361
21387
  replacement: string,
21362
- match_options: RegexMatchFlags,
21388
+ match_options: RegexMatchFlags | null,
21363
21389
  ): string;
21364
21390
  /**
21365
21391
  * Breaks the string on the pattern, and returns an array of the tokens.
@@ -21383,7 +21409,7 @@ export namespace GLib {
21383
21409
  * @param match_options match time option flags
21384
21410
  * @returns a %NULL-terminated gchar ** array. Free it using g_strfreev()
21385
21411
  */
21386
- split(string: string, match_options: RegexMatchFlags): string[];
21412
+ split(string: string, match_options: RegexMatchFlags | null): string[];
21387
21413
  /**
21388
21414
  * Breaks the string on the pattern, and returns an array of the tokens.
21389
21415
  * If the pattern contains capturing parentheses, then the text for each
@@ -21415,7 +21441,7 @@ export namespace GLib {
21415
21441
  split_full(
21416
21442
  string: string[],
21417
21443
  start_position: number,
21418
- match_options: RegexMatchFlags,
21444
+ match_options: RegexMatchFlags | null,
21419
21445
  max_tokens: number,
21420
21446
  ): string[];
21421
21447
  /**
@@ -21704,7 +21730,7 @@ export namespace GLib {
21704
21730
  * @param is_error if %TRUE it is output as an error. If %FALSE it is output as a warning.
21705
21731
  */
21706
21732
  unexp_token(
21707
- expected_token: TokenType,
21733
+ expected_token: TokenType | null,
21708
21734
  identifier_spec: string,
21709
21735
  symbol_spec: string,
21710
21736
  symbol_name: string,
@@ -22306,7 +22332,7 @@ export namespace GLib {
22306
22332
  * @param events an event mask
22307
22333
  * @returns an opaque tag
22308
22334
  */
22309
- add_unix_fd(fd: number, events: IOCondition): any;
22335
+ add_unix_fd(fd: number, events: IOCondition | null): any;
22310
22336
  /**
22311
22337
  * Adds a [struct`GLib`.Source] to a `context` so that it will be executed within
22312
22338
  * that context. Remove it by calling [method`GLib`.Source.destroy].
@@ -22505,7 +22531,7 @@ export namespace GLib {
22505
22531
  * @param tag the tag from [method@GLib.Source.add_unix_fd]
22506
22532
  * @param new_events the new event mask to watch
22507
22533
  */
22508
- modify_unix_fd(tag: any, new_events: IOCondition): void;
22534
+ modify_unix_fd(tag: any, new_events: IOCondition | null): void;
22509
22535
  /**
22510
22536
  * Queries the events reported for the fd corresponding to `tag` on
22511
22537
  * `source` during the last poll.
@@ -23815,7 +23841,7 @@ export namespace GLib {
23815
23841
  * @param time_ a pointer to a number of seconds since January 1, 1970
23816
23842
  * @returns the interval containing @time_, never -1
23817
23843
  */
23818
- adjust_time(type: TimeType, time_: number): [number, number];
23844
+ adjust_time(type: TimeType | null, time_: number): [number, number];
23819
23845
  /**
23820
23846
  * Finds an interval within `tz` that corresponds to the given `time_`.
23821
23847
  * The meaning of `time_` depends on `type`.
@@ -23839,7 +23865,7 @@ export namespace GLib {
23839
23865
  * @param time_ a number of seconds since January 1, 1970
23840
23866
  * @returns the interval containing @time_, or -1 in case of failure
23841
23867
  */
23842
- find_interval(type: TimeType, time_: number): number;
23868
+ find_interval(type: TimeType | null, time_: number): number;
23843
23869
  /**
23844
23870
  * Determines the time zone abbreviation to be used during a particular
23845
23871
  * `interval` of time in the time zone `tz`.
@@ -24236,7 +24262,7 @@ export namespace GLib {
24236
24262
  * @param traverse_func the function to call for each node visited. If this function returns %TRUE, the traversal is stopped.
24237
24263
  * @param traverse_type the order in which nodes are visited, one of %G_IN_ORDER, %G_PRE_ORDER and %G_POST_ORDER
24238
24264
  */
24239
- traverse(traverse_func: TraverseFunc, traverse_type: TraverseType): void;
24265
+ traverse(traverse_func: TraverseFunc, traverse_type: TraverseType | null): void;
24240
24266
  /**
24241
24267
  * Decrements the reference count of `tree` by one.
24242
24268
  * If the reference count drops to 0, all keys and values will
@@ -24987,7 +25013,7 @@ export namespace GLib {
24987
25013
  * @param flags flags describing how to parse @uri_ref
24988
25014
  * @returns a new #GUri, or NULL on error.
24989
25015
  */
24990
- parse_relative(uri_ref: string, flags: UriFlags): Uri;
25016
+ parse_relative(uri_ref: string, flags: UriFlags | null): Uri;
24991
25017
  /**
24992
25018
  * Returns a string representing `uri`.
24993
25019
  *
@@ -25010,7 +25036,7 @@ export namespace GLib {
25010
25036
  * @param flags flags describing what parts of @uri to hide
25011
25037
  * @returns a string representing @uri, which the caller must free.
25012
25038
  */
25013
- to_string_partial(flags: UriHideFlags): string;
25039
+ to_string_partial(flags: UriHideFlags | null): string;
25014
25040
  }
25015
25041
 
25016
25042
  /**
@@ -25075,7 +25101,7 @@ export namespace GLib {
25075
25101
  * @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.
25076
25102
  * @param flags flags to modify the way the parameters are handled.
25077
25103
  */
25078
- init(params: string, length: number, separators: string, flags: UriParamsFlags): void;
25104
+ init(params: string, length: number, separators: string, flags: UriParamsFlags | null): void;
25079
25105
  /**
25080
25106
  * Advances `iter` and retrieves the next attribute/value. %FALSE is returned if
25081
25107
  * an error has occurred (in which case `error` is set), or if the end of the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/glib-2.0",
3
- "version": "2.82.2-4.0.0-beta.18",
3
+ "version": "2.82.2-4.0.0-beta.19",
4
4
  "description": "GJS TypeScript type definitions for GLib-2.0, generated from library version 2.82.2",
5
5
  "type": "module",
6
6
  "module": "glib-2.0.js",
@@ -31,8 +31,8 @@
31
31
  "test": "tsc --project tsconfig.json"
32
32
  },
33
33
  "dependencies": {
34
- "@girs/gjs": "^4.0.0-beta.18",
35
- "@girs/gobject-2.0": "^2.82.2-4.0.0-beta.18"
34
+ "@girs/gjs": "^4.0.0-beta.19",
35
+ "@girs/gobject-2.0": "^2.82.2-4.0.0-beta.19"
36
36
  },
37
37
  "devDependencies": {
38
38
  "typescript": "*"
package/tsconfig.json CHANGED
@@ -15,7 +15,9 @@
15
15
  "removeComments": false,
16
16
  "inlineSourceMap": false,
17
17
  "inlineSources": false,
18
- "newLine": "LF"
18
+ "newLine": "LF",
19
+ // Show diagnostics
20
+ "diagnostics": true
19
21
  },
20
22
  "include": ["./glib-2.0.d.ts"]
21
23
  }