summaryrefslogtreecommitdiff
path: root/gjs
diff options
context:
space:
mode:
authorAylur <[email protected]>2024-07-15 14:54:06 +0200
committerAylur <[email protected]>2024-07-15 14:54:06 +0200
commit68b58c94094ebbb44e75be82ece77badaa0cd68f (patch)
treeaa6179cd25fcaeceb7d94c16b9a9641e359ec16e /gjs
parent1a3b14def2b72e03e3b336937113c6410cce0acd (diff)
install gjs package to pkgdatadir
this is needed for ags v2 so that it can setup a ts environment similar to the current --init flag
Diffstat (limited to 'gjs')
-rw-r--r--gjs/index.ts7
-rw-r--r--gjs/tsconfig.json8
2 files changed, 12 insertions, 3 deletions
diff --git a/gjs/index.ts b/gjs/index.ts
index 901b264..f5c35a6 100644
--- a/gjs/index.ts
+++ b/gjs/index.ts
@@ -1,5 +1,12 @@
import { Gtk } from "./src/imports.js"
+declare global {
+ const console: {
+ error(...args: any[]): void
+ log(...args: any[]): void
+ }
+}
+
export * from "./src/imports.js"
export * from "./src/process.js"
export * from "./src/time.js"
diff --git a/gjs/tsconfig.json b/gjs/tsconfig.json
index a259dd9..25c0fdb 100644
--- a/gjs/tsconfig.json
+++ b/gjs/tsconfig.json
@@ -13,11 +13,13 @@
"checkJs": true,
"allowJs": true,
"jsx": "react-jsx",
- "jsxImportSource": "./src/jsx"
+ "jsxImportSource": "./src/jsx",
+ "typeRoots": [
+ "./node_modules/@girs"
+ ]
},
"include": [
- "./src",
+ "./src/**/*",
"./index.ts",
- "./node_modules/@girs"
]
}