83 lines
2.1 KiB
TypeScript
83 lines
2.1 KiB
TypeScript
/// <reference path="./gobject-2.0.d.ts" />
|
|
/// <reference path="./glib-2.0.d.ts" />
|
|
|
|
/**
|
|
* Type Definitions for Gjs (https://gjs.guide/)
|
|
*
|
|
* These type definitions are automatically generated, do not edit them by hand.
|
|
* If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gir
|
|
*
|
|
* The based EJS template file is used for the generated .d.ts file of each GIR module like Gtk-4.0, GObject-2.0, ...
|
|
*/
|
|
|
|
declare module 'gi://DBusGLib?version=1.0' {
|
|
// Module dependencies
|
|
import type GObject from 'gi://GObject?version=2.0';
|
|
import type GLib from 'gi://GLib?version=2.0';
|
|
|
|
export namespace DBusGLib {
|
|
/**
|
|
* DBusGLib-1.0
|
|
*/
|
|
|
|
namespace Proxy {
|
|
// Constructor properties interface
|
|
|
|
interface ConstructorProps extends GObject.Object.ConstructorProps {}
|
|
}
|
|
|
|
class Proxy extends GObject.Object {
|
|
static $gtype: GObject.GType<Proxy>;
|
|
|
|
// Constructors
|
|
|
|
constructor(properties?: Partial<Proxy.ConstructorProps>, ...args: any[]);
|
|
|
|
_init(...args: any[]): void;
|
|
}
|
|
|
|
class Connection {
|
|
static $gtype: GObject.GType<Connection>;
|
|
|
|
// Constructors
|
|
|
|
_init(...args: any[]): void;
|
|
}
|
|
|
|
class MethodInvocation {
|
|
static $gtype: GObject.GType<MethodInvocation>;
|
|
|
|
// Constructors
|
|
|
|
_init(...args: any[]): void;
|
|
}
|
|
|
|
class ProxyClass {
|
|
static $gtype: GObject.GType<ProxyClass>;
|
|
|
|
// Constructors
|
|
|
|
_init(...args: any[]): void;
|
|
}
|
|
|
|
/**
|
|
* Name of the imported GIR library
|
|
* `see` https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
|
|
*/
|
|
const __name__: string;
|
|
/**
|
|
* Version of the imported GIR library
|
|
* `see` https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
|
|
*/
|
|
const __version__: string;
|
|
}
|
|
|
|
export default DBusGLib;
|
|
}
|
|
|
|
declare module 'gi://DBusGLib' {
|
|
import DBusGLib10 from 'gi://DBusGLib?version=1.0';
|
|
export default DBusGLib10;
|
|
}
|
|
// END
|