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

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 +192 -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.9.
9
9
 
10
10
 
11
11
  ## Install
package/glib-2.0.d.ts CHANGED
@@ -64,6 +64,10 @@ export namespace GLib {
64
64
  _init(...args: any[]): void;
65
65
  }
66
66
 
67
+ export namespace ChecksumType {
68
+ export const $gtype: GObject.GType<ChecksumType>;
69
+ }
70
+
67
71
  /**
68
72
  * The hashing algorithm to be used by #GChecksum when performing the
69
73
  * digest of some data.
@@ -145,6 +149,10 @@ export namespace GLib {
145
149
  _init(...args: any[]): void;
146
150
  }
147
151
 
152
+ export namespace DateDMY {
153
+ export const $gtype: GObject.GType<DateDMY>;
154
+ }
155
+
148
156
  /**
149
157
  * This enumeration isn't used in the API, but may be useful if you need
150
158
  * to mark a number as a day, month, or year.
@@ -163,6 +171,10 @@ export namespace GLib {
163
171
  */
164
172
  YEAR,
165
173
  }
174
+ export namespace DateMonth {
175
+ export const $gtype: GObject.GType<DateMonth>;
176
+ }
177
+
166
178
  /**
167
179
  * Enumeration representing a month; values are %G_DATE_JANUARY,
168
180
  * %G_DATE_FEBRUARY, etc. %G_DATE_BAD_MONTH is the invalid value.
@@ -221,6 +233,10 @@ export namespace GLib {
221
233
  */
222
234
  DECEMBER,
223
235
  }
236
+ export namespace DateWeekday {
237
+ export const $gtype: GObject.GType<DateWeekday>;
238
+ }
239
+
224
240
  /**
225
241
  * Enumeration representing a day of the week; %G_DATE_MONDAY,
226
242
  * %G_DATE_TUESDAY, etc. %G_DATE_BAD_WEEKDAY is an invalid weekday.
@@ -259,6 +275,10 @@ export namespace GLib {
259
275
  */
260
276
  SUNDAY,
261
277
  }
278
+ export namespace ErrorType {
279
+ export const $gtype: GObject.GType<ErrorType>;
280
+ }
281
+
262
282
  /**
263
283
  * The possible errors, used in the `v_error` field
264
284
  * of #GTokenValue, when the token is a %G_TOKEN_ERROR.
@@ -516,6 +536,10 @@ export namespace GLib {
516
536
  _init(...args: any[]): void;
517
537
  }
518
538
 
539
+ export namespace IOError {
540
+ export const $gtype: GObject.GType<IOError>;
541
+ }
542
+
519
543
  /**
520
544
  * #GIOError is only used by the deprecated functions
521
545
  * g_io_channel_read(), g_io_channel_write(), and g_io_channel_seek().
@@ -538,6 +562,10 @@ export namespace GLib {
538
562
  */
539
563
  UNKNOWN,
540
564
  }
565
+ export namespace IOStatus {
566
+ export const $gtype: GObject.GType<IOStatus>;
567
+ }
568
+
541
569
  /**
542
570
  * Statuses returned by most of the #GIOFuncs functions.
543
571
  */
@@ -599,6 +627,10 @@ export namespace GLib {
599
627
  _init(...args: any[]): void;
600
628
  }
601
629
 
630
+ export namespace LogWriterOutput {
631
+ export const $gtype: GObject.GType<LogWriterOutput>;
632
+ }
633
+
602
634
  /**
603
635
  * Return values from #GLogWriterFuncs to indicate whether the given log entry
604
636
  * was successfully handled by the writer, or whether there was an error in
@@ -664,6 +696,10 @@ export namespace GLib {
664
696
  _init(...args: any[]): void;
665
697
  }
666
698
 
699
+ export namespace NormalizeMode {
700
+ export const $gtype: GObject.GType<NormalizeMode>;
701
+ }
702
+
667
703
  /**
668
704
  * Defines how a Unicode string is transformed in a canonical
669
705
  * form, standardizing such issues as whether a character with
@@ -735,6 +771,10 @@ export namespace GLib {
735
771
  _init(...args: any[]): void;
736
772
  }
737
773
 
774
+ export namespace OnceStatus {
775
+ export const $gtype: GObject.GType<OnceStatus>;
776
+ }
777
+
738
778
  /**
739
779
  * The possible statuses of a one-time initialization function
740
780
  * controlled by a #GOnce struct.
@@ -753,6 +793,10 @@ export namespace GLib {
753
793
  */
