export type Id = string; export type Relation = Id | T; export interface User { id: Id; username: string; email: string; } export interface Project { id: Id; owner: Relation; name: string; public: boolean; } export interface Node { id: Id; project: Relation; type: string; x: number; y: number; collapsed: boolean; } export interface Link { id: Id; project: Relation; from: Relation; fromSocket: string; to: Relation; toSocket: string; }