graycoreio/daffodil

View on GitHub
libs/design/tree/src/interfaces/tree-ui.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { DaffTreeData } from './tree-data';

/**
 * A DaffTreeUi is the internal data structure used during tree rendering.
 *
 * This is an internal implementation detail type that.
 */
export interface DaffTreeUi<T> extends DaffTreeData<T> {
  open: boolean;
  items: DaffTreeUi<T>[];
  parent: DaffTreeUi<T>;
}