754
794
  READY,
755
795
  }
796
+ export namespace OptionArg {
797
+ export const $gtype: GObject.GType<OptionArg>;
798
+ }
799
+
756
800
  /**
757
801
  * The #GOptionArg enum values determine which type of extra argument the
758
802
  * options expect to find. If an option expects an extra argument, it can
@@ -1121,6 +1165,10 @@ export namespace GLib {
1121
1165
  _init(...args: any[]): void;
1122
1166
  }
1123
1167
 
1168
+ export namespace SeekType {
1169
+ export const $gtype: GObject.GType<SeekType>;
1170
+ }
1171
+
1124
1172
  /**
1125
1173
  * An enumeration specifying the base position for a
1126
1174
  * g_io_channel_seek_position() operation.
@@ -1166,6 +1214,10 @@ export namespace GLib {
1166
1214
  _init(...args: any[]): void;
1167
1215
  }
1168
1216
 
1217
+ export namespace SliceConfig {
1218
+ export const $gtype: GObject.GType<SliceConfig>;
1219
+ }
1220
+
1169
1221
  enum SliceConfig {
1170
1222
  ALWAYS_MALLOC,
1171
1223
  BYPASS_MAGAZINES,
@@ -1274,6 +1326,10 @@ export namespace GLib {
1274
1326
  _init(...args: any[]): void;
1275
1327
  }
1276
1328
 
1329
+ export namespace TestFileType {
1330
+ export const $gtype: GObject.GType<TestFileType>;
1331
+ }
1332
+
1277
1333
  /**
1278
1334
  * The type of file to return the filename for, when used with
1279
1335
  * g_test_build_filename().
@@ -1302,6 +1358,10 @@ export namespace GLib {
1302
1358
  */
1303
1359
  BUILT,
1304
1360
  }
1361
+ export namespace TestLogType {
1362
+ export const $gtype: GObject.GType<TestLogType>;
1363
+ }
1364
+
1305
1365
  enum TestLogType {
1306
1366
  NONE,
1307
1367
  ERROR,
@@ -1316,6 +1376,10 @@ export namespace GLib {
1316
1376
  START_SUITE,
1317
1377
  STOP_SUITE,
1318
1378
  }
1379
+ export namespace TestResult {
1380
+ export const $gtype: GObject.GType<TestResult>;
1381
+ }
1382
+
1319
1383
  enum TestResult {
1320
1384
  SUCCESS,
1321
1385
  SKIPPED,
@@ -1342,6 +1406,10 @@ export namespace GLib {
1342
1406
  _init(...args: any[]): void;
1343
1407
  }
1344
1408
 
1409
+ export namespace ThreadPriority {
1410
+ export const $gtype: GObject.GType<ThreadPriority>;
1411
+ }
1412
+
1345
1413
  /**
1346
1414
  * Thread priorities.
1347
1415
  */
@@ -1363,6 +1431,10 @@ export namespace GLib {
1363
1431
  */
1364
1432
  URGENT,
1365
1433
  }
1434
+ export namespace TimeType {
1435
+ export const $gtype: GObject.GType<TimeType>;
1436
+ }
1437
+
1366
1438
  /**
1367
1439
  * Disambiguates a given time in two ways.
1368
1440
  *
@@ -1387,6 +1459,10 @@ export namespace GLib {
1387
1459
  */
1388
1460
  UNIVERSAL,
1389
1461
  }
1462
+ export namespace TokenType {
1463
+ export const $gtype: GObject.GType<TokenType>;
1464
+ }
1465
+
1390
1466
  /**
1391
1467
  * The possible types of token returned from each
1392
1468
  * g_scanner_get_next_token() call.
@@ -1485,6 +1561,10 @@ export namespace GLib {
1485
1561
  */
1486
1562
  COMMENT_MULTI,
1487
1563
  }
