summaryrefslogtreecommitdiff
path: root/gjs/src/index.ts
diff options
context:
space:
mode:
authorAylur <[email protected]>2024-05-25 14:44:50 +0200
committerAylur <[email protected]>2024-05-25 14:44:50 +0200
commit58fa1ab9be7ee8fd4a8e96865121a54d613978cc (patch)
tree56f01ba49fd2929690a16ac05a4af8f763e6b30b /gjs/src/index.ts
parenta7e25a4a5fcf4de89fe5a149a9aaf50a92be7af1 (diff)
separate node and gjs into its own package
Diffstat (limited to 'gjs/src/index.ts')
-rw-r--r--gjs/src/index.ts18
1 files changed, 18 insertions, 0 deletions
diff --git a/gjs/src/index.ts b/gjs/src/index.ts
new file mode 100644
index 0000000..2a5d235
--- /dev/null
+++ b/gjs/src/index.ts
@@ -0,0 +1,18 @@
+import Gtk from "gi://Gtk?version=3.0"
+import Astal from "gi://Astal?version=0.1"
+import GLib from "gi://GLib?version=2.0"
+import GObject from "gi://GObject?version=2.0"
+import Gio from "gi://Gio?version=2.0"
+
+export { subprocess, exec, execAsync } from "./process.js"
+export { interval, timeout, idle } from "./time.js"
+export { bind } from "./binding.js"
+export { Variable } from "./variable.js"
+export * as Widget from "./widgets.js"
+export { App } from "./application.js"
+
+// for convinience
+export { Astal, Gtk, GLib, GObject, Gio }
+
+// gjs crashes if a widget is constructed before Gtk.init
+Gtk.init(null)