RenaiApp/src/main/entities/library/i-hierachical-entity.d.ts

15 lines
228 B
TypeScript

/**
* Entities implementing this interface build a hierarchy.
*/
declare interface IHierachicalEntity<T> {
/**
* parent entities
*/
parents: Promise<T[]>;
/**
* child entities
*/
children: Promise<T[]>;
}