Skip to content

Home > resol-vbus-core > TimestampIntervalConstructorOptions

TimestampIntervalConstructorOptions interface

The options passed to the constructor of TimestampInterval.

Signature:

typescript
export interface TimestampIntervalConstructorOptions

Properties

Property

Modifiers

Type

Description

interval?

number

(Optional) The interval in milliseconds.

onInterval?

(timestamp: Date) => void

(Optional) The callback to be called when an interval has passed.

timestamp?

Date

(Optional) The initial timestamp.