@girs/gjs 3.0.0-beta.12 → 3.0.0-beta.14

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/gjs.d.ts CHANGED
@@ -2,11 +2,14 @@
2
2
  * Type Definitions for Gjs (https://gjs.guide/)
3
3
  *
4
4
  * These type definitions are automatically generated, do not edit them by hand.
5
- * If you found a bug fix it in ts-for-gir itself or create a bug report on https://github.com/gjsify/ts-for-gjs
5
+ * If you found a bug fix it in ts-for-gir itself or create a bug report on https://github.com/gjsify/ts-for-gir
6
6
  */
7
7
 
8
8
  import type GObject from '@girs/gobject-2.0';
9
9
  import type GLib from '@girs/glib-2.0';
10
+ import gettext from './gettext.js';
11
+ import system from './system.js';
12
+ import cairo from './cairo.js';
10
13
 
11
14
  import type Accounts10 from "@girs/accounts-1.0";
12
15
  import type AccountsService10 from "@girs/accountsservice-1.0";
@@ -291,6 +294,7 @@ import type GLib from '@girs/glib-2.0';
291
294
  import type PangoXft10 from "@girs/pangoxft-1.0";
292
295
  import type Parquet10 from "@girs/parquet-1.0";
293
296
  import type Peas10 from "@girs/peas-1.0";
297
+ import type Peas2 from "@girs/peas-2";
294
298
  import type PeasGtk10 from "@girs/peasgtk-1.0";
295
299
  import type Plasma10 from "@girs/plasma-1.0";
296
300
  import type Pnl10 from "@girs/pnl-1.0";
@@ -368,6 +372,7 @@ import type GLib from '@girs/glib-2.0';
368
372
  import type WebKit2WebExtension41 from "@girs/webkit2webextension-4.1";
369
373
  import type WebKit2WebExtension50 from "@girs/webkit2webextension-5.0";
370
374
  import type WebKitWebExtension60 from "@girs/webkitwebextension-6.0";
375
+ import type WebKitWebProcessExtension60 from "@girs/webkitwebprocessextension-6.0";
371
376
  import type Wnck30 from "@girs/wnck-3.0";
372
377
  import type Xdp10 from "@girs/xdp-1.0";
373
378
  import type XdpGtk310 from "@girs/xdpgtk3-1.0";
@@ -397,14 +402,15 @@ import type GLib from '@girs/glib-2.0';
397
402
  import type AppIndicator301 from "@girs/appindicator3-0.1";
398
403
  import type CloudProviders03 from "@girs/cloudproviders-0.3";
399
404
  import type Gvc10 from "@girs/gvc-1.0";
400
- import type Shell01 from "@girs/shell-0.1";
401
- import type St10 from "@girs/st-1.0";
405
+ import type Shell12 from "@girs/shell-12";
406
+ import type St12 from "@girs/st-12";
402
407
  import type Shew0 from "@girs/shew-0";
403
- import type Cally11 from "@girs/cally-11";
404
- import type Clutter11 from "@girs/clutter-11";
405
- import type Cogl11 from "@girs/cogl-11";
406
- import type CoglPango11 from "@girs/coglpango-11";
407
- import type Meta11 from "@girs/meta-11";
408
+ import type Cally12 from "@girs/cally-12";
409
+ import type Clutter12 from "@girs/clutter-12";
410
+ import type Cogl12 from "@girs/cogl-12";
411
+ import type CoglPango12 from "@girs/coglpango-12";
412
+ import type Meta12 from "@girs/meta-12";
413
+ import type MetaTest12 from "@girs/metatest-12";
408
414
 
409
415
  // https://gitlab.gnome.org/GNOME/gjs/-/blob/1.72.0/modules/script/package.js
410
416
  declare namespace package {
@@ -443,22 +449,6 @@ declare namespace package {
443
449
  export function initSubmodule(module: string): void
444
450
  }
445
451
 
446
- declare namespace system {
447
- export const programInvocationName: string
448
- export const version: number
449
- export const programPath: string | null
450
- /** Equal to ARGV */
451
- export const programArgs: string[]
452
- export function exit(code: number): void
453
- export function addressOfGObject(o: GObject.Object): object
454
- export function addressOf(o: any): object
455
- /** Runs the garbage collector */
456
- export function gc(): void
457
- export function refcount(o: GObject.Object): number
458
- export function dumpHeap(path: string): void
459
- export function dumpMemoryInfo(path: string): void
460
- }
461
-
462
452
  declare namespace byteArray {
463
453
  export class ByteArray {
464
454
  static get(target: any, property: string, receiver: any): any
@@ -498,33 +488,6 @@ declare namespace lang {
498
488
  export function Class(props: any): void
499
489
  }
500
490
 
501
- declare namespace gettext {
502
- export enum LocaleCategory {
503
- ALL,
504
- COLLATE,
505
- CTYPE,
506
- MESSAGES,
507
- MONETARY,
508
- NUMERIC,
509
- TIME,
510
- }
511
- export function setlocale(category: number, locale: string | null): string
512
- export function textdomain(domainname: string | null): string
513
- export function bindtextdomain(domainname: string, dirname: string | null): string
514
- export function gettext(msgid: string): string
515
- export function dgettext(domainname: string | null, msgid: string): string
516
- export function dcgettext(domainname: string | null, msgid: string, category: number): string
517
- export function ngettext(msgid: string, msgid_plural: string, n: number): string
518
- export function dngettext(domainname: string, msgid: string, msgid_plural: string, n: number): string
519
- export function pgettext(context: string, msgid: string): string
520
- export function dpgettext(dom: string | null, context: string, msgid: string): string
521
- export function domain(domainName: string): {
522
- gettext: (msgid: string) => string
523
- ngettext: (msgid: string, msgid_plural: string, n: number) => string
524
- pgettext: (context: string, msgid: string) => string
525
- }
526
- }
527
-
528
491
  declare namespace format {
529
492
  export function vprintf(str: string, args: string[]): string
530
493
  export function printf(fmt: string, ...args: any[]): void
@@ -1188,14 +1151,14 @@ declare global {
1188
1151
  Bump: typeof Bump01
1189
1152
  Cally: typeof Cally10
1190
1153
  |
1191
- typeof Cally11
1154
+ typeof Cally12
1192
1155
  Camel: typeof Camel12
1193
1156
  Caribou: typeof Caribou10
1194
1157
  Champlain: typeof Champlain012
1195
1158
  Cheese: typeof Cheese30
1196
1159
  Clutter: typeof Clutter10
1197
1160
  |
1198
- typeof Clutter11
1161
+ typeof Clutter12
1199
1162
  ClutterGdk: typeof ClutterGdk10
1200
1163
  ClutterGst: typeof ClutterGst10
1201
1164
  |
@@ -1207,13 +1170,13 @@ declare global {
1207
1170
  |
1208
1171
  typeof Cogl20
1209
1172
  |
1210
- typeof Cogl11
1173
+ typeof Cogl12
1211
1174
  CoglGst: typeof CoglGst20
1212
1175
  CoglPango: typeof CoglPango10
1213
1176
  |
1214
1177
  typeof CoglPango20
1215
1178
  |
1216
- typeof CoglPango11
1179
+ typeof CoglPango12
1217
1180
  ColorHug: typeof ColorHug10
1218
1181
  Colord: typeof Colord10
1219
1182
  ColordGtk: typeof ColordGtk10
@@ -1520,6 +1483,8 @@ declare global {
1520
1483
  PangoXft: typeof PangoXft10
1521
1484
  Parquet: typeof Parquet10
1522
1485
  Peas: typeof Peas10
1486
+ |
1487
+ typeof Peas2
1523
1488
  PeasGtk: typeof PeasGtk10
1524
1489
  Plasma: typeof Plasma10
1525
1490
  Pnl: typeof Pnl10
@@ -1618,6 +1583,7 @@ declare global {
1618
1583
  |
1619
1584
  typeof WebKit2WebExtension50
1620
1585
  WebKitWebExtension: typeof WebKitWebExtension60
1586
+ WebKitWebProcessExtension: typeof WebKitWebProcessExtension60
1621
1587
  Wnck: typeof Wnck30
1622
1588
  Xdp: typeof Xdp10
1623
1589
  XdpGtk3: typeof XdpGtk310
@@ -1641,10 +1607,11 @@ declare global {
1641
1607
  AppIndicator3: typeof AppIndicator301
1642
1608
  CloudProviders: typeof CloudProviders03
1643
1609
  Gvc: typeof Gvc10
1644
- Shell: typeof Shell01
1645
- St: typeof St10
1610
+ Shell: typeof Shell12
1611
+ St: typeof St12
1646
1612
  Shew: typeof Shew0
1647
- Meta: typeof Meta11
1613
+ Meta: typeof Meta12
1614
+ MetaTest: typeof MetaTest12
1648
1615
  versions: {
1649
1616
  Accounts: '1.0'
1650
1617
  AccountsService: '1.0'
@@ -1668,14 +1635,14 @@ declare global {
1668
1635
  Bump: '0.1'
1669
1636
  Cally: '1.0'
1670
1637
  |
1671
- '11'
1638
+ '12'
1672
1639
  Camel: '1.2'
1673
1640
  Caribou: '1.0'
1674
1641
  Champlain: '0.12'
1675
1642
  Cheese: '3.0'
1676
1643
  Clutter: '1.0'
1677
1644
  |
1678
- '11'
1645
+ '12'
1679
1646
  ClutterGdk: '1.0'
1680
1647
  ClutterGst: '1.0'
1681
1648
  |
@@ -1687,13 +1654,13 @@ declare global {
1687
1654
  |
1688
1655
  '2.0'
1689
1656
  |
1690
- '11'
1657
+ '12'
1691
1658
  CoglGst: '2.0'
1692
1659
  CoglPango: '1.0'
1693
1660
  |
1694
1661
  '2.0'
1695
1662
  |
1696
- '11'
1663
+ '12'
1697
1664
  ColorHug: '1.0'
1698
1665
  Colord: '1.0'
1699
1666
  ColordGtk: '1.0'
@@ -2000,6 +1967,8 @@ declare global {
2000
1967
  PangoXft: '1.0'
2001
1968
  Parquet: '1.0'
2002
1969
  Peas: '1.0'
1970
+ |
1971
+ '2'
2003
1972
  PeasGtk: '1.0'
2004
1973
  Plasma: '1.0'
2005
1974
  Pnl: '1.0'
@@ -2098,6 +2067,7 @@ declare global {
2098
2067
  |
2099
2068
  '5.0'
2100
2069
  WebKitWebExtension: '6.0'
2070
+ WebKitWebProcessExtension: '6.0'
2101
2071
  Wnck: '3.0'
2102
2072
  Xdp: '1.0'
2103
2073
  XdpGtk3: '1.0'
@@ -2121,14 +2091,14 @@ declare global {
2121
2091
  AppIndicator3: '0.1'
2122
2092
  CloudProviders: '0.3'
2123
2093
  Gvc: '1.0'
2124
- Shell: '0.1'
2125
- St: '1.0'
2094
+ Shell: '12'
2095
+ St: '12'
2126
2096
  Shew: '0'
2127
- Meta: '11'
2097
+ Meta: '12'
2098
+ MetaTest: '12'
2128
2099
  }
2129
2100
  }
2130
2101
 
2131
-
2132
2102
  lang: typeof lang
2133
2103
  system: typeof system
2134
2104
  signals: typeof signals
@@ -2138,6 +2108,7 @@ declare global {
2138
2108
  gettext: typeof gettext
2139
2109
  byteArray: typeof byteArray
2140
2110
  format: typeof format
2111
+ cairo: typeof cairo
2141
2112
  }
2142
2113
  }
2143
2114
 
package/gjs.js CHANGED
@@ -1,4 +1,5 @@
1
- const imports = globalThis.imports || {}
1
+ const imports = globalThis.imports || {};
2
2
 
3
3
  export { imports }
4
- export default imports
4
+ export default imports;
5
+