Comparing version 4.0.0-beta.6 to 4.0.0-beta.7
@@ -5,3 +5,1 @@ // TODO: See ./cairo-1.0.d.ts | ||
export default Cairo; | ||
105
dom.d.ts
@@ -5,5 +5,6 @@ /** | ||
* This should normally not be the case, since the other - not yet reimplemented - API's cannot be used in GJS anyway. | ||
* In particular, Gjsify tries to rebuild the DOM API and therefore does not need these types. | ||
* For this reason they are stored in this separate file to make them optional. | ||
* | ||
* | ||
* If for some reason the entire DOM types should still be used, | ||
* this file can be ignored and `lib.dom.d.ts` used instead, otherwise this file should be imported in your project. | ||
* | ||
* See also https://github.com/microsoft/TypeScript/blob/main/lib/lib.dom.d.ts | ||
@@ -15,3 +16,2 @@ */ | ||
declare global { | ||
interface ImportMeta { | ||
@@ -35,3 +35,3 @@ /** | ||
*/ | ||
function setTimeout(callback: (...args: any[]) => any, delay?: number, ...args: any[]): GLib.Source | ||
function setTimeout(callback: (...args: any[]) => any, delay?: number, ...args: any[]): GLib.Source; | ||
@@ -44,3 +44,3 @@ /** | ||
*/ | ||
function setInterval(callback: (...args: any[]) => any, delay?: number, ...args: any[]): GLib.Source | ||
function setInterval(callback: (...args: any[]) => any, delay?: number, ...args: any[]): GLib.Source; | ||
@@ -51,3 +51,3 @@ /** | ||
*/ | ||
function clearTimeout(timeout: GLib.Source): void | ||
function clearTimeout(timeout: GLib.Source): void; | ||
@@ -58,3 +58,3 @@ /** | ||
*/ | ||
function clearInterval(timeout: GLib.Source): void | ||
function clearInterval(timeout: GLib.Source): void; | ||
@@ -71,3 +71,3 @@ interface Console { | ||
*/ | ||
assert(condition: boolean, ...data: any[]): void | ||
assert(condition: boolean, ...data: any[]): void; | ||
@@ -82,3 +82,3 @@ /** | ||
*/ | ||
clear(): void | ||
clear(): void; | ||
@@ -90,3 +90,3 @@ /** | ||
*/ | ||
debug(...data: any[]): void | ||
debug(...data: any[]): void; | ||
@@ -100,3 +100,3 @@ /** | ||
*/ | ||
error(...data: any[]): void | ||
error(...data: any[]): void; | ||
@@ -108,3 +108,3 @@ /** | ||
*/ | ||
info(...data: any[]): void | ||
info(...data: any[]): void; | ||
@@ -116,6 +116,6 @@ /** | ||
*/ | ||
log(...data: any[]): void | ||
log(...data: any[]): void; | ||
// 1.1.7 table(tabularData, properties) | ||
table(tabularData: any, _properties: never): void | ||
table(tabularData: any, _properties: never): void; | ||
@@ -125,3 +125,3 @@ /** | ||
*/ | ||
trace(...data: any[]): void | ||
trace(...data: any[]): void; | ||
@@ -131,3 +131,3 @@ /** | ||
*/ | ||
warn(...data: any[]): void | ||
warn(...data: any[]): void; | ||
@@ -139,3 +139,3 @@ /** | ||
*/ | ||
dir(item: object, options: never): void | ||
dir(item: object, options: never): void; | ||
@@ -145,3 +145,3 @@ /** | ||
*/ | ||
dirxml(...data: any[]): void | ||
dirxml(...data: any[]): void; | ||
@@ -158,3 +158,3 @@ // 1.2 Counting functions | ||
*/ | ||
count(label: string): void | ||
count(label: string): void; | ||
@@ -164,3 +164,3 @@ /** | ||
*/ | ||
countReset(label: string): void | ||
countReset(label: string): void; | ||
@@ -173,3 +173,3 @@ // 1.3 Grouping functions | ||
*/ | ||
group(...data: any[]): void | ||
group(...data: any[]): void; | ||
@@ -181,7 +181,7 @@ /** | ||
*/ | ||
groupCollapsed(...data: any[]): void | ||
groupCollapsed(...data: any[]): void; | ||
/** | ||
*/ | ||
groupEnd(): void | ||
groupEnd(): void; | ||
@@ -195,3 +195,3 @@ // 1.4 Timing functions | ||
*/ | ||
time(label: string): void | ||
time(label: string): void; | ||
@@ -206,3 +206,3 @@ /** | ||
*/ | ||
timeLog(label: string, ...data: any[]): void | ||
timeLog(label: string, ...data: any[]): void; | ||
@@ -216,3 +216,3 @@ /** | ||
*/ | ||
timeEnd(label: string): void | ||
timeEnd(label: string): void; | ||
@@ -228,3 +228,3 @@ // Non-standard functions which are de-facto standards. | ||
*/ | ||
profile(_label: string): void | ||
profile(_label: string): void; | ||
@@ -236,3 +236,3 @@ /** | ||
*/ | ||
profileEnd(_label: string): void | ||
profileEnd(_label: string): void; | ||
@@ -244,3 +244,3 @@ /** | ||
*/ | ||
timeStamp(_label: string): void | ||
timeStamp(_label: string): void; | ||
@@ -253,7 +253,7 @@ // GJS-specific extensions for integrating with GLib structured logging | ||
*/ | ||
setLogDomain(logDomain: string): void | ||
setLogDomain(logDomain: string): void; | ||
logDomain: string | ||
logDomain: string; | ||
interact(): void | ||
interact(): void; | ||
} | ||
@@ -268,5 +268,5 @@ | ||
/** Indicates whether the error mode is fatal. */ | ||
fatal?: boolean | ||
fatal?: boolean; | ||
/** Indicates whether whether the byte order mark is ignored. */ | ||
ignoreBOM?: boolean | ||
ignoreBOM?: boolean; | ||
} | ||
@@ -282,7 +282,7 @@ | ||
/** A string containing the name of the decoder, that is a string describing the method the TextDecoder will use. */ | ||
readonly encoding: TextDecoderEncoding | ||
readonly encoding: TextDecoderEncoding; | ||
/** A Boolean indicating whether the error mode is fatal. */ | ||
readonly fatal: boolean | ||
readonly fatal: boolean; | ||
/** A Boolean indicating whether the byte order mark is ignored. */ | ||
readonly ignoreBOM: boolean | ||
readonly ignoreBOM: boolean; | ||
@@ -297,8 +297,8 @@ /** | ||
*/ | ||
decode(input?: ArrayBufferView | ArrayBuffer, options?: TextDecodeOptions): string | ||
decode(input?: ArrayBufferView | ArrayBuffer, options?: TextDecodeOptions): string; | ||
} | ||
interface TextEncoderEncodeIntoResult { | ||
read?: number | ||
written?: number | ||
read?: number; | ||
written?: number; | ||
} | ||
@@ -312,3 +312,3 @@ | ||
interface TextEncoder { | ||
readonly encoding: 'utf-8' | ||
readonly encoding: 'utf-8'; | ||
@@ -320,3 +320,3 @@ /** | ||
*/ | ||
encode(input?: string): Uint8Array | ||
encode(input?: string): Uint8Array; | ||
/** | ||
@@ -331,19 +331,18 @@ * Takes a string to encode and a destination Uint8Array to put resulting UTF-8 encoded text into, | ||
*/ | ||
encodeInto(source: string, destination: Uint8Array): TextEncoderEncodeIntoResult | ||
encodeInto(source: string, destination: Uint8Array): TextEncoderEncodeIntoResult; | ||
} | ||
const console: Console | ||
const console: Console; | ||
const TextDecoder: { | ||
prototype: TextDecoder | ||
new (label?: TextDecoderEncoding, options?: TextDecoderOptions): TextDecoder | ||
} | ||
prototype: TextDecoder; | ||
new (label?: TextDecoderEncoding, options?: TextDecoderOptions): TextDecoder; | ||
}; | ||
const TextEncoder: { | ||
prototype: TextEncoder | ||
new (): TextEncoder | ||
} | ||
prototype: TextEncoder; | ||
new (): TextEncoder; | ||
}; | ||
} | ||
export {} | ||
export {}; |
@@ -10,34 +10,33 @@ export enum LocaleCategory { | ||
} | ||
export function setlocale(category: number, locale: string | null): string | ||
export function textdomain(domainname: string | null): string | ||
export function bindtextdomain(domainname: string, dirname: string | null): string | ||
export function gettext(msgid: string): string | ||
export function dgettext(domainname: string | null, msgid: string): string | ||
export function dcgettext(domainname: string | null, msgid: string, category: number): string | ||
export function ngettext(msgid: string, msgid_plural: string, n: number): string | ||
export function dngettext(domainname: string, msgid: string, msgid_plural: string, n: number): string | ||
export function pgettext(context: string, msgid: string): string | ||
export function dpgettext(dom: string | null, context: string, msgid: string): string | ||
export function setlocale(category: number, locale: string | null): string; | ||
export function textdomain(domainname: string | null): string; | ||
export function bindtextdomain(domainname: string, dirname: string | null): string; | ||
export function gettext(msgid: string): string; | ||
export function dgettext(domainname: string | null, msgid: string): string; | ||
export function dcgettext(domainname: string | null, msgid: string, category: number): string; | ||
export function ngettext(msgid: string, msgid_plural: string, n: number): string; | ||
export function dngettext(domainname: string, msgid: string, msgid_plural: string, n: number): string; | ||
export function pgettext(context: string, msgid: string): string; | ||
export function dpgettext(dom: string | null, context: string, msgid: string): string; | ||
export function domain(domainName: string): { | ||
gettext: (msgid: string) => string | ||
ngettext: (msgid: string, msgid_plural: string, n: number) => string | ||
pgettext: (context: string, msgid: string) => string | ||
} | ||
gettext: (msgid: string) => string; | ||
ngettext: (msgid: string, msgid_plural: string, n: number) => string; | ||
pgettext: (context: string, msgid: string) => string; | ||
}; | ||
declare const Gettext: { | ||
LocaleCategory: typeof LocaleCategory, | ||
setlocale: typeof setlocale, | ||
textdomain: typeof textdomain, | ||
bindtextdomain: typeof bindtextdomain, | ||
gettext: typeof gettext, | ||
dgettext: typeof dgettext, | ||
dcgettext: typeof dcgettext, | ||
ngettext: typeof ngettext, | ||
dngettext: typeof dngettext, | ||
pgettext: typeof pgettext, | ||
dpgettext: typeof dpgettext, | ||
domain: typeof domain, | ||
} | ||
LocaleCategory: typeof LocaleCategory; | ||
setlocale: typeof setlocale; | ||
textdomain: typeof textdomain; | ||
bindtextdomain: typeof bindtextdomain; | ||
gettext: typeof gettext; | ||
dgettext: typeof dgettext; | ||
dcgettext: typeof dcgettext; | ||
ngettext: typeof ngettext; | ||
dngettext: typeof dngettext; | ||
pgettext: typeof pgettext; | ||
dpgettext: typeof dpgettext; | ||
domain: typeof domain; | ||
}; | ||
export default Gettext | ||
export default Gettext; |
179
gjs.d.ts
@@ -1,2 +0,2 @@ | ||
/* | ||
/** | ||
* Type Definitions for Gjs (https://gjs.guide/) | ||
@@ -7,6 +7,6 @@ * | ||
*/ | ||
import './ambient.d.ts'; | ||
import type GObject from '@girs/gobject-2.0'; | ||
import type GLib from '@girs/glib-2.0'; | ||
import gettext from './gettext.js'; | ||
@@ -24,29 +24,29 @@ import system from './system.js'; | ||
interface PackageInitParams { | ||
name: string | ||
version: string | ||
prefix: string | ||
libdir: string | ||
name: string; | ||
version: string; | ||
prefix: string; | ||
libdir: string; | ||
} | ||
export const name: string | undefined | ||
export const version: string | undefined | ||
export const prefix: string | undefined | ||
export const datadir: string | undefined | ||
export const libdir: string | undefined | ||
export const pkgdatadir: string | undefined | ||
export const pkglibdir: string | undefined | ||
export const moduledir: string | undefined | ||
export const localedir: string | undefined | ||
export const name: string | undefined; | ||
export const version: string | undefined; | ||
export const prefix: string | undefined; | ||
export const datadir: string | undefined; | ||
export const libdir: string | undefined; | ||
export const pkgdatadir: string | undefined; | ||
export const pkglibdir: string | undefined; | ||
export const moduledir: string | undefined; | ||
export const localedir: string | undefined; | ||
export function init(params: PackageInitParams): void | ||
export function run(module: { main: (argv: string[]) => void }): void | ||
export function init(params: PackageInitParams): void; | ||
export function run(module: { main: (argv: string[]) => void }): void; | ||
/** shortcut to init+run */ | ||
export function start(params: PackageInitParams): void | ||
export function require(libs: Record<string, string>): void | ||
export function requireSymbol(lib: string, ver: string, symbol: string): void | ||
export function checkSymbol(lib: string, ver: string, symbol: string): void | ||
export function initGettext(): void | ||
export function start(params: PackageInitParams): void; | ||
export function require(libs: Record<string, string>): void; | ||
export function requireSymbol(lib: string, ver: string, symbol: string): void; | ||
export function checkSymbol(lib: string, ver: string, symbol: string): void; | ||
export function initGettext(): void; | ||
/** @deprecated Use JS string interpolation */ | ||
export function initFormat(): void | ||
export function initSubmodule(module: string): void | ||
export function initFormat(): void; | ||
export function initSubmodule(module: string): void; | ||
} | ||
@@ -56,28 +56,28 @@ | ||
export class ByteArray { | ||
static get(target: any, property: string, receiver: any): any | ||
static set(target: any, property: string, value: any, receiver: any): boolean | ||
static get(target: any, property: string, receiver: any): any; | ||
static set(target: any, property: string, value: any, receiver: any): boolean; | ||
length: number | ||
protected _array: Uint8Array | ||
length: number; | ||
protected _array: Uint8Array; | ||
constructor(x: Uint8Array | number) | ||
toString(encoding?: TextDecoderEncoding): string | ||
fromString(input: string, encoding?: TextDecoderEncoding): ByteArray | ||
toGBytes(): GLib.Bytes | ||
constructor(x: Uint8Array | number); | ||
toString(encoding?: TextDecoderEncoding): string; | ||
fromString(input: string, encoding?: TextDecoderEncoding): ByteArray; | ||
toGBytes(): GLib.Bytes; | ||
} | ||
/** @deprecated Use {@link TextEncoder.encode} instead */ | ||
export function fromString(input: string, encoding?: TextDecoderEncoding): Uint8Array | ||
export function fromString(input: string, encoding?: TextDecoderEncoding): Uint8Array; | ||
/** @deprecated Use {@link GLib.Bytes.toArray} instead */ | ||
export function fromGBytes(input: GLib.Bytes): Uint8Array | ||
export function fromGBytes(input: GLib.Bytes): Uint8Array; | ||
/** @deprecated Use {@link TextDecoder.decode} instead */ | ||
export function toString(x: Uint8Array, encoding?: TextDecoderEncoding): string | ||
export function toString(x: Uint8Array, encoding?: TextDecoderEncoding): string; | ||
/** @deprecated Use {@link GLib.Bytes new GLib.Bytes() } instead */ | ||
export function toGBytes(x: Uint8Array): GLib.Bytes | ||
export function toGBytes(x: Uint8Array): GLib.Bytes; | ||
/** @deprecated Use {@link ByteArray new ByteArray()} instead */ | ||
export function fromArray(array: Iterable<number>): ByteArray | ||
export function fromArray(array: Iterable<number>): ByteArray; | ||
} | ||
@@ -87,8 +87,8 @@ | ||
// TODO: There is a lot more in Lang | ||
export function Class(props: any): void | ||
export function Class(props: any): void; | ||
} | ||
declare namespace format { | ||
export function vprintf(str: string, args: string[]): string | ||
export function printf(fmt: string, ...args: any[]): void | ||
export function vprintf(str: string, args: string[]): string; | ||
export function printf(fmt: string, ...args: any[]): void; | ||
// Following docs from gjs/modules/format.js | ||
@@ -106,15 +106,15 @@ /** | ||
*/ | ||
export function format(fmt: string, ...args: any[]): string | ||
export function format(fmt: string, ...args: any[]): string; | ||
} | ||
declare namespace mainloop { | ||
export function quit(name: string): void | ||
export function idle_source(handler: any, priority?: number): any | ||
export function idle_add(handler: any, priority?: number): any | ||
export function timeout_source(timeout: any, handler: any, priority?: number): any | ||
export function timeout_seconds_source(timeout: any, handler: any, priority?: number): any | ||
export function timeout_add(timeout: any, handler: any, priority?: number): any | ||
export function timeout_add_seconds(timeout: any, handler: any, priority?: number): any | ||
export function source_remove(id: any): any | ||
export function run(name: string): void | ||
export function quit(name: string): void; | ||
export function idle_source(handler: any, priority?: number): any; | ||
export function idle_add(handler: any, priority?: number): any; | ||
export function timeout_source(timeout: any, handler: any, priority?: number): any; | ||
export function timeout_seconds_source(timeout: any, handler: any, priority?: number): any; | ||
export function timeout_add(timeout: any, handler: any, priority?: number): any; | ||
export function timeout_add_seconds(timeout: any, handler: any, priority?: number): any; | ||
export function source_remove(id: any): any; | ||
export function run(name: string): void; | ||
} | ||
@@ -129,11 +129,11 @@ | ||
* const Signals = imports.signals; | ||
* | ||
* | ||
* // Define an interface with the same name of your class to make the methods known | ||
* interface Events extends Signals.Methods {} | ||
* | ||
* | ||
* class Events {} | ||
* Signals.addSignalMethods(Events.prototype); | ||
* | ||
* | ||
* const events = new Events(); | ||
* | ||
* | ||
* // Typescript will not complain here | ||
@@ -147,9 +147,9 @@ * events.emit("test-signal", "test argument"); | ||
* `disconnect()` to remove the handler. | ||
* | ||
* | ||
* If `callback` returns `true`, emission will stop and no other handlers will be | ||
* invoked. | ||
* | ||
* | ||
* > Warning: Unlike GObject signals, `this` within a signal callback will always | ||
* > refer to the global object (ie. `globalThis`). | ||
* | ||
* | ||
* @param sigName A signal name | ||
@@ -162,3 +162,3 @@ * @param callback A callback function | ||
* Emits a signal for an object. Emission stops if a signal handler returns `true`. | ||
* | ||
* | ||
* Unlike GObject signals, it is not necessary to declare signals or define their | ||
@@ -179,3 +179,3 @@ * signature. Simply call `emit()` with whatever signal name you wish, with | ||
*/ | ||
disconnectAll(): void | ||
disconnectAll(): void; | ||
/** | ||
@@ -194,3 +194,2 @@ * Checks if a handler ID is connected. | ||
declare global { | ||
// https://gitlab.gnome.org/GNOME/gjs/-/blob/1.73.2/modules/esm/_encoding/encodingMap.js#L7-232 | ||
@@ -417,3 +416,3 @@ type TextDecoderEncoding = | ||
| 'utf-16' | ||
| 'utf-16le' | ||
| 'utf-16le'; | ||
@@ -423,49 +422,47 @@ interface GjsGiImports { | ||
versions: { | ||
[namespace: string]: string | ||
} | ||
[namespace: string]: string; | ||
}; | ||
} | ||
interface GjsImports { | ||
gi: GjsGiImports | ||
lang: typeof lang | ||
system: typeof system | ||
signals: typeof signals | ||
package: typeof package | ||
mainloop: typeof mainloop | ||
searchPath: string[] | ||
gettext: typeof gettext | ||
byteArray: typeof byteArray | ||
format: typeof format | ||
cairo: typeof cairo | ||
gi: GjsGiImports; | ||
lang: typeof lang; | ||
system: typeof system; | ||
signals: typeof signals; | ||
package: typeof package; | ||
mainloop: typeof mainloop; | ||
searchPath: string[]; | ||
gettext: typeof gettext; | ||
byteArray: typeof byteArray; | ||
format: typeof format; | ||
cairo: typeof cairo; | ||
} | ||
function print(...args: any[]): void | ||
function printerr(...args: any[]): void | ||
function log(message: any): void | ||
function logError(exception: object, message?: any): void | ||
function logError(message?: any): void | ||
function print(...args: any[]): void; | ||
function printerr(...args: any[]): void; | ||
function log(message: any): void; | ||
function logError(exception: object, message?: any): void; | ||
function logError(message?: any): void; | ||
const pkg: typeof package | ||
const pkg: typeof package; | ||
interface BooleanConstructor { | ||
$gtype: GObject.GType<boolean> | ||
$gtype: GObject.GType<boolean>; | ||
} | ||
interface NumberConstructor { | ||
$gtype: GObject.GType<number> | ||
$gtype: GObject.GType<number>; | ||
} | ||
interface StringConstructor { | ||
$gtype: GObject.GType<string> | ||
$gtype: GObject.GType<string>; | ||
} | ||
const imports: GjsImports | ||
const imports: GjsImports; | ||
const ARGV: string[] | ||
const ARGV: string[]; | ||
} | ||
declare const _imports: GjsImports | ||
export default _imports | ||
export { _imports as imports } | ||
declare const _imports: GjsImports; | ||
export default _imports; | ||
export { _imports as imports }; |
{ | ||
"name": "@girs/gjs", | ||
"version": "4.0.0-beta.6", | ||
"version": "4.0.0-beta.7", | ||
"description": "GJS TypeScript type definitions for Gjs", | ||
@@ -10,5 +10,5 @@ "type": "module", | ||
"./ambient": { | ||
"types": "./ambient.d.ts", | ||
"import": "./ambient.js", | ||
"default": "./ambient.js" | ||
"types": "./gjs-ambient.d.ts", | ||
"import": "./gjs-ambient.js", | ||
"default": "./gjs-ambient.js" | ||
}, | ||
@@ -35,6 +35,11 @@ "./dom": { | ||
}, | ||
".": { | ||
"./gjs": { | ||
"types": "./gjs.d.ts", | ||
"import": "./gjs.js", | ||
"default": "./gjs.js" | ||
}, | ||
".": { | ||
"types": "./index.d.ts", | ||
"import": "./index.js", | ||
"default": "./index.js" | ||
} | ||
@@ -46,5 +51,5 @@ }, | ||
"dependencies": { | ||
"@girs/gio-2.0": "^2.80.3-4.0.0-beta.6", | ||
"@girs/glib-2.0": "^2.80.3-4.0.0-beta.6", | ||
"@girs/gobject-2.0": "^2.80.3-4.0.0-beta.6" | ||
"@girs/gio-2.0": "^2.80.2-4.0.0-beta.7", | ||
"@girs/glib-2.0": "^2.80.2-4.0.0-beta.7", | ||
"@girs/gobject-2.0": "^2.80.2-4.0.0-beta.7" | ||
}, | ||
@@ -51,0 +56,0 @@ "devDependencies": { |
@@ -7,3 +7,3 @@ | ||
GJS TypeScript type definitions for Gjs using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.6. | ||
GJS TypeScript type definitions for Gjs using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.7. | ||
@@ -10,0 +10,0 @@ [GJS](https://gitlab.gnome.org/GNOME/gjs) is a JavaScript runtime for the GNOME ecosystem. Using GJS and the type definitions in this NPM package, you can build GTK applications in JavaScript or TypeScript with type checking, better autocompletion and inline documentations. |
@@ -10,3 +10,3 @@ import type GObject from '@girs/gobject-2.0'; | ||
*/ | ||
export const programInvocationName: string | ||
export const programInvocationName: string; | ||
@@ -16,3 +16,3 @@ /** | ||
*/ | ||
export const version: number | ||
export const version: number; | ||
@@ -23,3 +23,3 @@ /** | ||
*/ | ||
export const programPath: string | null | ||
export const programPath: string | null; | ||
@@ -32,3 +32,3 @@ /** | ||
*/ | ||
export const programArgs: string[] | ||
export const programArgs: string[]; | ||
@@ -46,3 +46,3 @@ /** | ||
*/ | ||
export function addressOf(o: any): string | ||
export function addressOf(o: any): string; | ||
@@ -56,3 +56,3 @@ /** | ||
*/ | ||
export function addressOfGObject(o: GObject.Object): string | ||
export function addressOfGObject(o: GObject.Object): string; | ||
@@ -90,3 +90,3 @@ /** | ||
*/ | ||
export function breakpoint(): void | ||
export function breakpoint(): void; | ||
@@ -97,6 +97,6 @@ /** | ||
*/ | ||
export function clearDateCaches(): void | ||
export function clearDateCaches(): void; | ||
/** Runs the garbage collector */ | ||
export function gc(): void | ||
export function gc(): void; | ||
@@ -108,3 +108,3 @@ /** | ||
*/ | ||
export function refcount(o: GObject.Object): number | ||
export function refcount(o: GObject.Object): number; | ||
/** | ||
@@ -116,3 +116,3 @@ * See also: The [heapgraph](https://gitlab.gnome.org/GNOME/gjs/blob/HEAD/tools/heapgraph.md) utility in the GJS repository. | ||
*/ | ||
export function dumpHeap(path?: string): void | ||
export function dumpHeap(path?: string): void; | ||
@@ -145,5 +145,5 @@ /** | ||
* ``` | ||
* | ||
* | ||
*/ | ||
export function dumpMemoryInfo(path?: string): void | ||
export function dumpMemoryInfo(path?: string): void; | ||
@@ -154,3 +154,3 @@ /** | ||
* there was no error, or non-zero (any value you please) to indicate an error. | ||
* | ||
* | ||
* This value is used by other tools such as `make`; if `make` calls a program that | ||
@@ -160,3 +160,3 @@ * returns a non-zero error code, then `make` aborts the build. | ||
*/ | ||
export function exit(code: number): void | ||
export function exit(code: number): void; | ||
@@ -167,3 +167,3 @@ /** | ||
* properties for debugging. | ||
* | ||
* | ||
* Note that the majority of the functions and properties in this module should not | ||
@@ -173,18 +173,17 @@ * be used in normal operation of a GJS application. | ||
declare const System: { | ||
programInvocationName: typeof programInvocationName, | ||
version: typeof version, | ||
programPath: typeof programPath, | ||
programArgs: typeof programArgs, | ||
addressOf: typeof addressOf, | ||
addressOfGObject: typeof addressOfGObject, | ||
breakpoint: typeof breakpoint, | ||
clearDateCaches: typeof clearDateCaches, | ||
gc: typeof gc, | ||
refcount: typeof refcount, | ||
dumpHeap: typeof dumpHeap, | ||
dumpMemoryInfo: typeof dumpMemoryInfo, | ||
exit: typeof exit, | ||
} | ||
programInvocationName: typeof programInvocationName; | ||
version: typeof version; | ||
programPath: typeof programPath; | ||
programArgs: typeof programArgs; | ||
addressOf: typeof addressOf; | ||
addressOfGObject: typeof addressOfGObject; | ||
breakpoint: typeof breakpoint; | ||
clearDateCaches: typeof clearDateCaches; | ||
gc: typeof gc; | ||
refcount: typeof refcount; | ||
dumpHeap: typeof dumpHeap; | ||
dumpMemoryInfo: typeof dumpMemoryInfo; | ||
exit: typeof exit; | ||
}; | ||
export default System | ||
export default System; |
@@ -5,7 +5,7 @@ { | ||
"target": "ESNext", | ||
"module": "ESNext", | ||
"module": "NodeNext", | ||
"lib": ["ESNext"], | ||
"types": [], | ||
"experimentalDecorators": true, | ||
"moduleResolution": "node", | ||
"moduleResolution": "NodeNext", | ||
"noEmit": true, | ||
@@ -12,0 +12,0 @@ "noEmitOnError": false, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
39024
18
967
+ Added@girs/gio-2.0@2.80.2-4.0.0-beta.10(transitive)
+ Added@girs/glib-2.0@2.80.2-4.0.0-beta.10(transitive)
+ Added@girs/gobject-2.0@2.80.2-4.0.0-beta.10(transitive)
- Removed@girs/gio-2.0@2.80.3-4.0.0-beta.15(transitive)
- Removed@girs/glib-2.0@2.80.3-4.0.0-beta.15(transitive)
- Removed@girs/gobject-2.0@2.80.3-4.0.0-beta.15(transitive)