Files
Aylur 11414ffef2 refactor how widgets are subclassed (#153)
* rework widget subclassing #121

* remove Utils.connect, add Widget.bind, Widget.connectTo

* add: types for on_event fields

* bump version to 1.5.1

* export service classes and named instance constants

* add starter config example
2023-11-06 00:58:19 +01:00

44 lines
1.1 KiB
TypeScript

declare function print(...args: any[]): void;
declare const pkg: {
version: string;
name: string;
};
declare const imports: {
config: any;
gi: any;
searchPath: string[];
}
declare module console {
export function error(obj: object, others?: object[]): void;
export function error(msg: string, subsitutions?: any[]): void;
export function log(obj: object, others?: object[]): void;
export function log(msg: string, subsitutions?: any[]): void;
export function warn(obj: object, others?: object[]): void;
export function warn(msg: string, subsitutions?: any[]): void;
}
declare interface String {
format(...replacements: string[]): string;
format(...replacements: number[]): string;
}
declare interface Number {
toFixed(digits: number): number;
}
declare class TextDecoder {
constructor(label?: string, options?: TextDecoderOptions);
decode(input?: BufferSource, options?: TextDecodeOptions): string;
readonly encoding: string;
readonly fatal: boolean;
readonly ignoreBOM: boolean;
}
declare class TextEncoder {
constructor();
encode(input?: string): Uint8Array;
}