Skip to content

Commit 5f78a9c

Browse files
committed
Update types
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
1 parent 5a999c8 commit 5f78a9c

4 files changed

Lines changed: 23 additions & 33 deletions

File tree

types/items/itemchannellink.d.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,25 +26,41 @@ export type Item = {
2626
rawMetadata: any;
2727
readonly value: string;
2828
readonly configuration: any;
29+
/**
30+
* The name of the linked Item.
31+
* @type {string}
32+
*/
2933
toString(): any;
3034
} | {
3135
namespace: {
3236
rawMetadata: any;
3337
readonly value: string;
3438
readonly configuration: any;
39+
/**
40+
* The name of the linked Item.
41+
* @type {string}
42+
*/
3543
toString(): any;
3644
};
3745
};
3846
replaceMetadata(namespace: string, value: string, configuration?: any): {
3947
rawMetadata: any;
4048
readonly value: string;
4149
readonly configuration: any;
50+
/**
51+
* The name of the linked Item.
52+
* @type {string}
53+
*/
4254
toString(): any;
4355
};
4456
removeMetadata(namespace?: string): {
4557
rawMetadata: any;
4658
readonly value: string;
4759
readonly configuration: any;
60+
/**
61+
* The name of the linked Item.
62+
* @type {string}
63+
*/
4864
toString(): any;
4965
};
5066
sendCommand(value: any, expire?: JSJoda.Duration, onExpire?: any): void;

types/items/itemchannellink.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

types/rules/trigger-builder.d.ts

Lines changed: 5 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,14 @@ export type Item = {
33
persistence: import("../items/item-persistence");
44
semantics: import("../items/item-semantics");
55
readonly type: string;
6-
/** @private */
76
readonly groupType: string;
87
readonly name: string;
98
readonly label: string;
109
readonly state: string;
1110
readonly numericState: number;
1211
readonly quantityState: import("../quantity").Quantity;
1312
readonly boolState: boolean;
14-
readonly rawState: HostState; /**
15-
* Item state changed from
16-
*
17-
* @param {string} value
18-
* @returns {ItemTriggerConfig}
19-
*/
13+
readonly rawState: HostState;
2014
readonly previousState: string;
2115
readonly previousNumericState: number;
2216
readonly previousQuantityState: import("../quantity").Quantity;
@@ -32,46 +26,26 @@ export type Item = {
3226
rawMetadata: any;
3327
readonly value: string;
3428
readonly configuration: any;
35-
toString(): any; /**
36-
* Specifies a time schedule for the rule to fire.
37-
*
38-
* @param {string} time the time expression (in `HH:mm`) defining the triggering schedule
39-
* @returns {TimeOfDayTriggerConfig} the trigger config
40-
*/
29+
toString(): any;
4130
} | {
4231
namespace: {
4332
rawMetadata: any;
4433
readonly value: string;
4534
readonly configuration: any;
46-
toString(): any; /**
47-
* Specifies a time schedule for the rule to fire.
48-
*
49-
* @param {string} time the time expression (in `HH:mm`) defining the triggering schedule
50-
* @returns {TimeOfDayTriggerConfig} the trigger config
51-
*/
35+
toString(): any;
5236
};
5337
};
5438
replaceMetadata(namespace: string, value: string, configuration?: any): {
5539
rawMetadata: any;
5640
readonly value: string;
5741
readonly configuration: any;
58-
toString(): any; /**
59-
* Specifies a time schedule for the rule to fire.
60-
*
61-
* @param {string} time the time expression (in `HH:mm`) defining the triggering schedule
62-
* @returns {TimeOfDayTriggerConfig} the trigger config
63-
*/
42+
toString(): any;
6443
};
6544
removeMetadata(namespace?: string): {
6645
rawMetadata: any;
6746
readonly value: string;
6847
readonly configuration: any;
69-
toString(): any; /**
70-
* Specifies a time schedule for the rule to fire.
71-
*
72-
* @param {string} time the time expression (in `HH:mm`) defining the triggering schedule
73-
* @returns {TimeOfDayTriggerConfig} the trigger config
74-
*/
48+
toString(): any;
7549
};
7650
sendCommand(value: any, expire?: JSJoda.Duration, onExpire?: any): void;
7751
sendCommandIfDifferent(value: any): boolean;

types/rules/trigger-builder.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)