summaryrefslogtreecommitdiff
path: root/gjs
diff options
context:
space:
mode:
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"
]
}