extern: split type definitions and global constant declarations
This commit is contained in:
7
src/lib/extern/kwin.d.ts
vendored
7
src/lib/extern/kwin.d.ts
vendored
@@ -1,8 +1,11 @@
|
||||
declare const KWin: {
|
||||
declare const KWin: KWin;
|
||||
declare const Workspace: Workspace;
|
||||
|
||||
type KWin = {
|
||||
readConfig(key: string, defaultValue: any): any;
|
||||
};
|
||||
|
||||
declare const Workspace: {
|
||||
type Workspace = {
|
||||
readonly activities: string[];
|
||||
readonly desktops: KwinDesktop[];
|
||||
readonly currentDesktop: KwinDesktop;
|
||||
|
||||
11
src/lib/extern/qt.d.ts
vendored
11
src/lib/extern/qt.d.ts
vendored
@@ -1,13 +1,16 @@
|
||||
declare const console: {
|
||||
declare const console: Console;
|
||||
declare const Qt: Qt;
|
||||
|
||||
type Console = {
|
||||
log(...args: any[]): void;
|
||||
trace(): void;
|
||||
assert(boolean, string?): void;
|
||||
};
|
||||
}
|
||||
|
||||
declare const Qt: {
|
||||
type Qt = {
|
||||
rect(x: number, y: number, width: number, height: number): QmlRect;
|
||||
createQmlObject(qml: string, parent: QmlObject): QmlObject;
|
||||
};
|
||||
}
|
||||
|
||||
type QmlObject = unknown;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user