better naming

This commit is contained in:
Darius
2026-02-09 19:46:33 +01:00
parent e3fbe3b178
commit b305c2ab66
12 changed files with 63 additions and 56 deletions

18
dist/homepage.d.ts vendored
View File

@@ -1,25 +1,11 @@
import type { GristRecord_PersonalGoals } from "./grist";
import type { API_HA_DeskPosition } from "./homeassistant";
import type { StatusComponentName } from "./status";
import type { TidalGetCurrent } from "./tidal";
export declare const HomepageComponent: {
readonly HA_DESK_POSITION: "ha_desk_position";
readonly HA_TEMP: "ha_temp";
readonly TIDAL_CURRENT: "tidal_current";
readonly GRIST_PERSONAL_GOALS: "grist_personal_goals";
};
export type HomepageComponentName = (typeof HomepageComponent)[keyof typeof HomepageComponent];
export type FullInformation = Record<HomepageComponentName, unknown> & {
export type FullInformation = Record<StatusComponentName, unknown> & {
ha_desk_position: API_HA_DeskPosition | null;
ha_temp: string | null;
tidal_current: TidalGetCurrent | null;
grist_personal_goals: GristRecord_PersonalGoals | null;
};
export type ComponentUpdate = {
component: HomepageComponentName;
data: unknown;
};
export declare function createComponentUpdate(component: HomepageComponentName, data: unknown): {
component: HomepageComponentName;
data: unknown;
};
//# sourceMappingURL=homepage.d.ts.map