1564
+ export namespace TraverseType {
1565
+ export const $gtype: GObject.GType<TraverseType>;
1566
+ }
1567
+
1488
1568
  /**
1489
1569
  * Specifies the type of traversal performed by g_tree_traverse(),
1490
1570
  * g_node_traverse() and g_node_find(). The different orders are
@@ -1524,6 +1604,10 @@ export namespace GLib {
1524
1604
  */
1525
1605
  LEVEL_ORDER,
1526
1606
  }
1607
+ export namespace UnicodeBreakType {
1608
+ export const $gtype: GObject.GType<UnicodeBreakType>;
1609
+ }
1610
+
1527
1611
  /**
1528
1612
  * These are the possible line break classifications.
1529
1613
  *
@@ -1722,6 +1806,10 @@ export namespace GLib {
1722
1806
  VIRAMA_FINAL,
1723
1807
  VIRAMA,
1724
1808
  }
1809
+ export namespace UnicodeScript {
1810
+ export const $gtype: GObject.GType<UnicodeScript>;
1811
+ }
1812
+
1725
1813
  /**
1726
1814
  * The #GUnicodeScript enumeration identifies different writing
1727
1815
  * systems. The values correspond to the names as defined in the
@@ -2399,6 +2487,10 @@ export namespace GLib {
2399
2487
  */
2400
2488
  NAG_MUNDARI,
2401
2489
  }
2490
+ export namespace UnicodeType {
2491
+ export const $gtype: GObject.GType<UnicodeType>;
2492
+ }
2493
+
2402
2494
  /**
2403
2495
  * These are the possible character classifications from the
2404
2496
  * Unicode specification.
@@ -2526,6 +2618,10 @@ export namespace GLib {
2526
2618
  */
2527
2619
  SPACE_SEPARATOR,
2528
2620
  }
2621
+ export namespace UnixPipeEnd {
2622
+ export const $gtype: GObject.GType<UnixPipeEnd>;
2623
+ }
2624
+
2529
2625
  /**
2530
2626
  * Mnemonic constants for the ends of a Unix pipe.
2531
2627
  */
@@ -2595,6 +2691,10 @@ export namespace GLib {
2595
2691
  _init(...args: any[]): void;
2596
2692
  }
2597
2693
 
2694
+ export namespace UserDirectory {
2695
+ export const $gtype: GObject.GType<UserDirectory>;
2696
+ }
2697
+
2598
2698
  /**
2599
2699
  * These are logical ids for special directories which are defined
2600
2700
  * depending on the platform used. You should use g_get_user_special_dir()
@@ -2642,6 +2742,10 @@ export namespace GLib {
2642
2742
  */
2643
2743
  N_DIRECTORIES,
2644
2744
  }
2745
+ export namespace VariantClass {
2746
+ export const $gtype: GObject.GType<VariantClass>;
2747
+ }
2748
+
2645
2749
  /**
2646
2750
  * The range of possible top-level types of #GVariant instances.
2647
2751
  */
@@ -12368,6 +12472,10 @@ export namespace GLib {
12368
12472
  interface VoidFunc {
12369
12473
  (): void;
12370
12474
  }
12475
+ export namespace AsciiType {
12476
+ export const $gtype: GObject.GType<AsciiType>;
12477
+ }
12478
+
12371
12479
  enum AsciiType {
12372
12480
  ALNUM,
12373
12481
  ALPHA,
@@ -12381,6 +12489,10 @@ export namespace GLib {
12381
12489
  UPPER,
12382
12490
  XDIGIT,
12383
12491
  }
12492
+ export namespace FileSetContentsFlags {
12493
+ export const $gtype: GObject.GType<FileSetContentsFlags>;
12494
+ }
12495
+
12384
12496
  /**
12385
12497
  * Flags to pass to g_file_set_contents_full() to affect its safety and
12386
12498
  * performance.
@@ -12415,6 +12527,10 @@ export namespace GLib {
12415
12527
  */
12416
12528
  ONLY_EXISTING,
12417
12529
  }
12530
+ export namespace FileTest {
12531
+ export const $gtype: GObject.GType<FileTest>;
12532
+ }
12533
+
12418
12534
  /**
12419
12535
  * A test to perform on a file using g_file_test().
12420
12536
  */
@@ -12443,6 +12559,10 @@ export namespace GLib {
12443
12559
  */
12444
12560
  EXISTS,
12445
12561
  }
12562
+ export namespace FormatSizeFlags {
12563
+ export const $gtype: GObject.GType<FormatSizeFlags>;
12564
+ }
12565
+
12446
12566
  /**
12447
12567
  * Flags to modify the format of the string returned by g_format_size_full().
12448
12568
  */
@@ -12481,6 +12601,10 @@ export namespace GLib {
12481
12601
  */
12482
12602
  ONLY_UNIT,
12483
12603
  }
12604
+ export namespace HookFlagMask {
12605
+ export const $gtype: GObject.GType<HookFlagMask>;
12606
+ }
12607
+
12484
12608
  /**
12485
12609
  * Flags used internally in the #GHook implementation.
12486
12610
  */
@@ -12499,6 +12623,10 @@ export namespace GLib {
12499
12623
  */
12500
12624
  MASK,
12501
12625
  }
12626
+ export namespace IOCondition {
12627
+ export const $gtype: GObject.GType<IOCondition>;
12628
+ }
12629
+
12502
12630
  /**
12503
12631
  * A bitwise combination representing a condition to watch for on an
12504
12632
  * event source.
@@ -12530,6 +12658,10 @@ export namespace GLib {
12530
12658
  */
12531
12659
  NVAL,
12532
12660
  }
