diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-02-11 20:58:53 +1100 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-02-11 20:58:53 +1100 |
| commit | 0274360617a23daf81fb2baf85a1bfebe2b395e8 (patch) | |
| tree | deb120fa844e7aef9a06238b9a2884c32797016a /src/modules/bar.tsx | |
| parent | tooltip: position at cursor not widget (diff) | |
| download | caelestia-shell-0274360617a23daf81fb2baf85a1bfebe2b395e8.tar.gz caelestia-shell-0274360617a23daf81fb2baf85a1bfebe2b395e8.tar.bz2 caelestia-shell-0274360617a23daf81fb2baf85a1bfebe2b395e8.zip | |
refactor: astal widget type
There is no base type, but the return type of astalify works
Diffstat (limited to 'src/modules/bar.tsx')
| -rw-r--r-- | src/modules/bar.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/bar.tsx b/src/modules/bar.tsx index 16c505a..ae5cde9 100644 --- a/src/modules/bar.tsx +++ b/src/modules/bar.tsx @@ -4,6 +4,7 @@ import Updates from "@/services/updates"; import { getAppCategoryIcon } from "@/utils/icons"; import { ellipsize } from "@/utils/strings"; import { bindCurrentTime, osIcon } from "@/utils/system"; +import type { AstalWidget } from "@/utils/types"; import { setupCustomTooltip } from "@/utils/widgets"; import type PopupWindow from "@/widgets/popupwindow"; import { execAsync, register, Variable } from "astal"; @@ -20,7 +21,7 @@ import AstalWp01 from "gi://AstalWp"; const hyprland = AstalHyprland.get_default(); const hookFocusedClientProp = ( - self: any, // Ugh why is there no base Widget type + self: AstalWidget, prop: keyof AstalHyprland.Client, callback: (c: AstalHyprland.Client | null) => void ) => { |