summaryrefslogtreecommitdiff
path: root/gjs/src/widgets.ts
diff options
context:
space:
mode:
authorAylur <[email protected]>2024-05-29 21:36:40 +0200
committerAylur <[email protected]>2024-05-29 21:36:40 +0200
commit776fc8093272ad29c20dfbcf8b7dfedfbc9bb2aa (patch)
tree2afb073fa8f13180b6fdd8d77c95e668c6431507 /gjs/src/widgets.ts
parente5868a2514d8f2c28a9294d336c8ccd50e34be43 (diff)
improve ts types
Diffstat (limited to 'gjs/src/widgets.ts')
-rw-r--r--gjs/src/widgets.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/gjs/src/widgets.ts b/gjs/src/widgets.ts
index ca71df1..e8adf65 100644
--- a/gjs/src/widgets.ts
+++ b/gjs/src/widgets.ts
@@ -1,8 +1,8 @@
/* eslint-disable max-len */
import { Astal, Gtk } from "./imports.js"
-import astalify, { type ConstructProps, type Widget } from "./astalify.js"
+import astalify, { type ConstructProps } from "./astalify.js"
-export { astalify }
+export { astalify, ConstructProps }
// Label
export const Label = astalify<typeof Gtk.Label, LabelProps, "Label">(Gtk.Label)
@@ -15,7 +15,7 @@ export type IconProps = ConstructProps<typeof Astal.Icon, Astal.Icon.Constructor
// Button
export const Button = astalify<typeof Astal.Button, ButtonProps, "Button">(Astal.Button)
export type ButtonProps = ConstructProps<typeof Astal.Button, Astal.Button.ConstructorProperties, {
- onClicked: (self: Widget<typeof Astal.Button>) => void
+ onClicked: []
}>
// Window