2020-04-10 04:04:13 +02:00
|
|
|
/**
|
|
|
|
* An entity implementing this interface has a weight property.
|
|
|
|
*/
|
2021-01-06 02:35:46 +01:00
|
|
|
interface WeightedEntityInterface {
|
2020-04-10 04:04:13 +02:00
|
|
|
/**
|
|
|
|
* the weight, mathematically a number (0,1], practically between (0,Number.MAX_SAFE_INTEGER]
|
2020-08-18 00:29:49 +02:00
|
|
|
* the weight can also be not not defined, null in the database
|
2020-04-10 04:04:13 +02:00
|
|
|
*/
|
2020-08-18 00:29:49 +02:00
|
|
|
weight: number | null;
|
2020-04-10 04:04:13 +02:00
|
|
|
}
|