We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A vscode to recognise state on PersistemItem instance
state
This seems to have been introduced as a result of this change - PersistedItem no longer extends PersistedState in the type definitions.
1d6bbb4#diff-aca6c6b1ce0defe142e0b6183c946e9ba2d064b1b8196a0d8208e724aa910673L544
Switching Extends {@link items.PersistedState}. to Extends {@link PersistedState}. in https://github.com/openhab/openhab-js/blob/v5.7.2/src/items/item-persistence.js#L80 resolves this for me.
Extends {@link items.PersistedState}.
Extends {@link PersistedState}.
const previousLatLon = itemHistory.previousState(false, 'jdbc')?.state.toString()
I think this affects v5.8.0 too but I'm not using the milestone versions of 4.3 so I am on 5.7.2
console.log('openhab-js ' + utils.OPENHAB_JS_VERSION)
The text was updated successfully, but these errors were encountered:
Restore PersistedItem extending PersistedState in type defs openhab#398
873417a
Signed-off-by: Andy <[email protected]>
aaa5a80
Successfully merging a pull request may close this issue.
Expected Behavior
A vscode to recognise
state
on PersistemItem instanceCurrent Behavior
Possible Solution
This seems to have been introduced as a result of this change - PersistedItem no longer extends PersistedState in the type definitions.
1d6bbb4#diff-aca6c6b1ce0defe142e0b6183c946e9ba2d064b1b8196a0d8208e724aa910673L544
Switching
Extends {@link items.PersistedState}.
toExtends {@link PersistedState}.
in https://github.com/openhab/openhab-js/blob/v5.7.2/src/items/item-persistence.js#L80 resolves this for me.Steps to Reproduce (for Bugs)
const previousLatLon = itemHistory.previousState(false, 'jdbc')?.state.toString()
Context
I think this affects v5.8.0 too but I'm not using the milestone versions of 4.3 so I am on 5.7.2
Your Environment
console.log('openhab-js ' + utils.OPENHAB_JS_VERSION)
from a JS script):The text was updated successfully, but these errors were encountered: