src/store/state.ts
import { StateService } from 'angular-ui-router'
import { IGraph, INode, NodeId } from '../core/interfaces'
export interface IUser {
login: string,
avatarUrl: string,
token: string
}
export interface IState {
source: string
parseError: string | null
graph: IGraph | null
zoomNodeId: NodeId | null
zoomableNodes: INode[],
dot?: string,
svg?: string,
// TODO: just keep a ((id:NodeId) => Uri) method in state?
$state?: StateService,
// TODO: drop this and just use `window`
$window?: Window,
user?: IUser,
isPreview: boolean
}