@iobroker/dm-utils 0.1.2 → 0.1.3
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/README.md +1 -1
- package/build/types/base.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -294,7 +294,7 @@ This method returns a promise that resolves to a `ProgressDialog` object.
|
|
|
294
294
|
### **WORK IN PROGRESS**
|
|
295
295
|
-->
|
|
296
296
|
## Changelog
|
|
297
|
-
### 0.1.
|
|
297
|
+
### 0.1.3 (2023-12-10)
|
|
298
298
|
* (bluefox) added some fields to DeviceInfo interface
|
|
299
299
|
* (bluefox) added control possibilities
|
|
300
300
|
|
package/build/types/base.d.ts
CHANGED
|
@@ -36,7 +36,7 @@ export interface ControlBase {
|
|
|
36
36
|
color?: Color;
|
|
37
37
|
}[];
|
|
38
38
|
}
|
|
39
|
-
export interface DeviceControl<T extends ActionType = "api"> extends
|
|
39
|
+
export interface DeviceControl<T extends ActionType = "api"> extends ControlBase {
|
|
40
40
|
handler?: T extends "api" ? never : (deviceId: string, actionId: string, state: ControlState, context: MessageContext) => RetVal<ErrorResponse | ioBroker.State>;
|
|
41
41
|
getStateHandler?: T extends "api" ? never : (deviceId: string, actionId: string, context: MessageContext) => RetVal<ErrorResponse | ioBroker.State>;
|
|
42
42
|
}
|