Skip to content

Commit

Permalink
JSDoc improvements
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Hotze <[email protected]>
  • Loading branch information
florian-h05 committed May 5, 2024
1 parent 3eba6df commit fbe9939
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/items/item-persistence.js
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ class ItemPersistence {
* @param {string} [serviceId] optional persistence service ID, if omitted, the default persistence service will be used
* @returns {(number | null)} the evolution rate in percent (positive and negative) between then and now, or <code>null</code>
* if there is no persisted state for the given Item at the given <code>timestamp</code>,
* or if there is a state but it is zero (which would cause a divide-by-zero error)
* or if there is a state, but it is zero (which would cause a divide-by-zero error)
*/
evolutionRateSince (timestamp, serviceId) {
return _decimalOrNull(PersistenceExtensions.evolutionRateSince(this.rawItem, ...arguments));
Expand All @@ -567,7 +567,7 @@ class ItemPersistence {
* @param {string} [serviceId] optional persistence service ID, if omitted, the default persistence service will be used
* @returns {(number | null)} the evolution rate in percent (positive and negative) between then and now, or <code>null</code>
* if there is no persisted state for the given Item at the given <code>timestamp</code>,
* or if there is a state but it is zero (which would cause a divide-by-zero error)
* or if there is a state, but it is zero (which would cause a divide-by-zero error)
*/
evolutionRateUntil (timestamp, serviceId) {
return _decimalOrNull(PersistenceExtensions.evolutionRateUntil(this.rawItem, ...arguments));
Expand All @@ -580,7 +580,7 @@ class ItemPersistence {
* @param {(time.ZonedDateTime | Date)} end the end point in time
* @param {string} [serviceId] optional persistence service ID, if omitted, the default persistence service will be used
* @returns {(number | null)} the evolution rate in percent (positive and negative) in the given interval, or <code>null</code>
* if there are no persisted states for the given Item at the given interval, or if there is a state #
* if there are no persisted states for the given Item at the given interval, or if there is a state,
* but it is zero (which would cause a divide-by-zero error)
*/
evolutionRateBetween (begin, end, serviceId) {
Expand Down

0 comments on commit fbe9939

Please sign in to comment.