feat(waybar): implement all dummy widgets

This commit is contained in:
2024-07-31 15:13:53 +02:00
parent 458addfc83
commit 515db924d0
28 changed files with 396 additions and 84 deletions

View File

@@ -6,3 +6,12 @@ export type Prettify<T> = NonNullable<{ [K in keyof T]: T[K] }>;
export type InnerKittyProps<T extends (...args: any[]) => any> = Prettify<
Parameters<T>[0] & KittyContextProps
>;
export type State<
Name extends string,
T,
> = Name extends `${infer First}${infer Rest}`
? {
[K in Name]: T;
} & { [K in `set${Capitalize<First>}${Rest}`]: (value: T) => void }
: never;