add homepage information type

This commit is contained in:
Darius
2026-02-05 00:26:47 +01:00
parent 3b7ef0f3ee
commit 12fc98c925
11 changed files with 29 additions and 8 deletions

8
src/homepage.ts Normal file
View File

@@ -0,0 +1,8 @@
import { API_HA_DeskPosition } from "./homeassistant";
import { TidalGetCurrent } from "./tidal";
export type FullInformation = {
ha_desk_position: API_HA_DeskPosition;
ha_temp: string;
tidal_current: TidalGetCurrent;
}

View File

@@ -1,5 +1,6 @@
export * from "./fastify.js";
export * from "./homeassistant.js";
export * from "./homepage.js";
export * from "./logger.js";
export * from "./sse.js";
export * from "./tidal.js";

View File

@@ -1,11 +1,11 @@
import { logInfo } from "./logger";
export interface SseClient {
export type SseClient = {
id: number;
send: (data: SseEvent) => void;
}
export interface SseEvent {
export type SseEvent = {
type: string;
data?: unknown;
message?: string;