@girs/gjs 4.0.0-beta.9 → 4.0.0-rc.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.
package/system.d.ts CHANGED
@@ -1,3 +1,5 @@
1
+
2
+
1
3
  import type GObject from '@girs/gobject-2.0';
2
4
 
3
5
  /**
@@ -5,28 +7,28 @@ import type GObject from '@girs/gobject-2.0';
5
7
  * line. In C and other languages, this information is contained in the first element of
6
8
  * the platform's equivalent of argv, but GJS's ARGV only contains the
7
9
  * subsequent command-line arguments. In other words, `ARGV[0]` in GJS is the same as `argv[1]` in C.
8
- * @version Gjs 1.68
10
+ * @since 1.68
9
11
  */
10
- export const programInvocationName: string;
12
+ export const programInvocationName: string
11
13
 
12
14
  /**
13
15
  * This property contains version information about GJS.
14
16
  */
15
- export const version: number;
17
+ export const version: number
16
18
 
17
19
  /**
18
20
  * The full path of the executed program.
19
- * @version Gjs 1.68
21
+ * @since 1.68
20
22
  */
21
- export const programPath: string | null;
23
+ export const programPath: string | null
22
24
 
23
25
  /**
24
26
  * A list of arguments passed to the current process.
25
27
  * This is effectively an alias for the global `ARGV`, which is misleading in that
26
28
  * it is not equivalent to the platform'`s` argv.
27
- * @version Gjs 1.68
29
+ * @since 1.68
28
30
  */
29
- export const programArgs: string[];
31
+ export const programArgs: string[]
30
32
 
31
33
  /**
32
34
  * Return the memory address of any object as a string.
@@ -39,16 +41,16 @@ export const programArgs: string[];
39
41
  * @param o Any Object
40
42
  * @returns A hexadecimal string (e.g. `0xb4f170f0`)
41
43
  */
42
- export function addressOf(o: any): string;
44
+ export function addressOf(o: object): string
43
45
 
44
46
  /**
45
47
  * Return the memory address of any GObject as a string.
46
48
  * See also {@link addressOf}
47
49
  * @param o Any {@link GObject.Object}-derived instance
48
50
  * @returns A hexadecimal string (e.g. `0xb4f170f0`)
49
- * @version Gjs 1.58
51
+ * @since 1.58
50
52
  */
51
- export function addressOfGObject(o: GObject.Object): string;
53
+ export function addressOfGObject(o: GObject.Object): string
52
54
 
53
55
  /**
54
56
  * Inserts a breakpoint instruction into the code.
@@ -81,36 +83,36 @@ export function addressOfGObject(o: GObject.Object): string;
81
83
  * breakpoint, so make sure to remove any calls to `System.breakpoint()` when
82
84
  * you're done debugging.
83
85
  */
84
- export function breakpoint(): void;
86
+ export function breakpoint(): void
85
87
 
86
88
  /**
87
89
  * Clears the timezone cache.
88
90
  * This is a workaround for SpiderMonkey Bug [#1004706](https://bugzilla.mozilla.org/show_bug.cgi?id=1004706).
89
91
  */
90
- export function clearDateCaches(): void;
92
+ export function clearDateCaches(): void
91
93
 
92
94
  /** Runs the garbage collector */
93
- export function gc(): void;
95
+ export function gc(): void
94
96
 
95
97
  /**
96
98
  * Return the reference count of any GObject-derived type. When an object's
97
99
  * reference count is zero, it is cleaned up and erased from memory.
98
100
  * @param o A {@link GObject.Object}
99
101
  */
100
- export function refcount(o: GObject.Object): number;
102
+ export function refcount(o: GObject.Object): number
101
103
  /**
102
104
  * See also: The [heapgraph](https://gitlab.gnome.org/GNOME/gjs/blob/HEAD/tools/heapgraph.md) utility in the GJS repository.
103
105
  * Dump a representation of internal heap memory. If `path` is not given, GJS will
104
106
  * write the contents to `stdout`.
105
107
  * @param path Optional file path
106
108
  */
