Skip to content

Commit

Permalink
Update type defs
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Hotze <[email protected]>
  • Loading branch information
florian-h05 committed Jun 6, 2024
1 parent d211b36 commit 0bd4934
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions types/items/item-persistence.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ declare class ItemPersistence {
constructor(rawItem: any);
rawItem: any;
/**
* Persists the state of a given Item.
* Persists a state of a given Item.
*
* There are four ways to use this method:
* ```js
Expand All @@ -38,10 +38,10 @@ declare class ItemPersistence {
* ```
*
* @param {(time.ZonedDateTime | Date)} [timestamp] the date for the item state to be stored
* @param {string} [state] the state to be stored
* @param {string|number|time.ZonedDateTime|Quantity|HostState} [state] the state to be stored
* @param {string} [serviceId] optional persistence service ID, if omitted, the default persistence service will be used
*/
persist(timestamp?: (time.ZonedDateTime | Date), state?: string, serviceId?: string, ...args: any[]): void;
persist(timestamp?: (time.ZonedDateTime | Date), state?: string | number | time.ZonedDateTime | Quantity | HostState, serviceId?: string, ...args: any[]): void;
/**
* Retrieves the persisted state for a given Item at a certain point in time.
*
Expand Down Expand Up @@ -477,6 +477,7 @@ declare namespace time {
type ZonedDateTime = import('@js-joda/core').ZonedDateTime;
}
import time = require("../time");
type Quantity = import('../quantity').Quantity;
/**
* Class representing an instance of {@link https://www.openhab.org/javadoc/latest/org/openhab/core/persistence/historicitem org.openhab.core.persistence.HistoricItem}.
* Extends {@link items.PersistedState}.
Expand Down Expand Up @@ -520,5 +521,4 @@ declare class PersistedState {
get quantityState(): import("../quantity").Quantity;
#private;
}
type Quantity = import('../quantity').Quantity;
//# sourceMappingURL=item-persistence.d.ts.map
2 changes: 1 addition & 1 deletion types/items/item-persistence.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0bd4934

Please sign in to comment.