import type Assignment from "./assignment"; import type Device from "./device"; import type { ScriptLine } from "./script"; import type Script from "./script"; export default interface UIState { devices: {[id: string]: Device} assignments: {[id: string]: Assignment} scripts: {[id: string]: ScriptLine[]} } export interface UIStatePatch { device: Partial & { id: string, delete?: boolean, addAlias?: string, removeAlias?: string } assignment: Partial & { id: string, delete?: boolean, addDeviceId?: string, removeDeviceId?: string } script: Partial