Skip to content

v0.2.0

Choose a tag to compare

@JosephusPaye JosephusPaye released this 20 Mar 05:42
· 16 commits to main since this release
  • Added a new method nextTimestamp():
  /**
   * Get the timestamp to seek to such that all messages of the given types are stepped by (n) steps
   *
   * @param timestamp  The current timestamp to step from
   * @param type       The type or array of types to step. If unspecified, all types will be stepped.
   * @param steps      Number of steps to move forwards (positive number) or backwards (negative number).
   *                   If 0 or unspecified, returns min or max timestamp matching the given types.
   */
  public nextTimestamp(
    timestamp: number | BigInt | NbsTimestamp,
    type?: NbsTypeSubtype | NbsTypeSubtype[],
    steps?: number
  ): NbsTimestamp;