12661
+ export namespace IOFlags {
12662
+ export const $gtype: GObject.GType<IOFlags>;
12663
+ }
12664
+
12533
12665
  /**
12534
12666
  * Specifies properties of a #GIOChannel. Some of the flags can only be
12535
12667
  * read with g_io_channel_get_flags(), but not changed with
@@ -12588,6 +12720,10 @@ export namespace GLib {
12588
12720
  */
12589
12721
  SET_MASK,
12590
12722
  }
12723
+ export namespace KeyFileFlags {
12724
+ export const $gtype: GObject.GType<KeyFileFlags>;
12725
+ }
12726
+
12591
12727
  /**
12592
12728
  * Flags which influence the parsing.
12593
12729
  */
@@ -12611,6 +12747,10 @@ export namespace GLib {
12611
12747
  */
12612
12748
  KEEP_TRANSLATIONS,
12613
12749
  }
12750
+ export namespace LogLevelFlags {
12751
+ export const $gtype: GObject.GType<LogLevelFlags>;
12752
+ }
12753
+
12614
12754
  /**
12615
12755
  * Flags specifying the level of log messages.
12616
12756
  *
@@ -12658,6 +12798,10 @@ export namespace GLib {
12658
12798
  */
12659
12799
  LEVEL_MASK,
12660
12800
  }
12801
+ export namespace MainContextFlags {
12802
+ export const $gtype: GObject.GType<MainContextFlags>;
12803
+ }
12804
+
12661
12805
  /**
12662
12806
  * Flags to pass to g_main_context_new_with_flags() which affect the behaviour
12663
12807
  * of a #GMainContext.
@@ -12675,6 +12819,10 @@ export namespace GLib {
12675
12819
  */
12676
12820
  OWNERLESS_POLLING,
12677
12821
  }
12822
+ export namespace MarkupCollectType {
12823
+ export const $gtype: GObject.GType<MarkupCollectType>;
12824
+ }
12825
+
12678
12826
  /**
12679
12827
  * A mixed enumerated type and flags field. You must specify one type
12680
12828
  * (string, strdup, boolean, tristate). Additionally, you may optionally
@@ -12724,6 +12872,10 @@ export namespace GLib {
12724
12872
  */
12725
12873
  OPTIONAL,
12726
12874
  }
12875
+ export namespace MarkupParseFlags {
12876
+ export const $gtype: GObject.GType<MarkupParseFlags>;
12877
+ }
12878
+
12727
12879
  /**
12728
12880
  * Flags that affect the behaviour of the parser.
12729
12881
  */
@@ -12760,6 +12912,10 @@ export namespace GLib {
12760
12912
  */
12761
12913
  IGNORE_QUALIFIED,
12762
12914
  }
12915
+ export namespace OptionFlags {
12916
+ export const $gtype: GObject.GType<OptionFlags>;
12917
+ }
12918
+
12763
12919
  /**
12764
12920
  * Flags which modify individual options.
12765
12921
  */
