@iobroker/adapter-react-v5 4.4.4 → 4.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Components/JsonConfigComponent/ConfigGeneric.js +27 -26
- package/Components/JsonConfigComponent/ConfigGeneric.js.map +1 -1
- package/Components/ObjectBrowser.js +2 -3
- package/Components/ObjectBrowser.js.map +1 -1
- package/LegacyConnection.d.ts +7 -1
- package/LegacyConnection.js +277 -227
- package/LegacyConnection.js.map +1 -1
- package/README.md +10 -1
- package/package.json +9 -9
package/LegacyConnection.d.ts
CHANGED
|
@@ -123,6 +123,12 @@ declare class Connection {
|
|
|
123
123
|
* @param {ioBroker.StateChangeHandler} cb The callback.
|
|
124
124
|
*/
|
|
125
125
|
subscribeState(id: string, binary: boolean, cb: ioBroker.StateChangeHandler): void;
|
|
126
|
+
/**
|
|
127
|
+
* Subscribe to changes of the given state.
|
|
128
|
+
* @param {string} id The ioBroker state ID.
|
|
129
|
+
* @param {ioBroker.StateChangeHandler} cb The callback.
|
|
130
|
+
*/
|
|
131
|
+
subscribeStateAsync(id: string, cb: ioBroker.StateChangeHandler): Promise<any>;
|
|
126
132
|
/**
|
|
127
133
|
* Unsubscribes all callbacks from changes of the given state.
|
|
128
134
|
* @param {string} id The ioBroker state ID.
|
|
@@ -822,7 +828,7 @@ declare class Connection {
|
|
|
822
828
|
* Unsubscribe from instance message
|
|
823
829
|
* @param {string} [targetInstance] instance, like 'cameras.0'
|
|
824
830
|
* @param {string} [messageType] message type like 'startCamera/cam3'
|
|
825
|
-
* @param {function} [callback] message handler
|
|
831
|
+
* @param {function} [callback] message handler. Could be null if all callbacks for this messageType should be unsubscribed
|
|
826
832
|
* @returns {Promise<boolean>}
|
|
827
833
|
*/
|
|
828
834
|
unsubscribeFromInstance(targetInstance?: string, messageType?: string, callback?: Function): Promise<boolean>;
|