@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/system.cjs ADDED
@@ -0,0 +1,5 @@
1
+
2
+ const System = imports.system;
3
+
4
+ module.exports = System;
5
+ exports.default = System;
package/system.d.cts ADDED
@@ -0,0 +1,31 @@
1
+ import type GObject from '@girs/gobject-2.0';
2
+
3
+ export const programInvocationName: string
4
+ export const version: number
5
+ export const programPath: string | null
6
+ /** Equal to ARGV */
7
+ export const programArgs: string[]
8
+ export function exit(code: number): void
9
+ export function addressOfGObject(o: GObject.Object): object
10
+ export function addressOf(o: any): object
11
+ /** Runs the garbage collector */
12
+ export function gc(): void
13
+ export function refcount(o: GObject.Object): number
14
+ export function dumpHeap(path: string): void
15
+ export function dumpMemoryInfo(path: string): void
16
+
17
+ declare const System: {
18
+ programInvocationName: typeof programInvocationName,
19
+ version: typeof version,
20
+ programPath: typeof programPath,
21
+ programArgs: typeof programArgs,
22
+ exit: typeof exit,
23
+ addressOfGObject: typeof addressOfGObject,
24
+ addressOf: typeof addressOf,
25
+ gc: typeof gc,
26
+ refcount: typeof refcount,
27
+ dumpHeap: typeof dumpHeap,
28
+ dumpMemoryInfo: typeof dumpMemoryInfo,
29
+ }
30
+
31
+ export default System
package/system.d.ts ADDED
@@ -0,0 +1,31 @@
1
+ import type GObject from '@girs/gobject-2.0';
2
+
3
+ export const programInvocationName: string
4
+ export const version: number
5
+ export const programPath: string | null
6
+ /** Equal to ARGV */
7
+ export const programArgs: string[]
8
+ export function exit(code: number): void
9
+ export function addressOfGObject(o: GObject.Object): object
10
+ export function addressOf(o: any): object
11
+ /** Runs the garbage collector */
12
+ export function gc(): void
13
+ export function refcount(o: GObject.Object): number
14
+ export function dumpHeap(path: string): void
15
+ export function dumpMemoryInfo(path: string): void
16
+
17
+ declare const System: {
18
+ programInvocationName: typeof programInvocationName,
19
+ version: typeof version,
20
+ programPath: typeof programPath,
21
+ programArgs: typeof programArgs,
22
+ exit: typeof exit,
23
+ addressOfGObject: typeof addressOfGObject,
24
+ addressOf: typeof addressOf,
25
+ gc: typeof gc,
26
+ refcount: typeof refcount,
27
+ dumpHeap: typeof dumpHeap,
28
+ dumpMemoryInfo: typeof dumpMemoryInfo,
29
+ }
30
+
31
+ export default System
package/system.js ADDED
@@ -0,0 +1,5 @@
1
+
2
+ import System, { programInvocationName, version, programPath, programArgs, exit, addressOfGObject, addressOf, gc, refcount, dumpHeap, dumpMemoryInfo } from 'system';
3
+
4
+ export { programInvocationName, version, programPath, programArgs, exit, addressOfGObject, addressOf, gc, refcount, dumpHeap, dumpMemoryInfo };
5
+ export default System;