summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAylur <[email protected]>2024-12-21 00:25:04 +0100
committerAylur <[email protected]>2024-12-21 00:25:04 +0100
commit27544705dfe77b50f919a166f06d5b96560dd2fd (patch)
treeb7f38e995515dd7212045c939d84dd893965f23f
parented23ce29a8db636da1a89501c2103b62070de655 (diff)
fix types
-rw-r--r--lang/gjs/src/gtk4/widget.ts8
1 files changed, 5 insertions, 3 deletions
diff --git a/lang/gjs/src/gtk4/widget.ts b/lang/gjs/src/gtk4/widget.ts
index 10d4b9f..bd9091b 100644
--- a/lang/gjs/src/gtk4/widget.ts
+++ b/lang/gjs/src/gtk4/widget.ts
@@ -21,10 +21,12 @@ export const Box = astalify<Astal.Box, Astal.Box.ConstructorProps>(Astal.Box, {
})
// Button
-export type ButtonProps = ConstructProps<Gtk.Button, Gtk.Button.ConstructorProps, {
+type ButtonSignals = {
onClicked: []
-}>
-export const Button = astalify<Gtk.Button, Gtk.Button.ConstructorProps>(Gtk.Button)
+}
+
+export type ButtonProps = ConstructProps<Gtk.Button, Gtk.Button.ConstructorProps, ButtonSignals>
+export const Button = astalify<Gtk.Button, Gtk.Button.ConstructorProps, ButtonSignals>(Gtk.Button)
// CenterBox
export type CenterBoxProps = ConstructProps<Gtk.CenterBox, Gtk.CenterBox.ConstructorProps>