Skip to content

Commit

Permalink
Restore PersistedItem extending PersistedState in type defs #398
Browse files Browse the repository at this point in the history
Signed-off-by: Andy <[email protected]>
  • Loading branch information
Andy committed Nov 10, 2024
1 parent 90313a3 commit 873417a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/items/item-persistence.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class PersistedState {
/**
* Class representing an instance of {@link https://www.openhab.org/javadoc/latest/org/openhab/core/persistence/historicitem org.openhab.core.persistence.HistoricItem}.
*
* @extends items.PersistedState
* @extends PersistedState
* @memberof items
* @hideconstructor
*/
Expand Down
11 changes: 2 additions & 9 deletions types/items/item-persistence.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -538,17 +538,11 @@ declare const TimeSeries: any;
/**
* Class representing an instance of {@link https://www.openhab.org/javadoc/latest/org/openhab/core/persistence/historicitem org.openhab.core.persistence.HistoricItem}.
*
* @extends items.PersistedState
* @extends PersistedState
* @memberof items
* @hideconstructor
*/
declare class PersistedItem {
/**
* Create an PersistedItem, wrapping a native openHAB HistoricItem.
* @param {*} rawHistoricItem {@link https://www.openhab.org/javadoc/latest/org/openhab/core/persistence/historicitem org.openhab.core.persistence.HistoricItem}
* @hideconstructor
*/
constructor(rawHistoricItem: any);
declare class PersistedItem extends PersistedState {
rawHistoricItem: any;
/**
* Timestamp of persisted Item.
Expand All @@ -562,7 +556,6 @@ declare class PersistedItem {
* @returns {time.Instant}
*/
get instant(): JSJoda.Instant;
toString(): string;
}
/**
* @typedef {import('@js-joda/core').ZonedDateTime} time.ZonedDateTime
Expand Down
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 873417a

Please sign in to comment.