diff options
author | Aylur <[email protected]> | 2024-05-29 21:36:40 +0200 |
---|---|---|
committer | Aylur <[email protected]> | 2024-05-29 21:36:40 +0200 |
commit | 776fc8093272ad29c20dfbcf8b7dfedfbc9bb2aa (patch) | |
tree | 2afb073fa8f13180b6fdd8d77c95e668c6431507 /node/src/widgets.ts | |
parent | e5868a2514d8f2c28a9294d336c8ccd50e34be43 (diff) |
improve ts types
Diffstat (limited to 'node/src/widgets.ts')
-rw-r--r-- | node/src/widgets.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/node/src/widgets.ts b/node/src/widgets.ts index 300cfab..2ce256a 100644 --- a/node/src/widgets.ts +++ b/node/src/widgets.ts @@ -1,10 +1,10 @@ /* 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" import type GtkT from "@girs/node-gtk-3.0/node-gtk-3.0" import type AstalT from "@girs/node-astal-0.1/node-astal-0.1" -export { astalify } +export { astalify, ConstructProps } // Label export const Label = astalify<typeof Gtk.Label, LabelProps, "Label">(Gtk.Label) @@ -17,7 +17,7 @@ export type IconProps = ConstructProps<typeof Astal.Icon, AstalT.Icon.Constructo // Button export const Button = astalify<typeof Astal.Button, ButtonProps, "Button">(Astal.Button) export type ButtonProps = ConstructProps<typeof Astal.Button, AstalT.Button.ConstructorProperties, { - onClicked: (self: Widget<typeof Astal.Button>) => void + onClicked: [] }> // Window |