@@ -240,19 +240,19 @@ export class Item {
240
240
/**
241
241
* Sends a command to the Item.
242
242
*
243
- * @param {string|number|time.ZonedDateTime|Quantity|HostState } value the value of the command to send, such as 'ON'
243
+ * @param {string|number|time.ZonedDateTime|time.Instant| Quantity|HostState } value the value of the command to send, such as 'ON'
244
244
* @see sendCommandIfDifferent
245
245
* @see postUpdate
246
246
*/
247
- sendCommand ( value : string | number | time . ZonedDateTime | Quantity | HostState ) : void ;
247
+ sendCommand ( value : string | number | time . ZonedDateTime | time . Instant | Quantity | HostState ) : void ;
248
248
/**
249
249
* Sends a command to the Item, but only if the current state is not what is being sent.
250
250
*
251
- * @param {string|number|time.ZonedDateTime|Quantity|HostState } value the value of the command to send, such as 'ON'
251
+ * @param {string|number|time.ZonedDateTime|time.Instant| Quantity|HostState } value the value of the command to send, such as 'ON'
252
252
* @returns {boolean } true if the command was sent, false otherwise
253
253
* @see sendCommand
254
254
*/
255
- sendCommandIfDifferent ( value : string | number | time . ZonedDateTime | Quantity | HostState ) : boolean ;
255
+ sendCommandIfDifferent ( value : string | number | time . ZonedDateTime | time . Instant | Quantity | HostState ) : boolean ;
256
256
/**
257
257
* Increase the value of this Item to the given value by sending a command, but only if the current state is less than that value.
258
258
*
@@ -290,11 +290,11 @@ export class Item {
290
290
/**
291
291
* Posts an update to the Item.
292
292
*
293
- * @param {string|number|time.ZonedDateTime|Quantity|HostState } value the value of the command to send, such as 'ON'
293
+ * @param {string|number|time.ZonedDateTime|time.Instant| Quantity|HostState } value the value of the command to send, such as 'ON'
294
294
* @see postToggleUpdate
295
295
* @see sendCommand
296
296
*/
297
- postUpdate ( value : string | number | time . ZonedDateTime | Quantity | HostState ) : void ;
297
+ postUpdate ( value : string | number | time . ZonedDateTime | time . Instant | Quantity | HostState ) : void ;
298
298
/**
299
299
* Gets the names of the groups this Item is member of.
300
300
* @returns {string[] }
@@ -333,6 +333,7 @@ import ItemPersistence = require("./item-persistence");
333
333
import ItemSemantics = require( "./item-semantics" ) ;
334
334
declare namespace time {
335
335
type ZonedDateTime = import ( '@js-joda/core' ) . ZonedDateTime ;
336
+ type Instant = import ( '@js-joda/core' ) . Instant ;
336
337
}
337
338
export { metadata , TimeSeries } ;
338
339
//# sourceMappingURL=items.d.ts.map
0 commit comments