@iobroker/adapter-react-v5 4.4.5 → 4.4.7

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.
@@ -123,16 +123,22 @@ 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 | string[]} id The ioBroker state ID or array of states
129
+ * @param {ioBroker.StateChangeHandler} cb The callback.
130
+ */
131
+ subscribeStateAsync(id: string | string[], cb: ioBroker.StateChangeHandler): Promise<any>;
126
132
  /**
127
133
  * Unsubscribes all callbacks from changes of the given state.
128
- * @param {string} id The ioBroker state ID.
134
+ * @param {string | string[]} id The ioBroker state ID or array of states
129
135
  */
130
136
  /**
131
137
  * Unsubscribes the given callback from changes of the given state.
132
- * @param {string} id The ioBroker state ID.
138
+ * @param {string | string[]} id The ioBroker state ID or array of states
133
139
  * @param {ioBroker.StateChangeHandler} cb The callback.
134
140
  */
135
- unsubscribeState(id: string, cb: ioBroker.StateChangeHandler): void;
141
+ unsubscribeState(id: string | string[], cb: ioBroker.StateChangeHandler): void;
136
142
  /**
137
143
  * Subscribe to changes of the given object.
138
144
  * @param {string} id The ioBroker object ID.
@@ -161,7 +167,7 @@ declare class Connection {
161
167
  fileChange(id: any, fileName: any, size: any): void;
162
168
  /**
163
169
  * Subscribe to changes of the files.
164
- * @param {string} id The ioBroker state ID for meat object. Could be a pattern
170
+ * @param {string} id The ioBroker state ID for meta-object. Could be a pattern
165
171
  * @param {string} filePattern Pattern or file name, like 'main/*' or 'main/visViews.json`
166
172
  * @param {function} cb The callback.
167
173
  */