add homepage information type
This commit is contained in:
8
src/homepage.ts
Normal file
8
src/homepage.ts
Normal 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;
|
||||
}
|
||||
@@ -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";
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user