2020-04-10 04:04:13 +02:00
|
|
|
/**
|
|
|
|
* Entities implementing this interface build a hierarchy.
|
|
|
|
*/
|
2021-01-24 19:11:45 +01:00
|
|
|
interface HierarchicalInterface<T> {
|
2020-04-10 04:04:13 +02:00
|
|
|
/**
|
|
|
|
* parent entities
|
|
|
|
*/
|
2021-01-24 19:11:45 +01:00
|
|
|
parents: Promise<T[]> | Identifier[];
|
2020-04-10 04:04:13 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* child entities
|
|
|
|
*/
|
2021-01-24 19:11:45 +01:00
|
|
|
children: Promise<T[]> | Identifier[];
|
2020-04-10 04:04:13 +02:00
|
|
|
}
|