107
- export function dumpHeap(path?: string): void;
109
+ export function dumpHeap(path?: string): void
108
110
 
109
111
  /**
110
112
  * Dump internal garbage collector statistics. If `path` is not given, GJS will
111
113
  * write the contents to `stdout`.
112
114
  * @param path Optional file path
113
- * @version Gjs 1.70
115
+ * @since 1.70
114
116
  * @example Output:
115
117
  * ```json
116
118
  * {
@@ -134,7 +136,7 @@ export function dumpHeap(path?: string): void;
134
136
  * ```
135
137
  *
136
138
  */
137
- export function dumpMemoryInfo(path?: string): void;
139
+ export function dumpMemoryInfo(path?: string): void
138
140
 
139
141
  /**
140
142
  * This works the same as C's exit() function; exits the program, passing a
@@ -145,7 +147,7 @@ export function dumpMemoryInfo(path?: string): void;
145
147
  * returns a non-zero error code, then `make` aborts the build.
146
148
  * @param code An exit code
147
149
  */
148
- export function exit(code: number): void;
150
+ export function exit(code: number): never
149
151
 
150
152
  /**
151
153
  * The System module provides common low-level facilities such as access to
@@ -156,19 +158,22 @@ export function exit(code: number): void;
156
158
  * be used in normal operation of a GJS application.
157
159
  */
158
160
  declare const System: {
159
- programInvocationName: typeof programInvocationName;
160
- version: typeof version;
161
- programPath: typeof programPath;
162
- programArgs: typeof programArgs;
163
- addressOf: typeof addressOf;
164
- addressOfGObject: typeof addressOfGObject;
165
- breakpoint: typeof breakpoint;
166
- clearDateCaches: typeof clearDateCaches;
167
- gc: typeof gc;
168
- refcount: typeof refcount;
169
- dumpHeap: typeof dumpHeap;
170
- dumpMemoryInfo: typeof dumpMemoryInfo;
171
- exit: typeof exit;
172
- };
173
-
174
- export default System;
161
+ programInvocationName: typeof programInvocationName,
162
+ version: typeof version,
163
+ programPath: typeof programPath,
164
+ programArgs: typeof programArgs,
165
+ addressOf: typeof addressOf,
166
+ addressOfGObject: typeof addressOfGObject,
167
+ breakpoint: typeof breakpoint,
168
+ clearDateCaches: typeof clearDateCaches,
169
+ gc: typeof gc,
170
+ refcount: typeof refcount,
171
+ dumpHeap: typeof dumpHeap,
172
+ dumpMemoryInfo: typeof dumpMemoryInfo,
173
+ exit: typeof exit,
174
+ }
175
+
176
+ export default System
177
+
178
+
179
+
package/tsconfig.json CHANGED
@@ -15,9 +15,10 @@
15
15
  "removeComments": false,
16
16
  "inlineSourceMap": false,
17
17
  "inlineSources": false,
18
- "newLine": "LF"
19
- },
20
- "include": ["./dom.d.ts","./gjs.d.ts"]
18
+ "newLine": "LF",
19
+ // Show diagnostics
20
+ "diagnostics": true },
21
+ "include": ["./dom.d.ts","./cairo.d.ts","./gettext.d.ts","./system.d.ts","./console.d.ts","./gjs-ambient.d.ts","./gjs.d.ts"]
21
22
  }
22
23
 
23
24
 
package/typedoc.json CHANGED
@@ -1,7 +1,9 @@
1
1
  {
2
- "entryPoints": ["./gjs.d.ts"],
2
+ "entryPoints": ["./gjs.d.ts","./cairo.d.ts","./gettext.d.ts","./system.d.ts","./dom.d.ts","./console.d.ts"],
3
3
  "readme": "./README.md",
4
4
  "name": "Gjs",
5
- "tsconfig": "./tsconfig.json"
5
+ "tsconfig": "./tsconfig.json",
6
+ "skipErrorChecking": true,
7
+ "highlightLanguages": ["typescript", "javascript", "c", "cpp", "xml", "bash", "json", "css"]
6
8
  }
7
9