import { FatClassModel } from '../../diagram/elements' ; export interface TreeNode { model : FatClassModel ; label : string ; derived : ReadonlyArray < TreeNode > ; } export const TreeNode = { setDerived : ( node , derived ) : TreeNode => ( { ... node , derived } ) , } ;