diff --git a/Makefile b/Makefile index ec8354c..3363fc7 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/src/extern.d.ts b/src/extern.d.ts deleted file mode 100644 index 3a027b3..0000000 --- a/src/extern.d.ts +++ /dev/null @@ -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; diff --git a/src/extern/global.d.ts b/src/extern/global.d.ts new file mode 100644 index 0000000..25aede2 --- /dev/null +++ b/src/extern/global.d.ts @@ -0,0 +1,6 @@ +declare const qmlBase; +declare const notificationInvalidWindowRules: Notification; + +type Notification = { + sendEvent(): void; +} diff --git a/src/extern/kwin.d.ts b/src/extern/kwin.d.ts new file mode 100644 index 0000000..b7f888e --- /dev/null +++ b/src/extern/kwin.d.ts @@ -0,0 +1,7 @@ +declare const KWin; +declare const workspace; + +type AbstractClient = any; +type TopLevel = any; +type X11Client = any; +type Tile = any; diff --git a/src/extern/qt.d.ts b/src/extern/qt.d.ts new file mode 100644 index 0000000..73c9c16 --- /dev/null +++ b/src/extern/qt.d.ts @@ -0,0 +1,6 @@ +declare const console; +declare const Qt; + +type QRect = any; +type QSignal = any; +type QQmlTimer = any;