@@ -12812,6 +12968,10 @@ export namespace GLib {
12812
12968
  */
12813
12969
  NOALIAS,
12814
12970
  }
12971
+ export namespace RegexCompileFlags {
12972
+ export const $gtype: GObject.GType<RegexCompileFlags>;
12973
+ }
12974
+
12815
12975
  /**
12816
12976
  * Flags specifying compile-time options.
12817
12977
  */
@@ -12949,6 +13109,10 @@ export namespace GLib {
12949
13109
  */
12950
13110
  JAVASCRIPT_COMPAT,
12951
13111
  }
13112
+ export namespace RegexMatchFlags {
13113
+ export const $gtype: GObject.GType<RegexMatchFlags>;
13114
+ }
13115
+
12952
13116
  /**
12953
13117
  * Flags specifying match-time options.
12954
13118
  */
@@ -13062,6 +13226,10 @@ export namespace GLib {
13062
13226
  */
13063
13227
  NOTEMPTY_ATSTART,
13064
13228
  }
13229
+ export namespace SpawnFlags {
13230
+ export const $gtype: GObject.GType<SpawnFlags>;
13231
+ }
13232
+
13065
13233
  /**
13066
13234
  * Flags passed to g_spawn_sync(), g_spawn_async() and g_spawn_async_with_pipes().
13067
13235
  */
@@ -13132,6 +13300,10 @@ export namespace GLib {
13132
13300
  */
13133
13301
  STDIN_FROM_DEV_NULL,
13134
13302
  }
13303
+ export namespace TestSubprocessFlags {
13304
+ export const $gtype: GObject.GType<TestSubprocessFlags>;
13305
+ }
13306
+
13135
13307
  /**
13136
13308
  * Flags to pass to g_test_trap_subprocess() to control input and output.
13137
13309
  *
@@ -13164,6 +13336,10 @@ export namespace GLib {
13164
13336
  */
13165
13337
  INHERIT_STDERR,
13166
13338
  }
13339
+ export namespace TestTrapFlags {
13340
+ export const $gtype: GObject.GType<TestTrapFlags>;
13341
+ }
13342
+
13167
13343
  /**
13168
13344
  * Test traps are guards around forked tests.
13169
13345
  * These flags determine what traps to set.
@@ -13194,6 +13370,10 @@ export namespace GLib {
13194
13370
  */
13195
13371
  INHERIT_STDIN,
13196
13372
  }
13373
+ export namespace TraverseFlags {
13374
+ export const $gtype: GObject.GType<TraverseFlags>;
13375
+ }
13376
+
13197
13377
  /**
13198
13378
  * Specifies which nodes are visited during several of the tree
13199
13379
  * functions, including g_node_traverse() and g_node_find().
@@ -13228,6 +13408,10 @@ export namespace GLib {
13228
13408
  */
13229
13409
  NON_LEAFS,
13230
13410
  }
13411
+ export namespace UriFlags {
13412
+ export const $gtype: GObject.GType<UriFlags>;
13413
+ }
13414
+
13231
13415
  /**
13232
13416
  * Flags that describe a URI.
13233
13417
  *
@@ -13297,6 +13481,10 @@ export namespace GLib {
13297
13481
  */
13298
13482
  SCHEME_NORMALIZE,
13299
13483
  }
13484
+ export namespace UriHideFlags {
13485
+ export const $gtype: GObject.GType<UriHideFlags>;
13486
+ }
13487
+
13300
13488
  /**
13301
13489
  * Flags describing what parts of the URI to hide in
13302
13490
  * g_uri_to_string_partial(). Note that %G_URI_HIDE_PASSWORD and
@@ -13329,6 +13517,10 @@ export namespace GLib {
13329
13517
  */
13330
13518
  FRAGMENT,
13331
13519
  }
13520
+ export namespace UriParamsFlags {
13521
+ export const $gtype: GObject.GType<UriParamsFlags>;
13522
+ }
13523
+
13332
13524
  /**
13333
13525
  * Flags modifying the way parameters are handled by g_uri_parse_params() and
13334
13526
  * #GUriParamsIter.
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.9",
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.9",
35
+ "@girs/gobject-2.0": "^2.80.2-4.0.0-beta.9"
36
36
  },
37
37
  "devDependencies": {
38
38
  "typescript": "*"