diff options
author | Aylur <[email protected]> | 2024-12-21 00:25:04 +0100 |
---|---|---|
committer | Aylur <[email protected]> | 2024-12-21 00:25:04 +0100 |
commit | 27544705dfe77b50f919a166f06d5b96560dd2fd (patch) | |
tree | b7f38e995515dd7212045c939d84dd893965f23f | |
parent | ed23ce29a8db636da1a89501c2103b62070de655 (diff) |
fix types
-rw-r--r-- | lang/gjs/src/gtk4/widget.ts | 8 |
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> |