16 lines
394 B
TypeScript
16 lines
394 B
TypeScript
/**
|
|
* This entity orders works in a collection.
|
|
* The main use case is chronological ordering.
|
|
*/
|
|
interface CollectionPartInterface extends IdentifiableInterface, OrderableInterface {
|
|
/**
|
|
* the collection thw work is a part of
|
|
*/
|
|
collection: Promise<CollectionInterface> | Identifier;
|
|
|
|
/**
|
|
* the work inside the collection
|
|
*/
|
|
work: Promise<WorkInterface> | Identifier;
|
|
}
|