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/utils/types.ts | |
| 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/utils/types.ts')
| -rw-r--r-- | src/utils/types.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/utils/types.ts b/src/utils/types.ts index 9a44e51..d2c1943 100644 --- a/src/utils/types.ts +++ b/src/utils/types.ts @@ -1,5 +1,8 @@ +import type { astalify } from "astal/gtk3"; import type AstalHyprland from "gi://AstalHyprland"; +export type AstalWidget = InstanceType<ReturnType<typeof astalify>>; + export type Address = `0x${string}`; export interface Client { |