export type ApiVersion = "v1"; export type DeviceStatus = | "connected" | "disconnected" | { /** * This can either be the name of a font awesome icon (e.g. "fa-signal") or the URL to an icon. */ icon: string; description?: ioBroker.StringOrTranslated; }; export type DeviceRefresh = "device" | "instance" | false | true; export type RetVal = T | Promise; export type JsonFormSchema = Record; // TODO: make this better typed export type JsonFormData = Record; export interface DeviceDetails { id: string; schema: JsonFormSchema; data?: JsonFormData; }