@girs/glib-2.0 2.80.2-4.0.0-beta.8 → 2.80.2-4.0.0-beta.10

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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/glib-2.0.d.ts +474 -0
  3. package/package.json +3 -3
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.80.2 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.8.
8
+ GJS TypeScript type definitions for GLib-2.0, generated from library version 2.80.2 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.10.
9
9
 
10
10
 
11
11
  ## Install
package/glib-2.0.d.ts CHANGED
@@ -71,6 +71,18 @@ export namespace GLib {
71
71
  * Note that the #GChecksumType enumeration may be extended at a later
72
72
  * date to include new hashing algorithm types.
73
73
  */
74
+
75
+ /**
76
+ * The hashing algorithm to be used by #GChecksum when performing the
77
+ * digest of some data.
78
+ *
79
+ * Note that the #GChecksumType enumeration may be extended at a later
80
+ * date to include new hashing algorithm types.
81
+ */
82
+ export namespace ChecksumType {
83
+ export const $gtype: GObject.GType<ChecksumType>;
84
+ }
85
+
74
86
  enum ChecksumType {
75
87
  /**
76
88
  * Use the MD5 hashing algorithm
@@ -149,6 +161,15 @@ export namespace GLib {
149
161
  * This enumeration isn't used in the API, but may be useful if you need
150
162
  * to mark a number as a day, month, or year.
151
163
  */
164
+
165
+ /**
166
+ * This enumeration isn't used in the API, but may be useful if you need
167
+ * to mark a number as a day, month, or year.
168
+ */
169
+ export namespace DateDMY {
170
+ export const $gtype: GObject.GType<DateDMY>;
171
+ }
172
+
152
173
  enum DateDMY {
153
174
  /**
154
175
  * a day
@@ -167,6 +188,15 @@ export namespace GLib {
167
188
  * Enumeration representing a month; values are %G_DATE_JANUARY,
168
189
  * %G_DATE_FEBRUARY, etc. %G_DATE_BAD_MONTH is the invalid value.
169
190
  */
191
+
192
+ /**
193
+ * Enumeration representing a month; values are %G_DATE_JANUARY,
194
+ * %G_DATE_FEBRUARY, etc. %G_DATE_BAD_MONTH is the invalid value.
195
+ */
196
+ export namespace DateMonth {
197
+ export const $gtype: GObject.GType<DateMonth>;
198
+ }
199
+
170
200
  enum DateMonth {
171
201
  /**
172
202
  * invalid value
@@ -225,6 +255,15 @@ export namespace GLib {
225
255
  * Enumeration representing a day of the week; %G_DATE_MONDAY,
226
256
  * %G_DATE_TUESDAY, etc. %G_DATE_BAD_WEEKDAY is an invalid weekday.
227
257
  */
258
+
259
+ /**
260
+ * Enumeration representing a day of the week; %G_DATE_MONDAY,
261
+ * %G_DATE_TUESDAY, etc. %G_DATE_BAD_WEEKDAY is an invalid weekday.
262
+ */
263
+ export namespace DateWeekday {
264
+ export const $gtype: GObject.GType<DateWeekday>;
265
+ }
266
+
228
267
  enum DateWeekday {
229
268
  /**
230
269
  * invalid value
@@ -263,6 +302,15 @@ export namespace GLib {
263
302
  * The possible errors, used in the `v_error` field
264
303
  * of #GTokenValue, when the token is a %G_TOKEN_ERROR.
265
304
  */
305
+
306
+ /**
307
+ * The possible errors, used in the `v_error` field
308
+ * of #GTokenValue, when the token is a %G_TOKEN_ERROR.
309
+ */
310
+ export namespace ErrorType {
311
+ export const $gtype: GObject.GType<ErrorType>;
312
+ }
313
+
266
314
  enum ErrorType {
267
315
  /**
268
316
  * unknown error
@@ -520,6 +568,15 @@ export namespace GLib {
520
568
  * #GIOError is only used by the deprecated functions
521
569
  * g_io_channel_read(), g_io_channel_write(), and g_io_channel_seek().
522
570
  */
571
+
572
+ /**
573
+ * #GIOError is only used by the deprecated functions
574
+ * g_io_channel_read(), g_io_channel_write(), and g_io_channel_seek().
575
+ */
576
+ export namespace IOError {
577
+ export const $gtype: GObject.GType<IOError>;
578
+ }
579
+
523
580
  enum IOError {
524
581
  /**
525
582
  * no error
@@ -541,6 +598,14 @@ export namespace GLib {
541
598
  /**
542
599
  * Statuses returned by most of the #GIOFuncs functions.
543
600
  */
601
+
602
+ /**
603
+ * Statuses returned by most of the #GIOFuncs functions.
604
+ */
605
+ export namespace IOStatus {
606
+ export const $gtype: GObject.GType<IOStatus>;
607
+ }
608
+
544
609
  enum IOStatus {
545
610
  /**
546
611
  * An error occurred.
@@ -607,6 +672,19 @@ export namespace GLib {
607
672
  * If a #GLogWriterFunc ignores a log entry, it should return
608
673
  * %G_LOG_WRITER_HANDLED.
609
674
  */
675
+
676
+ /**
677
+ * Return values from #GLogWriterFuncs to indicate whether the given log entry
678
+ * was successfully handled by the writer, or whether there was an error in
679
+ * handling it (and hence a fallback writer should be used).
680
+ *
681
+ * If a #GLogWriterFunc ignores a log entry, it should return
682
+ * %G_LOG_WRITER_HANDLED.
683
+ */
684
+ export namespace LogWriterOutput {
685
+ export const $gtype: GObject.GType<LogWriterOutput>;
686
+ }
687
+
610
688
  enum LogWriterOutput {
611
689
  /**
612
690
  * Log writer has handled the log entry.
@@ -671,6 +749,18 @@ export namespace GLib {
671
749
  * accent or as a single precomposed character. Unicode strings
672
750
  * should generally be normalized before comparing them.
673
751
  */
752
+
753
+ /**
754
+ * Defines how a Unicode string is transformed in a canonical
755
+ * form, standardizing such issues as whether a character with
756
+ * an accent is represented as a base character and combining
757
+ * accent or as a single precomposed character. Unicode strings
758
+ * should generally be normalized before comparing them.
759
+ */
760
+ export namespace NormalizeMode {
761
+ export const $gtype: GObject.GType<NormalizeMode>;
762
+ }
763
+
674
764
  enum NormalizeMode {
675
765
  /**
676
766
  * standardize differences that do not affect the
@@ -739,6 +829,15 @@ export namespace GLib {
739
829
  * The possible statuses of a one-time initialization function
740
830
  * controlled by a #GOnce struct.
741
831
  */
832
+
833
+ /**
834
+ * The possible statuses of a one-time initialization function
835
+ * controlled by a #GOnce struct.
836
+ */
837
+ export namespace OnceStatus {
838
+ export const $gtype: GObject.GType<OnceStatus>;
839
+ }
840
+
742
841
  enum OnceStatus {
743
842
  /**
744
843
  * the function has not been called yet.
@@ -759,6 +858,17 @@ export namespace GLib {
759
858
  * be specified in several ways; with a short option: `-x arg`, with a long
760
859
  * option: `--name arg` or combined in a single argument: `--name=arg`.
761
860
  */
861
+
862
+ /**
863
+ * The #GOptionArg enum values determine which type of extra argument the
864
+ * options expect to find. If an option expects an extra argument, it can
865
+ * be specified in several ways; with a short option: `-x arg`, with a long
866
+ * option: `--name arg` or combined in a single argument: `--name=arg`.
867
+ */
868
+ export namespace OptionArg {
869
+ export const $gtype: GObject.GType<OptionArg>;
870
+ }
871
+
762
872
  enum OptionArg {
763
873
  /**
764
874
  * No extra argument. This is useful for simple flags or booleans.
@@ -1125,6 +1235,15 @@ export namespace GLib {
1125
1235
  * An enumeration specifying the base position for a
1126
1236
  * g_io_channel_seek_position() operation.
1127
1237
  */
1238
+
1239
+ /**
1240
+ * An enumeration specifying the base position for a
1241
+ * g_io_channel_seek_position() operation.
1242
+ */
1243
+ export namespace SeekType {
1244
+ export const $gtype: GObject.GType<SeekType>;
1245
+ }
1246
+
1128
1247
  enum SeekType {
1129
1248
  /**
1130
1249
  * the current position in the file.
@@ -1166,6 +1285,10 @@ export namespace GLib {
1166
1285
  _init(...args: any[]): void;
1167
1286
  }
1168
1287
 
1288
+ export namespace SliceConfig {
1289
+ export const $gtype: GObject.GType<SliceConfig>;
1290
+ }
1291
+
1169
1292
  enum SliceConfig {
1170
1293
  ALWAYS_MALLOC,
1171
1294
  BYPASS_MAGAZINES,
@@ -1292,6 +1415,29 @@ export namespace GLib {
1292
1415
  * tarball) always go in srcdir (even if doing a srcdir != builddir
1293
1416
  * build from git) and are considered as distributed files.
1294
1417
  */
1418
+
1419
+ /**
1420
+ * The type of file to return the filename for, when used with
1421
+ * g_test_build_filename().
1422
+ *
1423
+ * These two options correspond rather directly to the 'dist' and
1424
+ * 'built' terminology that automake uses and are explicitly used to
1425
+ * distinguish between the 'srcdir' and 'builddir' being separate. All
1426
+ * files in your project should either be dist (in the
1427
+ * `EXTRA_DIST` or `dist_schema_DATA`
1428
+ * sense, in which case they will always be in the srcdir) or built (in
1429
+ * the `BUILT_SOURCES` sense, in which case they will
1430
+ * always be in the builddir).
1431
+ *
1432
+ * Note: as a general rule of automake, files that are generated only as
1433
+ * part of the build-from-git process (but then are distributed with the
1434
+ * tarball) always go in srcdir (even if doing a srcdir != builddir
1435
+ * build from git) and are considered as distributed files.
1436
+ */
1437
+ export namespace TestFileType {
1438
+ export const $gtype: GObject.GType<TestFileType>;
1439
+ }
1440
+
1295
1441
  enum TestFileType {
1296
1442
  /**
1297
1443
  * a file that was included in the distribution tarball
@@ -1302,6 +1448,11 @@ export namespace GLib {
1302
1448
  */
1303
1449
  BUILT,
1304
1450
  }
1451
+
1452
+ export namespace TestLogType {
1453
+ export const $gtype: GObject.GType<TestLogType>;
1454
+ }
1455
+
1305
1456
  enum TestLogType {
1306
1457
  NONE,
1307
1458
  ERROR,
@@ -1316,6 +1467,11 @@ export namespace GLib {
1316
1467
  START_SUITE,
1317
1468
  STOP_SUITE,
1318
1469
  }
1470
+
1471
+ export namespace TestResult {
1472
+ export const $gtype: GObject.GType<TestResult>;
1473
+ }
1474
+
1319
1475
  enum TestResult {
1320
1476
  SUCCESS,
1321
1477
  SKIPPED,
@@ -1345,6 +1501,14 @@ export namespace GLib {
1345
1501
  /**
1346
1502
  * Thread priorities.
1347
1503
  */
1504
+
1505
+ /**
1506
+ * Thread priorities.
1507
+ */
1508
+ export namespace ThreadPriority {
1509
+ export const $gtype: GObject.GType<ThreadPriority>;
1510
+ }
1511
+
1348
1512
  enum ThreadPriority {
1349
1513
  /**
1350
1514
  * a priority lower than normal
@@ -1373,6 +1537,21 @@ export namespace GLib {
1373
1537
  * where the same local time occurs twice (during daylight savings time
1374
1538
  * transitions, for example).
1375
1539
  */
1540
+
1541
+ /**
1542
+ * Disambiguates a given time in two ways.
1543
+ *
1544
+ * First, specifies if the given time is in universal or local time.
1545
+ *
1546
+ * Second, if the time is in local time, specifies if it is local
1547
+ * standard time or local daylight time. This is important for the case
1548
+ * where the same local time occurs twice (during daylight savings time
1549
+ * transitions, for example).
1550
+ */
1551
+ export namespace TimeType {
1552
+ export const $gtype: GObject.GType<TimeType>;
1553
+ }
1554
+
1376
1555
  enum TimeType {
1377
1556
  /**
1378
1557
  * the time is in local standard time
@@ -1391,6 +1570,15 @@ export namespace GLib {
1391
1570
  * The possible types of token returned from each
1392
1571
  * g_scanner_get_next_token() call.
1393
1572
  */
1573
+
1574
+ /**
1575
+ * The possible types of token returned from each
1576
+ * g_scanner_get_next_token() call.
1577
+ */
1578
+ export namespace TokenType {
1579
+ export const $gtype: GObject.GType<TokenType>;
1580
+ }
1581
+
1394
1582
  enum TokenType {
1395
1583
  /**
1396
1584
  * the end of the file
@@ -1498,6 +1686,24 @@ export namespace GLib {
1498
1686
  * - Level order: F, B, G, A, D, I, C, E, H
1499
1687
  * ![](Sorted_binary_tree_breadth-first_traversal.svg)
1500
1688
  */
1689
+
1690
+ /**
1691
+ * Specifies the type of traversal performed by g_tree_traverse(),
1692
+ * g_node_traverse() and g_node_find(). The different orders are
1693
+ * illustrated here:
1694
+ * - In order: A, B, C, D, E, F, G, H, I
1695
+ * ![](Sorted_binary_tree_inorder.svg)
1696
+ * - Pre order: F, B, A, D, C, E, G, I, H
1697
+ * ![](Sorted_binary_tree_preorder.svg)
1698
+ * - Post order: A, C, E, D, B, H, I, G, F
1699
+ * ![](Sorted_binary_tree_postorder.svg)
1700
+ * - Level order: F, B, G, A, D, I, C, E, H
1701
+ * ![](Sorted_binary_tree_breadth-first_traversal.svg)
1702
+ */
1703
+ export namespace TraverseType {
1704
+ export const $gtype: GObject.GType<TraverseType>;
1705
+ }
1706
+
1501
1707
  enum TraverseType {
1502
1708
  /**
1503
1709
  * vists a node's left child first, then the node itself,
@@ -1532,6 +1738,19 @@ export namespace GLib {
1532
1738
  *
1533
1739
  * See [Unicode Line Breaking Algorithm](https://www.unicode.org/reports/tr14/).
1534
1740
  */
1741
+
1742
+ /**
1743
+ * These are the possible line break classifications.
1744
+ *
1745
+ * Since new Unicode versions may add new types here, applications should be ready
1746
+ * to handle unknown values. They may be regarded as %G_UNICODE_BREAK_UNKNOWN.
1747
+ *
1748
+ * See [Unicode Line Breaking Algorithm](https://www.unicode.org/reports/tr14/).
1749
+ */
1750
+ export namespace UnicodeBreakType {
1751
+ export const $gtype: GObject.GType<UnicodeBreakType>;
1752
+ }
1753
+
1535
1754
  enum UnicodeBreakType {
1536
1755
  /**
1537
1756
  * Mandatory Break (BK)
@@ -1732,6 +1951,21 @@ export namespace GLib {
1732
1951
  * should be ready to handle unknown values.
1733
1952
  * See [Unicode Standard Annex #24: Script names](http://www.unicode.org/reports/tr24/).
1734
1953
  */
1954
+
1955
+ /**
1956
+ * The #GUnicodeScript enumeration identifies different writing
1957
+ * systems. The values correspond to the names as defined in the
1958
+ * Unicode standard. The enumeration has been added in GLib 2.14,
1959
+ * and is interchangeable with #PangoScript.
1960
+ *
1961
+ * Note that new types may be added in the future. Applications
1962
+ * should be ready to handle unknown values.
1963
+ * See [Unicode Standard Annex #24: Script names](http://www.unicode.org/reports/tr24/).
1964
+ */
1965
+ export namespace UnicodeScript {
1966
+ export const $gtype: GObject.GType<UnicodeScript>;
1967
+ }
1968
+
1735
1969
  enum UnicodeScript {
1736
1970
  /**
1737
1971
  * a value never returned from g_unichar_get_script()
@@ -2404,6 +2638,16 @@ export namespace GLib {
2404
2638
  * Unicode specification.
2405
2639
  * See [Unicode Character Database](http://www.unicode.org/reports/tr44/#General_Category_Values).
2406
2640
  */
2641
+
2642
+ /**
2643
+ * These are the possible character classifications from the
2644
+ * Unicode specification.
2645
+ * See [Unicode Character Database](http://www.unicode.org/reports/tr44/#General_Category_Values).
2646
+ */
2647
+ export namespace UnicodeType {
2648
+ export const $gtype: GObject.GType<UnicodeType>;
2649
+ }
2650
+
2407
2651
  enum UnicodeType {
2408
2652
  /**
2409
2653
  * General category "Other, Control" (Cc)
@@ -2529,6 +2773,14 @@ export namespace GLib {
2529
2773
  /**
2530
2774
  * Mnemonic constants for the ends of a Unix pipe.
2531
2775
  */
2776
+
2777
+ /**
2778
+ * Mnemonic constants for the ends of a Unix pipe.
2779
+ */
2780
+ export namespace UnixPipeEnd {
2781
+ export const $gtype: GObject.GType<UnixPipeEnd>;
2782
+ }
2783
+
2532
2784
  enum UnixPipeEnd {
2533
2785
  /**
2534
2786
  * The readable file descriptor 0
@@ -2604,6 +2856,20 @@ export namespace GLib {
2604
2856
  * every platform has a directory for every logical id in this
2605
2857
  * enumeration.
2606
2858
  */
2859
+
2860
+ /**
2861
+ * These are logical ids for special directories which are defined
2862
+ * depending on the platform used. You should use g_get_user_special_dir()
2863
+ * to retrieve the full path associated to the logical id.
2864
+ *
2865
+ * The #GUserDirectory enumeration can be extended at later date. Not
2866
+ * every platform has a directory for every logical id in this
2867
+ * enumeration.
2868
+ */
2869
+ export namespace UserDirectory {
2870
+ export const $gtype: GObject.GType<UserDirectory>;
2871
+ }
2872
+
2607
2873
  enum UserDirectory {
2608
2874
  /**
2609
2875
  * the user's Desktop directory
@@ -2645,6 +2911,14 @@ export namespace GLib {
2645
2911
  /**
2646
2912
  * The range of possible top-level types of #GVariant instances.
2647
2913
  */
2914
+
2915
+ /**
2916
+ * The range of possible top-level types of #GVariant instances.
2917
+ */
2918
+ export namespace VariantClass {
2919
+ export const $gtype: GObject.GType<VariantClass>;
2920
+ }
2921
+
2648
2922
  enum VariantClass {
2649
2923
  /**
2650
2924
  * The #GVariant is a boolean.
@@ -12368,6 +12642,11 @@ export namespace GLib {
12368
12642
  interface VoidFunc {
12369
12643
  (): void;
12370
12644
  }
12645
+
12646
+ export namespace AsciiType {
12647
+ export const $gtype: GObject.GType<AsciiType>;
12648
+ }
12649
+
12371
12650
  enum AsciiType {
12372
12651
  ALNUM,
12373
12652
  ALPHA,
@@ -12385,6 +12664,15 @@ export namespace GLib {
12385
12664
  * Flags to pass to g_file_set_contents_full() to affect its safety and
12386
12665
  * performance.
12387
12666
  */
12667
+
12668
+ /**
12669
+ * Flags to pass to g_file_set_contents_full() to affect its safety and
12670
+ * performance.
12671
+ */
12672
+ export namespace FileSetContentsFlags {
12673
+ export const $gtype: GObject.GType<FileSetContentsFlags>;
12674
+ }
12675
+
12388
12676
  enum FileSetContentsFlags {
12389
12677
  /**
12390
12678
  * No guarantees about file consistency or durability.
@@ -12418,6 +12706,14 @@ export namespace GLib {
12418
12706
  /**
12419
12707
  * A test to perform on a file using g_file_test().
12420
12708
  */
12709
+
12710
+ /**
12711
+ * A test to perform on a file using g_file_test().
12712
+ */
12713
+ export namespace FileTest {
12714
+ export const $gtype: GObject.GType<FileTest>;
12715
+ }
12716
+
12421
12717
  enum FileTest {
12422
12718
  /**
12423
12719
  * %TRUE if the file is a regular file
@@ -12446,6 +12742,14 @@ export namespace GLib {
12446
12742
  /**
12447
12743
  * Flags to modify the format of the string returned by g_format_size_full().
12448
12744
  */
12745
+
12746
+ /**
12747
+ * Flags to modify the format of the string returned by g_format_size_full().
12748
+ */
12749
+ export namespace FormatSizeFlags {
12750
+ export const $gtype: GObject.GType<FormatSizeFlags>;
12751
+ }
12752
+
12449
12753
  enum FormatSizeFlags {
12450
12754
  /**
12451
12755
  * behave the same as g_format_size()
@@ -12484,6 +12788,14 @@ export namespace GLib {
12484
12788
  /**
12485
12789
  * Flags used internally in the #GHook implementation.
12486
12790
  */
12791
+
12792
+ /**
12793
+ * Flags used internally in the #GHook implementation.
12794
+ */
12795
+ export namespace HookFlagMask {
12796
+ export const $gtype: GObject.GType<HookFlagMask>;
12797
+ }
12798
+
12487
12799
  enum HookFlagMask {
12488
12800
  /**
12489
12801
  * set if the hook has not been destroyed
@@ -12503,6 +12815,15 @@ export namespace GLib {
12503
12815
  * A bitwise combination representing a condition to watch for on an
12504
12816
  * event source.
12505
12817
  */
12818
+
12819
+ /**
12820
+ * A bitwise combination representing a condition to watch for on an
12821
+ * event source.
12822
+ */
12823
+ export namespace IOCondition {
12824
+ export const $gtype: GObject.GType<IOCondition>;
12825
+ }
12826
+
12506
12827
  enum IOCondition {
12507
12828
  /**
12508
12829
  * There is data to read.
@@ -12535,6 +12856,16 @@ export namespace GLib {
12535
12856
  * read with g_io_channel_get_flags(), but not changed with
12536
12857
  * g_io_channel_set_flags().
12537
12858
  */
12859
+
12860
+ /**
12861
+ * Specifies properties of a #GIOChannel. Some of the flags can only be
12862
+ * read with g_io_channel_get_flags(), but not changed with
12863
+ * g_io_channel_set_flags().
12864
+ */
12865
+ export namespace IOFlags {
12866
+ export const $gtype: GObject.GType<IOFlags>;
12867
+ }
12868
+
12538
12869
  enum IOFlags {
12539
12870
  /**
12540
12871
  * no special flags set. Since: 2.74
@@ -12591,6 +12922,14 @@ export namespace GLib {
12591
12922
  /**
12592
12923
  * Flags which influence the parsing.
12593
12924
  */
12925
+
12926
+ /**
12927
+ * Flags which influence the parsing.
12928
+ */
12929
+ export namespace KeyFileFlags {
12930
+ export const $gtype: GObject.GType<KeyFileFlags>;
12931
+ }
12932
+
12594
12933
  enum KeyFileFlags {
12595
12934
  /**
12596
12935
  * No flags, default behaviour
@@ -12617,6 +12956,17 @@ export namespace GLib {
12617
12956
  * It is possible to change how GLib treats messages of the various
12618
12957
  * levels using [func`GLib`.log_set_handler] and [func`GLib`.log_set_fatal_mask].
12619
12958
  */
12959
+
12960
+ /**
12961
+ * Flags specifying the level of log messages.
12962
+ *
12963
+ * It is possible to change how GLib treats messages of the various
12964
+ * levels using [func`GLib`.log_set_handler] and [func`GLib`.log_set_fatal_mask].
12965
+ */
12966
+ export namespace LogLevelFlags {
12967
+ export const $gtype: GObject.GType<LogLevelFlags>;
12968
+ }
12969
+
12620
12970
  enum LogLevelFlags {
12621
12971
  /**
12622
12972
  * internal flag
@@ -12662,6 +13012,15 @@ export namespace GLib {
12662
13012
  * Flags to pass to g_main_context_new_with_flags() which affect the behaviour
12663
13013
  * of a #GMainContext.
12664
13014
  */
13015
+
13016
+ /**
13017
+ * Flags to pass to g_main_context_new_with_flags() which affect the behaviour
13018
+ * of a #GMainContext.
13019
+ */
13020
+ export namespace MainContextFlags {
13021
+ export const $gtype: GObject.GType<MainContextFlags>;
13022
+ }
13023
+
12665
13024
  enum MainContextFlags {
12666
13025
  /**
12667
13026
  * Default behaviour.
@@ -12683,6 +13042,19 @@ export namespace GLib {
12683
13042
  * It is likely that this enum will be extended in the future to
12684
13043
  * support other types.
12685
13044
  */
13045
+
13046
+ /**
13047
+ * A mixed enumerated type and flags field. You must specify one type
13048
+ * (string, strdup, boolean, tristate). Additionally, you may optionally
13049
+ * bitwise OR the type with the flag %G_MARKUP_COLLECT_OPTIONAL.
13050
+ *
13051
+ * It is likely that this enum will be extended in the future to
13052
+ * support other types.
13053
+ */
13054
+ export namespace MarkupCollectType {
13055
+ export const $gtype: GObject.GType<MarkupCollectType>;
13056
+ }
13057
+
12686
13058
  enum MarkupCollectType {
12687
13059
  /**
12688
13060
  * used to terminate the list of attributes
@@ -12727,6 +13099,14 @@ export namespace GLib {
12727
13099
  /**
12728
13100
  * Flags that affect the behaviour of the parser.
12729
13101
  */
13102
+
13103
+ /**
13104
+ * Flags that affect the behaviour of the parser.
13105
+ */
13106
+ export namespace MarkupParseFlags {
13107
+ export const $gtype: GObject.GType<MarkupParseFlags>;
13108
+ }
13109
+
12730
13110
  enum MarkupParseFlags {
12731
13111
  /**
12732
13112
  * No special behaviour. Since: 2.74
@@ -12763,6 +13143,14 @@ export namespace GLib {
12763
13143
  /**
12764
13144
  * Flags which modify individual options.
12765
13145
  */
13146
+
13147
+ /**
13148
+ * Flags which modify individual options.
13149
+ */
13150
+ export namespace OptionFlags {
13151
+ export const $gtype: GObject.GType<OptionFlags>;
13152
+ }
13153
+
12766
13154
  enum OptionFlags {
12767
13155
  /**
12768
13156
  * No flags. Since: 2.42.
@@ -12815,6 +13203,14 @@ export namespace GLib {
12815
13203
  /**
12816
13204
  * Flags specifying compile-time options.
12817
13205
  */
13206
+
13207
+ /**
13208
+ * Flags specifying compile-time options.
13209
+ */
13210
+ export namespace RegexCompileFlags {
13211
+ export const $gtype: GObject.GType<RegexCompileFlags>;
13212
+ }
13213
+
12818
13214
  enum RegexCompileFlags {
12819
13215
  /**
12820
13216
  * No special options set. Since: 2.74
@@ -12952,6 +13348,14 @@ export namespace GLib {
12952
13348
  /**
12953
13349
  * Flags specifying match-time options.
12954
13350
  */
13351
+
13352
+ /**
13353
+ * Flags specifying match-time options.
13354
+ */
13355
+ export namespace RegexMatchFlags {
13356
+ export const $gtype: GObject.GType<RegexMatchFlags>;
13357
+ }
13358
+
12955
13359
  enum RegexMatchFlags {
12956
13360
  /**
12957
13361
  * No special options set. Since: 2.74
@@ -13065,6 +13469,14 @@ export namespace GLib {
13065
13469
  /**
13066
13470
  * Flags passed to g_spawn_sync(), g_spawn_async() and g_spawn_async_with_pipes().
13067
13471
  */
13472
+
13473
+ /**
13474
+ * Flags passed to g_spawn_sync(), g_spawn_async() and g_spawn_async_with_pipes().
13475
+ */
13476
+ export namespace SpawnFlags {
13477
+ export const $gtype: GObject.GType<SpawnFlags>;
13478
+ }
13479
+
13068
13480
  enum SpawnFlags {
13069
13481
  /**
13070
13482
  * no flags, default behaviour
@@ -13138,6 +13550,17 @@ export namespace GLib {
13138
13550
  * Note that in contrast with g_test_trap_fork(), the default is to
13139
13551
  * not show stdout and stderr.
13140
13552
  */
13553
+
13554
+ /**
13555
+ * Flags to pass to g_test_trap_subprocess() to control input and output.
13556
+ *
13557
+ * Note that in contrast with g_test_trap_fork(), the default is to
13558
+ * not show stdout and stderr.
13559
+ */
13560
+ export namespace TestSubprocessFlags {
13561
+ export const $gtype: GObject.GType<TestSubprocessFlags>;
13562
+ }
13563
+
13141
13564
  enum TestSubprocessFlags {
13142
13565
  /**
13143
13566
  * Default behaviour. Since: 2.74
@@ -13168,6 +13591,15 @@ export namespace GLib {
13168
13591
  * Test traps are guards around forked tests.
13169
13592
  * These flags determine what traps to set.
13170
13593
  */
13594
+
13595
+ /**
13596
+ * Test traps are guards around forked tests.
13597
+ * These flags determine what traps to set.
13598
+ */
13599
+ export namespace TestTrapFlags {
13600
+ export const $gtype: GObject.GType<TestTrapFlags>;
13601
+ }
13602
+
13171
13603
  enum TestTrapFlags {
13172
13604
  /**
13173
13605
  * Default behaviour. Since: 2.74
@@ -13198,6 +13630,15 @@ export namespace GLib {
13198
13630
  * Specifies which nodes are visited during several of the tree
13199
13631
  * functions, including g_node_traverse() and g_node_find().
13200
13632
  */
13633
+
13634
+ /**
13635
+ * Specifies which nodes are visited during several of the tree
13636
+ * functions, including g_node_traverse() and g_node_find().
13637
+ */
13638
+ export namespace TraverseFlags {
13639
+ export const $gtype: GObject.GType<TraverseFlags>;
13640
+ }
13641
+
13201
13642
  enum TraverseFlags {
13202
13643
  /**
13203
13644
  * only leaf nodes should be visited. This name has
@@ -13236,6 +13677,19 @@ export namespace GLib {
13236
13677
  * to check the scheme first, and use that to decide what flags to
13237
13678
  * parse it with.
13238
13679
  */
13680
+
13681
+ /**
13682
+ * Flags that describe a URI.
13683
+ *
13684
+ * When parsing a URI, if you need to choose different flags based on
13685
+ * the type of URI, you can use g_uri_peek_scheme() on the URI string
13686
+ * to check the scheme first, and use that to decide what flags to
13687
+ * parse it with.
13688
+ */
13689
+ export namespace UriFlags {
13690
+ export const $gtype: GObject.GType<UriFlags>;
13691
+ }
13692
+
13239
13693
  enum UriFlags {
13240
13694
  /**
13241
13695
  * No flags set.
@@ -13303,6 +13757,17 @@ export namespace GLib {
13303
13757
  * %G_URI_HIDE_AUTH_PARAMS will only work if the #GUri was parsed with
13304
13758
  * the corresponding flags.
13305
13759
  */
13760
+
13761
+ /**
13762
+ * Flags describing what parts of the URI to hide in
13763
+ * g_uri_to_string_partial(). Note that %G_URI_HIDE_PASSWORD and
13764
+ * %G_URI_HIDE_AUTH_PARAMS will only work if the #GUri was parsed with
13765
+ * the corresponding flags.
13766
+ */
13767
+ export namespace UriHideFlags {
13768
+ export const $gtype: GObject.GType<UriHideFlags>;
13769
+ }
13770
+
13306
13771
  enum UriHideFlags {
13307
13772
  /**
13308
13773
  * No flags set.
@@ -13333,6 +13798,15 @@ export namespace GLib {
13333
13798
  * Flags modifying the way parameters are handled by g_uri_parse_params() and
13334
13799
  * #GUriParamsIter.
13335
13800
  */
13801
+
13802
+ /**
13803
+ * Flags modifying the way parameters are handled by g_uri_parse_params() and
13804
+ * #GUriParamsIter.
13805
+ */
13806
+ export namespace UriParamsFlags {
13807
+ export const $gtype: GObject.GType<UriParamsFlags>;
13808
+ }
13809
+
13336
13810
  enum UriParamsFlags {
13337
13811
  /**
13338
13812
  * No flags set.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/glib-2.0",
3
- "version": "2.80.2-4.0.0-beta.8",
3
+ "version": "2.80.2-4.0.0-beta.10",
4
4
  "description": "GJS TypeScript type definitions for GLib-2.0, generated from library version 2.80.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.8",
35
- "@girs/gobject-2.0": "^2.80.2-4.0.0-beta.8"
34
+ "@girs/gjs": "^4.0.0-beta.10",
35
+ "@girs/gobject-2.0": "^2.80.2-4.0.0-beta.10"
36
36
  },
37
37
  "devDependencies": {
38
38
  "typescript": "*"