better naming
This commit is contained in:
18
dist/homepage.d.ts
vendored
18
dist/homepage.d.ts
vendored
@@ -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
|
||||
Reference in New Issue
Block a user