summaryrefslogtreecommitdiff
path: root/lang/gjs/src/gtk4/widget.ts
diff options
context:
space:
mode:
Diffstat (limited to 'lang/gjs/src/gtk4/widget.ts')
-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>