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