split up extern.d.ts into multiple files

This commit is contained in:
Peter Fajdiga
2023-08-29 20:47:18 +02:00
parent 4904d075ae
commit b15bb85037
5 changed files with 20 additions and 16 deletions

View File

@@ -1,6 +1,6 @@
.PHONY: *
TSC_SCRIPT_FLAGS = --lib es2020 ./src/extern.d.ts
TSC_SCRIPT_FLAGS = --lib es2020 ./src/extern/qt.d.ts
config:
mkdir -p ./package/contents/config

15
src/extern.d.ts vendored
View File

@@ -1,15 +0,0 @@
declare const qmlBase;
declare const notificationInvalidWindowRules;
declare const console;
declare const KWin;
declare const Qt;
declare const workspace;
declare const options;
type AbstractClient = any;
type TopLevel = any;
type X11Client = any;
type Tile = any;
type QRect = any;
type QSignal = any;
type QQmlTimer = any;

6
src/extern/global.d.ts vendored Normal file
View File

@@ -0,0 +1,6 @@
declare const qmlBase;
declare const notificationInvalidWindowRules: Notification;
type Notification = {
sendEvent(): void;
}

7
src/extern/kwin.d.ts vendored Normal file
View File

@@ -0,0 +1,7 @@
declare const KWin;
declare const workspace;
type AbstractClient = any;
type TopLevel = any;
type X11Client = any;
type Tile = any;

6
src/extern/qt.d.ts vendored Normal file
View File

@@ -0,0 +1,6 @@
declare const console;
declare const Qt;
type QRect = any;
type QSignal = any;
type QQmlTimer = any;