@girs/glib-2.0 2.86.4-4.0.0-beta.39 → 2.86.4-4.0.0-beta.40

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 +45 -498
  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.86.4 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.39.
8
+ GJS TypeScript type definitions for GLib-2.0, generated from library version 2.86.4 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.40.
9
9
 
10
10
  ## Install
11
11
 
package/glib-2.0.d.ts CHANGED
@@ -1156,7 +1156,7 @@ export namespace GLib {
1156
1156
  * Error codes returned by bookmark file parsing.
1157
1157
  */
1158
1158
  class BookmarkFileError extends Error {
1159
- static $gtype: GObject.GType<BookmarkFileError>;
1159
+ static $gtype: GObject.GType<Error>;
1160
1160
 
1161
1161
  // Static fields
1162
1162
 
@@ -1207,18 +1207,6 @@ export namespace GLib {
1207
1207
  * Note that the #GChecksumType enumeration may be extended at a later
1208
1208
  * date to include new hashing algorithm types.
1209
1209
  */
1210
-
1211
- /**
1212
- * The hashing algorithm to be used by #GChecksum when performing the
1213
- * digest of some data.
1214
- *
1215
- * Note that the #GChecksumType enumeration may be extended at a later
1216
- * date to include new hashing algorithm types.
1217
- */
1218
- export namespace ChecksumType {
1219
- export const $gtype: GObject.GType<ChecksumType>;
1220
- }
1221
-
1222
1210
  enum ChecksumType {
1223
1211
  /**
1224
1212
  * Use the MD5 hashing algorithm
@@ -1241,11 +1229,12 @@ export namespace GLib {
1241
1229
  */
1242
1230
  SHA384,
1243
1231
  }
1232
+
1244
1233
  /**
1245
1234
  * Error codes returned by character set conversion routines.
1246
1235
  */
1247
1236
  class ConvertError extends Error {
1248
- static $gtype: GObject.GType<ConvertError>;
1237
+ static $gtype: GObject.GType<Error>;
1249
1238
 
1250
1239
  // Static fields
1251
1240
 
@@ -1296,15 +1285,6 @@ export namespace GLib {
1296
1285
  * This enumeration isn't used in the API, but may be useful if you need
1297
1286
  * to mark a number as a day, month, or year.
1298
1287
  */
1299
-
1300
- /**
1301
- * This enumeration isn't used in the API, but may be useful if you need
1302
- * to mark a number as a day, month, or year.
1303
- */
1304
- export namespace DateDMY {
1305
- export const $gtype: GObject.GType<DateDMY>;
1306
- }
1307
-
1308
1288
  enum DateDMY {
1309
1289
  /**
1310
1290
  * a day
@@ -1319,19 +1299,11 @@ export namespace GLib {
1319
1299
  */
1320
1300
  YEAR,
1321
1301
  }
1322
- /**
1323
- * Enumeration representing a month; values are %G_DATE_JANUARY,
1324
- * %G_DATE_FEBRUARY, etc. %G_DATE_BAD_MONTH is the invalid value.
1325
- */
1326
1302
 
1327
1303
  /**
1328
1304
  * Enumeration representing a month; values are %G_DATE_JANUARY,
1329
1305
  * %G_DATE_FEBRUARY, etc. %G_DATE_BAD_MONTH is the invalid value.
1330
1306
  */
1331
- export namespace DateMonth {
1332
- export const $gtype: GObject.GType<DateMonth>;
1333
- }
1334
-
1335
1307
  enum DateMonth {
1336
1308
  /**
1337
1309
  * invalid value
@@ -1386,19 +1358,11 @@ export namespace GLib {
1386
1358
  */
1387
1359
  DECEMBER,
1388
1360
  }
1389
- /**
1390
- * Enumeration representing a day of the week; %G_DATE_MONDAY,
1391
- * %G_DATE_TUESDAY, etc. %G_DATE_BAD_WEEKDAY is an invalid weekday.
1392
- */
1393
1361
 
1394
1362
  /**
1395
1363
  * Enumeration representing a day of the week; %G_DATE_MONDAY,
1396
1364
  * %G_DATE_TUESDAY, etc. %G_DATE_BAD_WEEKDAY is an invalid weekday.
1397
1365
  */
1398
- export namespace DateWeekday {
1399
- export const $gtype: GObject.GType<DateWeekday>;
1400
- }
1401
-
1402
1366
  enum DateWeekday {
1403
1367
  /**
1404
1368
  * invalid value
@@ -1433,19 +1397,11 @@ export namespace GLib {
1433
1397
  */
1434
1398
  SUNDAY,
1435
1399
  }
1436
- /**
1437
- * The possible errors, used in the `v_error` field
1438
- * of #GTokenValue, when the token is a %G_TOKEN_ERROR.
1439
- */
1440
1400
 
1441
1401
  /**
1442
1402
  * The possible errors, used in the `v_error` field
1443
1403
  * of #GTokenValue, when the token is a %G_TOKEN_ERROR.
1444
1404
  */
1445
- export namespace ErrorType {
1446
- export const $gtype: GObject.GType<ErrorType>;
1447
- }
1448
-
1449
1405
  enum ErrorType {
1450
1406
  /**
1451
1407
  * unknown error
@@ -1480,6 +1436,7 @@ export namespace GLib {
1480
1436
  */
1481
1437
  FLOAT_MALFORMED,
1482
1438
  }
1439
+
1483
1440
  /**
1484
1441
  * Values corresponding to `errno` codes returned from file operations
1485
1442
  * on UNIX. Unlike `errno` codes, GFileError values are available on
@@ -1495,7 +1452,7 @@ export namespace GLib {
1495
1452
  * differences in when a system will report a given error, etc.
1496
1453
  */
1497
1454
  class FileError extends Error {
1498
- static $gtype: GObject.GType<FileError>;
1455
+ static $gtype: GObject.GType<Error>;
1499
1456
 
1500
1457
  // Static fields
1501
1458
 
@@ -1651,7 +1608,7 @@ export namespace GLib {
1651
1608
  * Error codes returned by #GIOChannel operations.
1652
1609
  */
1653
1610
  class IOChannelError extends Error {
1654
- static $gtype: GObject.GType<IOChannelError>;
1611
+ static $gtype: GObject.GType<Error>;
1655
1612
 
1656
1613
  // Static fields
1657
1614
 
@@ -1701,15 +1658,6 @@ export namespace GLib {
1701
1658
  * #GIOError is only used by the deprecated functions
1702
1659
  * g_io_channel_read(), g_io_channel_write(), and g_io_channel_seek().
1703
1660
  */
1704
-
1705
- /**
1706
- * #GIOError is only used by the deprecated functions
1707
- * g_io_channel_read(), g_io_channel_write(), and g_io_channel_seek().
1708
- */
1709
- export namespace IOError {
1710
- export const $gtype: GObject.GType<IOError>;
1711
- }
1712
-
1713
1661
  enum IOError {
1714
1662
  /**
1715
1663
  * no error
@@ -1728,17 +1676,10 @@ export namespace GLib {
1728
1676
  */
1729
1677
  UNKNOWN,
1730
1678
  }
1731
- /**
1732
- * Statuses returned by most of the #GIOFuncs functions.
1733
- */
1734
1679
 
1735
1680
  /**
1736
1681
  * Statuses returned by most of the #GIOFuncs functions.
1737
1682
  */
1738
- export namespace IOStatus {
1739
- export const $gtype: GObject.GType<IOStatus>;
1740
- }
1741
-
1742
1683
  enum IOStatus {
1743
1684
  /**
1744
1685
  * An error occurred.
@@ -1757,11 +1698,12 @@ export namespace GLib {
1757
1698
  */
1758
1699
  AGAIN,
1759
1700
  }
1701
+
1760
1702
  /**
1761
1703
  * Error codes returned by key file parsing.
1762
1704
  */
1763
1705
  class KeyFileError extends Error {
1764
- static $gtype: GObject.GType<KeyFileError>;
1706
+ static $gtype: GObject.GType<Error>;
1765
1707
 
1766
1708
  // Static fields
1767
1709
 
@@ -1804,19 +1746,6 @@ export namespace GLib {
1804
1746
  * If a #GLogWriterFunc ignores a log entry, it should return
1805
1747
  * %G_LOG_WRITER_HANDLED.
1806
1748
  */
1807
-
1808
- /**
1809
- * Return values from #GLogWriterFuncs to indicate whether the given log entry
1810
- * was successfully handled by the writer, or whether there was an error in
1811
- * handling it (and hence a fallback writer should be used).
1812
- *
1813
- * If a #GLogWriterFunc ignores a log entry, it should return
1814
- * %G_LOG_WRITER_HANDLED.
1815
- */
1816
- export namespace LogWriterOutput {
1817
- export const $gtype: GObject.GType<LogWriterOutput>;
1818
- }
1819
-
1820
1749
  enum LogWriterOutput {
1821
1750
  /**
1822
1751
  * Log writer has handled the log entry.
@@ -1827,11 +1756,12 @@ export namespace GLib {
1827
1756
  */
1828
1757
  UNHANDLED,
1829
1758
  }
1759
+
1830
1760
  /**
1831
1761
  * Error codes returned by markup parsing.
1832
1762
  */
1833
1763
  class MarkupError extends Error {
1834
- static $gtype: GObject.GType<MarkupError>;
1764
+ static $gtype: GObject.GType<Error>;
1835
1765
 
1836
1766
  // Static fields
1837
1767
 
@@ -1873,13 +1803,9 @@ export namespace GLib {
1873
1803
  constructor(options: { message: string; code: number });
1874
1804
  }
1875
1805
 
1876
- /**
1877
- * Defines how a Unicode string is transformed in a canonical
1878
- * form, standardizing such issues as whether a character with
1879
- * an accent is represented as a base character and combining
1880
- * accent or as a single precomposed character. Unicode strings
1881
- * should generally be normalized before comparing them.
1882
- */
1806
+ export namespace NormalizeMode {
1807
+ export const $gtype: GObject.GType<NormalizeMode>;
1808
+ }
1883
1809
 
1884
1810
  /**
1885
1811
  * Defines how a Unicode string is transformed in a canonical
@@ -1888,10 +1814,6 @@ export namespace GLib {
1888
1814
  * accent or as a single precomposed character. Unicode strings
1889
1815
  * should generally be normalized before comparing them.
1890
1816
  */
1891
- export namespace NormalizeMode {
1892
- export const $gtype: GObject.GType<NormalizeMode>;
1893
- }
1894
-
1895
1817
  enum NormalizeMode {
1896
1818
  /**
1897
1819
  * standardize differences that do not affect the
@@ -1933,11 +1855,12 @@ export namespace GLib {
1933
1855
  */
1934
1856
  NFKC,
1935
1857
  }
1858
+
1936
1859
  /**
1937
1860
  * Error codes returned by functions converting a string to a number.
1938
1861
  */
1939
1862
  class NumberParserError extends Error {
1940
- static $gtype: GObject.GType<NumberParserError>;
1863
+ static $gtype: GObject.GType<Error>;
1941
1864
 
1942
1865
  // Static fields
1943
1866
 
@@ -1959,15 +1882,6 @@ export namespace GLib {
1959
1882
  * The possible statuses of a one-time initialization function
1960
1883
  * controlled by a #GOnce struct.
1961
1884
  */
1962
-
1963
- /**
1964
- * The possible statuses of a one-time initialization function
1965
- * controlled by a #GOnce struct.
1966
- */
1967
- export namespace OnceStatus {
1968
- export const $gtype: GObject.GType<OnceStatus>;
1969
- }
1970
-
1971
1885
  enum OnceStatus {
1972
1886
  /**
1973
1887
  * the function has not been called yet.
@@ -1982,12 +1896,6 @@ export namespace GLib {
1982
1896
  */
1983
1897
  READY,
1984
1898
  }
1985
- /**
1986
- * The #GOptionArg enum values determine which type of extra argument the
1987
- * options expect to find. If an option expects an extra argument, it can
1988
- * be specified in several ways; with a short option: `-x arg`, with a long
1989
- * option: `--name arg` or combined in a single argument: `--name=arg`.
1990
- */
1991
1899
 
1992
1900
  /**
1993
1901
  * The #GOptionArg enum values determine which type of extra argument the
@@ -1995,10 +1903,6 @@ export namespace GLib {
1995
1903
  * be specified in several ways; with a short option: `-x arg`, with a long
1996
1904
  * option: `--name arg` or combined in a single argument: `--name=arg`.
1997
1905
  */
1998
- export namespace OptionArg {
1999
- export const $gtype: GObject.GType<OptionArg>;
2000
- }
2001
-
2002
1906
  enum OptionArg {
2003
1907
  /**
2004
1908
  * No extra argument. This is useful for simple flags or booleans.
@@ -2046,11 +1950,12 @@ export namespace GLib {
2046
1950
  */
2047
1951
  INT64,
2048
1952
  }
1953
+
2049
1954
  /**
2050
1955
  * Error codes returned by option parsing.
2051
1956
  */
2052
1957
  class OptionError extends Error {
2053
- static $gtype: GObject.GType<OptionError>;
1958
+ static $gtype: GObject.GType<Error>;
2054
1959
 
2055
1960
  // Static fields
2056
1961
 
@@ -2078,7 +1983,7 @@ export namespace GLib {
2078
1983
  * Error codes returned by regular expressions functions.
2079
1984
  */
2080
1985
  class RegexError extends Error {
2081
- static $gtype: GObject.GType<RegexError>;
1986
+ static $gtype: GObject.GType<Error>;
2082
1987
 
2083
1988
  // Static fields
2084
1989
 
@@ -2363,15 +2268,6 @@ export namespace GLib {
2363
2268
  * An enumeration specifying the base position for a
2364
2269
  * g_io_channel_seek_position() operation.
2365
2270
  */
2366
-
2367
- /**
2368
- * An enumeration specifying the base position for a
2369
- * g_io_channel_seek_position() operation.
2370
- */
2371
- export namespace SeekType {
2372
- export const $gtype: GObject.GType<SeekType>;
2373
- }
2374
-
2375
2271
  enum SeekType {
2376
2272
  /**
2377
2273
  * the current position in the file.
@@ -2386,11 +2282,12 @@ export namespace GLib {
2386
2282
  */
2387
2283
  END,
2388
2284
  }
2285
+
2389
2286
  /**
2390
2287
  * Error codes returned by shell functions.
2391
2288
  */
2392
2289
  class ShellError extends Error {
2393
- static $gtype: GObject.GType<ShellError>;
2290
+ static $gtype: GObject.GType<Error>;
2394
2291
 
2395
2292
  // Static fields
2396
2293
 
@@ -2412,10 +2309,6 @@ export namespace GLib {
2412
2309
  constructor(options: { message: string; code: number });
2413
2310
  }
2414
2311
 
2415
- export namespace SliceConfig {
2416
- export const $gtype: GObject.GType<SliceConfig>;
2417
- }
2418
-
2419
2312
  enum SliceConfig {
2420
2313
  ALWAYS_MALLOC,
2421
2314
  BYPASS_MAGAZINES,
@@ -2424,11 +2317,12 @@ export namespace GLib {
2424
2317
  CHUNK_SIZES,
2425
2318
  CONTENTION_COUNTER,
2426
2319
  }
2320
+
2427
2321
  /**
2428
2322
  * Error codes returned by spawning processes.
2429
2323
  */
2430
2324
  class SpawnError extends Error {
2431
- static $gtype: GObject.GType<SpawnError>;
2325
+ static $gtype: GObject.GType<Error>;
2432
2326
 
2433
2327
  // Static fields
2434
2328
 
@@ -2542,30 +2436,6 @@ export namespace GLib {
2542
2436
  *
2543
2437
  * The same principles apply for other build systems, such as meson.
2544
2438
  */
2545
-
2546
- /**
2547
- * The type of file to return the filename for, when used with
2548
- * [func`GLib`.test_build_filename].
2549
- *
2550
- * These two options correspond rather directly to the 'dist' and
2551
- * 'built' terminology that automake uses and are explicitly used to
2552
- * distinguish between the 'srcdir' and 'builddir' being separate. All
2553
- * files in your project should either be dist (in the `EXTRA_DIST` or
2554
- * `dist_schema_DATA` sense, in which case they will always be in the
2555
- * srcdir) or built (in the `BUILT_SOURCES` sense, in which case they
2556
- * will always be in the builddir).
2557
- *
2558
- * Note: As a general rule of automake, files that are generated only as
2559
- * part of the build-from-git process (but then are distributed with the
2560
- * tarball) always go in srcdir (even if doing a srcdir != builddir
2561
- * build from git) and are considered as distributed files.
2562
- *
2563
- * The same principles apply for other build systems, such as meson.
2564
- */
2565
- export namespace TestFileType {
2566
- export const $gtype: GObject.GType<TestFileType>;
2567
- }
2568
-
2569
2439
  enum TestFileType {
2570
2440
  /**
2571
2441
  * a file that was included in the distribution tarball
@@ -2577,10 +2447,6 @@ export namespace GLib {
2577
2447
  BUILT,
2578
2448
  }
2579
2449
 
2580
- export namespace TestLogType {
2581
- export const $gtype: GObject.GType<TestLogType>;
2582
- }
2583
-
2584
2450
  enum TestLogType {
2585
2451
  NONE,
2586
2452
  ERROR,
@@ -2596,21 +2462,18 @@ export namespace GLib {
2596
2462
  STOP_SUITE,
2597
2463
  }
2598
2464
 
2599
- export namespace TestResult {
2600
- export const $gtype: GObject.GType<TestResult>;
2601
- }
2602
-
2603
2465
  enum TestResult {
2604
2466
  SUCCESS,
2605
2467
  SKIPPED,
2606
2468
  FAILURE,
2607
2469
  INCOMPLETE,
2608
2470
  }
2471
+
2609
2472
  /**
2610
2473
  * Possible errors of thread related functions.
2611
2474
  */
2612
2475
  class ThreadError extends Error {
2613
- static $gtype: GObject.GType<ThreadError>;
2476
+ static $gtype: GObject.GType<Error>;
2614
2477
 
2615
2478
  // Static fields
2616
2479
 
@@ -2625,46 +2488,6 @@ export namespace GLib {
2625
2488
  constructor(options: { message: string; code: number });
2626
2489
  }
2627
2490
 
2628
- /**
2629
- * Thread priorities.
2630
- */
2631
-
2632
- /**
2633
- * Thread priorities.
2634
- */
2635
- export namespace ThreadPriority {
2636
- export const $gtype: GObject.GType<ThreadPriority>;
2637
- }
2638
-
2639
- enum ThreadPriority {
2640
- /**
2641
- * a priority lower than normal
2642
- */
2643
- LOW,
2644
- /**
2645
- * the default priority
2646
- */
2647
- NORMAL,
2648
- /**
2649
- * a priority higher than normal
2650
- */
2651
- HIGH,
2652
- /**
2653
- * the highest priority
2654
- */
2655
- URGENT,
2656
- }
2657
- /**
2658
- * Disambiguates a given time in two ways.
2659
- *
2660
- * First, specifies if the given time is in universal or local time.
2661
- *
2662
- * Second, if the time is in local time, specifies if it is local
2663
- * standard time or local daylight time. This is important for the case
2664
- * where the same local time occurs twice (during daylight savings time
2665
- * transitions, for example).
2666
- */
2667
-
2668
2491
  /**
2669
2492
  * Disambiguates a given time in two ways.
2670
2493
  *
@@ -2675,10 +2498,6 @@ export namespace GLib {
2675
2498
  * where the same local time occurs twice (during daylight savings time
2676
2499
  * transitions, for example).
2677
2500
  */
2678
- export namespace TimeType {
2679
- export const $gtype: GObject.GType<TimeType>;
2680
- }
2681
-
2682
2501
  enum TimeType {
2683
2502
  /**
2684
2503
  * the time is in local standard time
@@ -2693,19 +2512,11 @@ export namespace GLib {
2693
2512
  */
2694
2513
  UNIVERSAL,
2695
2514
  }
2696
- /**
2697
- * The possible types of token returned from each
2698
- * g_scanner_get_next_token() call.
2699
- */
2700
2515
 
2701
2516
  /**
2702
2517
  * The possible types of token returned from each
2703
2518
  * g_scanner_get_next_token() call.
2704
2519
  */
2705
- export namespace TokenType {
2706
- export const $gtype: GObject.GType<TokenType>;
2707
- }
2708
-
2709
2520
  enum TokenType {
2710
2521
  /**
2711
2522
  * the end of the file
@@ -2800,41 +2611,6 @@ export namespace GLib {
2800
2611
  */
2801
2612
  COMMENT_MULTI,
2802
2613
  }
2803
- /**
2804
- * Specifies the type of traversal performed by g_tree_traverse(),
2805
- * g_node_traverse() and g_node_find().
2806
- *
2807
- * The different orders are illustrated here:
2808
- *
2809
- * - In order: A, B, C, D, E, F, G, H, I
2810
- * <picture>
2811
- * <source srcset="Sorted_binary_tree_inorder-dark.svg"
2812
- * media="(prefers-color-scheme: dark)">
2813
- * <img src="Sorted_binary_tree_inorder.svg"
2814
- * alt="Sorted binary tree, in-order traversal">
2815
- * </picture>
2816
- * - Pre order: F, B, A, D, C, E, G, I, H
2817
- * <picture>
2818
- * <source srcset="Sorted_binary_tree_preorder-dark.svg"
2819
- * media="(prefers-color-scheme: dark)">
2820
- * <img src="Sorted_binary_tree_preorder.svg"
2821
- * alt="Sorted binary tree, pre-order traversal">
2822
- * </picture>
2823
- * - Post order: A, C, E, D, B, H, I, G, F
2824
- * <picture>
2825
- * <source srcset="Sorted_binary_tree_postorder-dark.svg"
2826
- * media="(prefers-color-scheme: dark)">
2827
- * <img src="Sorted_binary_tree_postorder.svg"
2828
- * alt="Sorted binary tree, post-order traversal">
2829
- * </picture>
2830
- * - Level order: F, B, G, A, D, I, C, E, H
2831
- * <picture>
2832
- * <source srcset="Sorted_binary_tree_breadth-first_traversal-dark.svg"
2833
- * media="(prefers-color-scheme: dark)">
2834
- * <img src="Sorted_binary_tree_breadth-first_traversal.svg"
2835
- * alt="Sorted binary tree, breadth-first level order traversal">
2836
- * </picture>
2837
- */
2838
2614
 
2839
2615
  /**
2840
2616
  * Specifies the type of traversal performed by g_tree_traverse(),
@@ -2871,10 +2647,6 @@ export namespace GLib {
2871
2647
  * alt="Sorted binary tree, breadth-first level order traversal">
2872
2648
  * </picture>
2873
2649
  */
2874
- export namespace TraverseType {
2875
- export const $gtype: GObject.GType<TraverseType>;
2876
- }
2877
-
2878
2650
  enum TraverseType {
2879
2651
  /**
2880
2652
  * visits a node's left child first, then the node itself,
@@ -2901,14 +2673,10 @@ export namespace GLib {
2901
2673
  */
2902
2674
  LEVEL_ORDER,
2903
2675
  }
2904
- /**
2905
- * These are the possible line break classifications.
2906
- *
2907
- * Since new Unicode versions may add new types here, applications should be ready
2908
- * to handle unknown values. They may be regarded as %G_UNICODE_BREAK_UNKNOWN.
2909
- *
2910
- * See [Unicode Line Breaking Algorithm](https://www.unicode.org/reports/tr14/).
2911
- */
2676
+
2677
+ export namespace UnicodeBreakType {
2678
+ export const $gtype: GObject.GType<UnicodeBreakType>;
2679
+ }
2912
2680
 
2913
2681
  /**
2914
2682
  * These are the possible line break classifications.
@@ -2918,10 +2686,6 @@ export namespace GLib {
2918
2686
  *
2919
2687
  * See [Unicode Line Breaking Algorithm](https://www.unicode.org/reports/tr14/).
2920
2688
  */
2921
- export namespace UnicodeBreakType {
2922
- export const $gtype: GObject.GType<UnicodeBreakType>;
2923
- }
2924
-
2925
2689
  enum UnicodeBreakType {
2926
2690
  /**
2927
2691
  * Mandatory Break (BK)
@@ -3120,16 +2884,10 @@ export namespace GLib {
3120
2884
  */
3121
2885
  VIRAMA,
3122
2886
  }
3123
- /**
3124
- * The #GUnicodeScript enumeration identifies different writing
3125
- * systems. The values correspond to the names as defined in the
3126
- * Unicode standard. The enumeration has been added in GLib 2.14,
3127
- * and is interchangeable with #PangoScript.
3128
- *
3129
- * Note that new types may be added in the future. Applications
3130
- * should be ready to handle unknown values.
3131
- * See [Unicode Standard Annex #24: Script names](http://www.unicode.org/reports/tr24/).
3132
- */
2887
+
2888
+ export namespace UnicodeScript {
2889
+ export const $gtype: GObject.GType<UnicodeScript>;
2890
+ }
3133
2891
 
3134
2892
  /**
3135
2893
  * The #GUnicodeScript enumeration identifies different writing
@@ -3141,10 +2899,6 @@ export namespace GLib {
3141
2899
  * should be ready to handle unknown values.
3142
2900
  * See [Unicode Standard Annex #24: Script names](http://www.unicode.org/reports/tr24/).
3143
2901
  */
3144
- export namespace UnicodeScript {
3145
- export const $gtype: GObject.GType<UnicodeScript>;
3146
- }
3147
-
3148
2902
  enum UnicodeScript {
3149
2903
  /**
3150
2904
  * a value never returned from g_unichar_get_script()
@@ -3840,21 +3594,16 @@ export namespace GLib {
3840
3594
  */
3841
3595
  OL_ONAL,
3842
3596
  }
3843
- /**
3844
- * These are the possible character classifications from the
3845
- * Unicode specification.
3846
- * See [Unicode Character Database](http://www.unicode.org/reports/tr44/#General_Category_Values).
3847
- */
3597
+
3598
+ export namespace UnicodeType {
3599
+ export const $gtype: GObject.GType<UnicodeType>;
3600
+ }
3848
3601
 
3849
3602
  /**
3850
3603
  * These are the possible character classifications from the
3851
3604
  * Unicode specification.
3852
3605
  * See [Unicode Character Database](http://www.unicode.org/reports/tr44/#General_Category_Values).
3853
3606
  */
3854
- export namespace UnicodeType {
3855
- export const $gtype: GObject.GType<UnicodeType>;
3856
- }
3857
-
3858
3607
  enum UnicodeType {
3859
3608
  /**
3860
3609
  * General category "Other, Control" (Cc)
@@ -3977,17 +3726,10 @@ export namespace GLib {
3977
3726
  */
3978
3727
  SPACE_SEPARATOR,
3979
3728
  }
3980
- /**
3981
- * Mnemonic constants for the ends of a Unix pipe.
3982
- */
3983
3729
 
3984
3730
  /**
3985
3731
  * Mnemonic constants for the ends of a Unix pipe.
3986
3732
  */
3987
- export namespace UnixPipeEnd {
3988
- export const $gtype: GObject.GType<UnixPipeEnd>;
3989
- }
3990
-
3991
3733
  enum UnixPipeEnd {
3992
3734
  /**
3993
3735
  * The readable file descriptor 0
@@ -3998,11 +3740,12 @@ export namespace GLib {
3998
3740
  */
3999
3741
  WRITE,
4000
3742
  }
3743
+
4001
3744
  /**
4002
3745
  * Error codes returned by #GUri methods.
4003
3746
  */
4004
3747
  class UriError extends Error {
4005
- static $gtype: GObject.GType<UriError>;
3748
+ static $gtype: GObject.GType<Error>;
4006
3749
 
4007
3750
  // Static fields
4008
3751
 
@@ -4062,20 +3805,6 @@ export namespace GLib {
4062
3805
  * every platform has a directory for every logical id in this
4063
3806
  * enumeration.
4064
3807
  */
4065
-
4066
- /**
4067
- * These are logical ids for special directories which are defined
4068
- * depending on the platform used. You should use g_get_user_special_dir()
4069
- * to retrieve the full path associated to the logical id.
4070
- *
4071
- * The #GUserDirectory enumeration can be extended at later date. Not
4072
- * every platform has a directory for every logical id in this
4073
- * enumeration.
4074
- */
4075
- export namespace UserDirectory {
4076
- export const $gtype: GObject.GType<UserDirectory>;
4077
- }
4078
-
4079
3808
  enum UserDirectory {
4080
3809
  /**
4081
3810
  * the user's Desktop directory
@@ -4114,17 +3843,10 @@ export namespace GLib {
4114
3843
  */
4115
3844
  N_DIRECTORIES,
4116
3845
  }
4117
- /**
4118
- * The range of possible top-level types of #GVariant instances.
4119
- */
4120
3846
 
4121
3847
  /**
4122
3848
  * The range of possible top-level types of #GVariant instances.
4123
3849
  */
4124
- export namespace VariantClass {
4125
- export const $gtype: GObject.GType<VariantClass>;
4126
- }
4127
-
4128
3850
  enum VariantClass {
4129
3851
  /**
4130
3852
  * The #GVariant is a boolean.
@@ -4201,11 +3923,12 @@ export namespace GLib {
4201
3923
  */
4202
3924
  DICT_ENTRY,
4203
3925
  }
3926
+
4204
3927
  /**
4205
3928
  * Error codes returned by parsing text-format GVariants.
4206
3929
  */
4207
3930
  class VariantParseError extends Error {
4208
- static $gtype: GObject.GType<VariantParseError>;
3931
+ static $gtype: GObject.GType<Error>;
4209
3932
 
4210
3933
  // Static fields
4211
3934
 
@@ -14210,11 +13933,6 @@ export namespace GLib {
14210
13933
  interface VoidFunc {
14211
13934
  (): void;
14212
13935
  }
14213
-
14214
- export namespace AsciiType {
14215
- export const $gtype: GObject.GType<AsciiType>;
14216
- }
14217
-
14218
13936
  enum AsciiType {
14219
13937
  ALNUM,
14220
13938
  ALPHA,
@@ -14228,19 +13946,11 @@ export namespace GLib {
14228
13946
  UPPER,
14229
13947
  XDIGIT,
14230
13948
  }
14231
- /**
14232
- * Flags to pass to g_file_set_contents_full() to affect its safety and
14233
- * performance.
14234
- */
14235
13949
 
14236
13950
  /**
14237
13951
  * Flags to pass to g_file_set_contents_full() to affect its safety and
14238
13952
  * performance.
14239
13953
  */
14240
- export namespace FileSetContentsFlags {
14241
- export const $gtype: GObject.GType<FileSetContentsFlags>;
14242
- }
14243
-
14244
13954
  enum FileSetContentsFlags {
14245
13955
  /**
14246
13956
  * No guarantees about file consistency or durability.
@@ -14271,17 +13981,10 @@ export namespace GLib {
14271
13981
  */
14272
13982
  ONLY_EXISTING,
14273
13983
  }
14274
- /**
14275
- * A test to perform on a file using g_file_test().
14276
- */
14277
13984
 
14278
13985
  /**
14279
13986
  * A test to perform on a file using g_file_test().
14280
13987
  */
14281
- export namespace FileTest {
14282
- export const $gtype: GObject.GType<FileTest>;
14283
- }
14284
-
14285
13988
  enum FileTest {
14286
13989
  /**
14287
13990
  * %TRUE if the file is a regular file
@@ -14307,17 +14010,10 @@ export namespace GLib {
14307
14010
  */
14308
14011
  EXISTS,
14309
14012
  }
14310
- /**
14311
- * Flags to modify the format of the string returned by g_format_size_full().
14312
- */
14313
14013
 
14314
14014
  /**
14315
14015
  * Flags to modify the format of the string returned by g_format_size_full().
14316
14016
  */
14317
- export namespace FormatSizeFlags {
14318
- export const $gtype: GObject.GType<FormatSizeFlags>;
14319
- }
14320
-
14321
14017
  enum FormatSizeFlags {
14322
14018
  /**
14323
14019
  * behave the same as g_format_size()
@@ -14353,17 +14049,10 @@ export namespace GLib {
14353
14049
  */
14354
14050
  ONLY_UNIT,
14355
14051
  }
14356
- /**
14357
- * Flags used internally in the #GHook implementation.
14358
- */
14359
14052
 
14360
14053
  /**
14361
14054
  * Flags used internally in the #GHook implementation.
14362
14055
  */
14363
- export namespace HookFlagMask {
14364
- export const $gtype: GObject.GType<HookFlagMask>;
14365
- }
14366
-
14367
14056
  enum HookFlagMask {
14368
14057
  /**
14369
14058
  * set if the hook has not been destroyed
@@ -14379,19 +14068,15 @@ export namespace GLib {
14379
14068
  */
14380
14069
  MASK,
14381
14070
  }
14382
- /**
14383
- * A bitwise combination representing a condition to watch for on an
14384
- * event source.
14385
- */
14386
14071
 
14387
- /**
14388
- * A bitwise combination representing a condition to watch for on an
14389
- * event source.
14390
- */
14391
14072
  export namespace IOCondition {
14392
14073
  export const $gtype: GObject.GType<IOCondition>;
14393
14074
  }
14394
14075
 
14076
+ /**
14077
+ * A bitwise combination representing a condition to watch for on an
14078
+ * event source.
14079
+ */
14395
14080
  enum IOCondition {
14396
14081
  /**
14397
14082
  * There is data to read.
@@ -14419,21 +14104,12 @@ export namespace GLib {
14419
14104
  */
14420
14105
  NVAL,
14421
14106
  }
14422
- /**
14423
- * Specifies properties of a #GIOChannel. Some of the flags can only be
14424
- * read with g_io_channel_get_flags(), but not changed with
14425
- * g_io_channel_set_flags().
14426
- */
14427
14107
 
14428
14108
  /**
14429
14109
  * Specifies properties of a #GIOChannel. Some of the flags can only be
14430
14110
  * read with g_io_channel_get_flags(), but not changed with
14431
14111
  * g_io_channel_set_flags().
14432
14112
  */
14433
- export namespace IOFlags {
14434
- export const $gtype: GObject.GType<IOFlags>;
14435
- }
14436
-
14437
14113
  enum IOFlags {
14438
14114
  /**
14439
14115
  * no special flags set. Since: 2.74
@@ -14487,17 +14163,10 @@ export namespace GLib {
14487
14163
  */
14488
14164
  SET_MASK,
14489
14165
  }
14490
- /**
14491
- * Flags which influence the parsing.
14492
- */
14493
14166
 
14494
14167
  /**
14495
14168
  * Flags which influence the parsing.
14496
14169
  */
14497
- export namespace KeyFileFlags {
14498
- export const $gtype: GObject.GType<KeyFileFlags>;
14499
- }
14500
-
14501
14170
  enum KeyFileFlags {
14502
14171
  /**
14503
14172
  * No flags, default behaviour
@@ -14518,12 +14187,6 @@ export namespace GLib {
14518
14187
  */
14519
14188
  KEEP_TRANSLATIONS,
14520
14189
  }
14521
- /**
14522
- * Flags specifying the level of log messages.
14523
- *
14524
- * It is possible to change how GLib treats messages of the various
14525
- * levels using [func`GLib`.log_set_handler] and [func`GLib`.log_set_fatal_mask].
14526
- */
14527
14190
 
14528
14191
  /**
14529
14192
  * Flags specifying the level of log messages.
@@ -14531,10 +14194,6 @@ export namespace GLib {
14531
14194
  * It is possible to change how GLib treats messages of the various
14532
14195
  * levels using [func`GLib`.log_set_handler] and [func`GLib`.log_set_fatal_mask].
14533
14196
  */
14534
- export namespace LogLevelFlags {
14535
- export const $gtype: GObject.GType<LogLevelFlags>;
14536
- }
14537
-
14538
14197
  enum LogLevelFlags {
14539
14198
  /**
14540
14199
  * internal flag
@@ -14576,19 +14235,11 @@ export namespace GLib {
14576
14235
  */
14577
14236
  LEVEL_MASK,
14578
14237
  }
14579
- /**
14580
- * Flags to pass to [ctor`GLib`.MainContext.new_with_flags] which affect the
14581
- * behaviour of a [struct`GLib`.MainContext].
14582
- */
14583
14238
 
14584
14239
  /**
14585
14240
  * Flags to pass to [ctor`GLib`.MainContext.new_with_flags] which affect the
14586
14241
  * behaviour of a [struct`GLib`.MainContext].
14587
14242
  */
14588
- export namespace MainContextFlags {
14589
- export const $gtype: GObject.GType<MainContextFlags>;
14590
- }
14591
-
14592
14243
  enum MainContextFlags {
14593
14244
  /**
14594
14245
  * Default behaviour.
@@ -14602,14 +14253,6 @@ export namespace GLib {
14602
14253
  */
14603
14254
  OWNERLESS_POLLING,
14604
14255
  }
14605
- /**
14606
- * A mixed enumerated type and flags field. You must specify one type
14607
- * (string, strdup, boolean, tristate). Additionally, you may optionally
14608
- * bitwise OR the type with the flag %G_MARKUP_COLLECT_OPTIONAL.
14609
- *
14610
- * It is likely that this enum will be extended in the future to
14611
- * support other types.
14612
- */
14613
14256
 
14614
14257
  /**
14615
14258
  * A mixed enumerated type and flags field. You must specify one type
@@ -14619,10 +14262,6 @@ export namespace GLib {
14619
14262
  * It is likely that this enum will be extended in the future to
14620
14263
  * support other types.
14621
14264
  */
14622
- export namespace MarkupCollectType {
14623
- export const $gtype: GObject.GType<MarkupCollectType>;
14624
- }
14625
-
14626
14265
  enum MarkupCollectType {
14627
14266
  /**
14628
14267
  * used to terminate the list of attributes
@@ -14664,17 +14303,10 @@ export namespace GLib {
14664
14303
  */
14665
14304
  OPTIONAL,
14666
14305
  }
14667
- /**
14668
- * Flags that affect the behaviour of the parser.
14669
- */
14670
14306
 
14671
14307
  /**
14672
14308
  * Flags that affect the behaviour of the parser.
14673
14309
  */
14674
- export namespace MarkupParseFlags {
14675
- export const $gtype: GObject.GType<MarkupParseFlags>;
14676
- }
14677
-
14678
14310
  enum MarkupParseFlags {
14679
14311
  /**
14680
14312
  * No special behaviour. Since: 2.74
@@ -14708,17 +14340,10 @@ export namespace GLib {
14708
14340
  */
14709
14341
  IGNORE_QUALIFIED,
14710
14342
  }
14711
- /**
14712
- * Flags which modify individual options.
14713
- */
14714
14343
 
14715
14344
  /**
14716
14345
  * Flags which modify individual options.
14717
14346
  */
14718
- export namespace OptionFlags {
14719
- export const $gtype: GObject.GType<OptionFlags>;
14720
- }
14721
-
14722
14347
  enum OptionFlags {
14723
14348
  /**
14724
14349
  * No flags.
@@ -14776,17 +14401,10 @@ export namespace GLib {
14776
14401
  */
14777
14402
  DEPRECATED,
14778
14403
  }
14779
- /**
14780
- * Flags specifying compile-time options.
14781
- */
14782
14404
 
14783
14405
  /**
14784
14406
  * Flags specifying compile-time options.
14785
14407
  */
14786
- export namespace RegexCompileFlags {
14787
- export const $gtype: GObject.GType<RegexCompileFlags>;
14788
- }
14789
-
14790
14408
  enum RegexCompileFlags {
14791
14409
  /**
14792
14410
  * No special options set. Since: 2.74
@@ -14921,17 +14539,10 @@ export namespace GLib {
14921
14539
  */
14922
14540
  JAVASCRIPT_COMPAT,
14923
14541
  }
14924
- /**
14925
- * Flags specifying match-time options.
14926
- */
14927
14542
 
14928
14543
  /**
14929
14544
  * Flags specifying match-time options.
14930
14545
  */
14931
- export namespace RegexMatchFlags {
14932
- export const $gtype: GObject.GType<RegexMatchFlags>;
14933
- }
14934
-
14935
14546
  enum RegexMatchFlags {
14936
14547
  /**
14937
14548
  * No special options set. Since: 2.74
@@ -15042,17 +14653,10 @@ export namespace GLib {
15042
14653
  */
15043
14654
  NOTEMPTY_ATSTART,
15044
14655
  }
15045
- /**
15046
- * Flags passed to g_spawn_sync(), g_spawn_async() and g_spawn_async_with_pipes().
15047
- */
15048
14656
 
15049
14657
  /**
15050
14658
  * Flags passed to g_spawn_sync(), g_spawn_async() and g_spawn_async_with_pipes().
15051
14659
  */
15052
- export namespace SpawnFlags {
15053
- export const $gtype: GObject.GType<SpawnFlags>;
15054
- }
15055
-
15056
14660
  enum SpawnFlags {
15057
14661
  /**
15058
14662
  * no flags, default behaviour
@@ -15120,13 +14724,6 @@ export namespace GLib {
15120
14724
  */
15121
14725
  STDIN_FROM_DEV_NULL,
15122
14726
  }
15123
- /**
15124
- * Flags to pass to [func`GLib`.test_trap_subprocess] to control input and output.
15125
- *
15126
- * Note that in contrast with [func`GLib`.test_trap_fork], the default
15127
- * behavior of [func`GLib`.test_trap_subprocess] is to not show stdout
15128
- * and stderr.
15129
- */
15130
14727
 
15131
14728
  /**
15132
14729
  * Flags to pass to [func`GLib`.test_trap_subprocess] to control input and output.
@@ -15135,10 +14732,6 @@ export namespace GLib {
15135
14732
  * behavior of [func`GLib`.test_trap_subprocess] is to not show stdout
15136
14733
  * and stderr.
15137
14734
  */
15138
- export namespace TestSubprocessFlags {
15139
- export const $gtype: GObject.GType<TestSubprocessFlags>;
15140
- }
15141
-
15142
14735
  enum TestSubprocessFlags {
15143
14736
  /**
15144
14737
  * Default behaviour. Since: 2.74
@@ -15165,21 +14758,12 @@ export namespace GLib {
15165
14758
  */
15166
14759
  INHERIT_STDERR,
15167
14760
  }
15168
- /**
15169
- * Flags to pass to [func`GLib`.test_trap_fork] to control input and output.
15170
- *
15171
- * Test traps are guards around forked tests. These flags determine what traps to set.
15172
- */
15173
14761
 
15174
14762
  /**
15175
14763
  * Flags to pass to [func`GLib`.test_trap_fork] to control input and output.
15176
14764
  *
15177
14765
  * Test traps are guards around forked tests. These flags determine what traps to set.
15178
14766
  */
15179
- export namespace TestTrapFlags {
15180
- export const $gtype: GObject.GType<TestTrapFlags>;
15181
- }
15182
-
15183
14767
  enum TestTrapFlags {
15184
14768
  /**
15185
14769
  * Default behaviour. Since: 2.74
@@ -15206,19 +14790,11 @@ export namespace GLib {
15206
14790
  */
15207
14791
  INHERIT_STDIN,
15208
14792
  }
15209
- /**
15210
- * Specifies which nodes are visited during several of the tree
15211
- * functions, including g_node_traverse() and g_node_find().
15212
- */
15213
14793
 
15214
14794
  /**
15215
14795
  * Specifies which nodes are visited during several of the tree
15216
14796
  * functions, including g_node_traverse() and g_node_find().
15217
14797
  */
15218
- export namespace TraverseFlags {
15219
- export const $gtype: GObject.GType<TraverseFlags>;
15220
- }
15221
-
15222
14798
  enum TraverseFlags {
15223
14799
  /**
15224
14800
  * only leaf nodes should be visited. This name has
@@ -15249,14 +14825,6 @@ export namespace GLib {
15249
14825
  */
15250
14826
  NON_LEAFS,
15251
14827
  }
15252
- /**
15253
- * Flags that describe a URI.
15254
- *
15255
- * When parsing a URI, if you need to choose different flags based on
15256
- * the type of URI, you can use g_uri_peek_scheme() on the URI string
15257
- * to check the scheme first, and use that to decide what flags to
15258
- * parse it with.
15259
- */
15260
14828
 
15261
14829
  /**
15262
14830
  * Flags that describe a URI.
@@ -15266,10 +14834,6 @@ export namespace GLib {
15266
14834
  * to check the scheme first, and use that to decide what flags to
15267
14835
  * parse it with.
15268
14836
  */
15269
- export namespace UriFlags {
15270
- export const $gtype: GObject.GType<UriFlags>;
15271
- }
15272
-
15273
14837
  enum UriFlags {
15274
14838
  /**
15275
14839
  * No flags set.
@@ -15331,12 +14895,6 @@ export namespace GLib {
15331
14895
  */
15332
14896
  SCHEME_NORMALIZE,
15333
14897
  }
15334
- /**
15335
- * Flags describing what parts of the URI to hide in
15336
- * g_uri_to_string_partial(). Note that %G_URI_HIDE_PASSWORD and
15337
- * %G_URI_HIDE_AUTH_PARAMS will only work if the #GUri was parsed with
15338
- * the corresponding flags.
15339
- */
15340
14898
 
15341
14899
  /**
15342
14900
  * Flags describing what parts of the URI to hide in
@@ -15344,10 +14902,6 @@ export namespace GLib {
15344
14902
  * %G_URI_HIDE_AUTH_PARAMS will only work if the #GUri was parsed with
15345
14903
  * the corresponding flags.
15346
14904
  */
15347
- export namespace UriHideFlags {
15348
- export const $gtype: GObject.GType<UriHideFlags>;
15349
- }
15350
-
15351
14905
  enum UriHideFlags {
15352
14906
  /**
15353
14907
  * No flags set.
@@ -15374,19 +14928,11 @@ export namespace GLib {
15374
14928
  */
15375
14929
  FRAGMENT,
15376
14930
  }
15377
- /**
15378
- * Flags modifying the way parameters are handled by g_uri_parse_params() and
15379
- * #GUriParamsIter.
15380
- */
15381
14931
 
15382
14932
  /**
15383
14933
  * Flags modifying the way parameters are handled by g_uri_parse_params() and
15384
14934
  * #GUriParamsIter.
15385
14935
  */
15386
- export namespace UriParamsFlags {
15387
- export const $gtype: GObject.GType<UriParamsFlags>;
15388
- }
15389
-
15390
14936
  enum UriParamsFlags {
15391
14937
  /**
15392
14938
  * No flags set.
@@ -15406,6 +14952,7 @@ export namespace GLib {
15406
14952
  */
15407
14953
  PARSE_RELAXED,
15408
14954
  }
14955
+
15409
14956
  abstract class Allocator {
15410
14957
  static $gtype: GObject.GType<Allocator>;
15411
14958
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/glib-2.0",
3
- "version": "2.86.4-4.0.0-beta.39",
3
+ "version": "2.86.4-4.0.0-beta.40",
4
4
  "description": "GJS TypeScript type definitions for GLib-2.0, generated from library version 2.86.4",
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.39",
35
- "@girs/gobject-2.0": "2.86.4-4.0.0-beta.39" },
34
+ "@girs/gjs": "4.0.0-beta.40",
35
+ "@girs/gobject-2.0": "2.86.4-4.0.0-beta.40" },
36
36
  "devDependencies": {
37
37
  "typescript": "*"
38
38
  },