API reference › @evolu/common › local‑first/Storage › extendTimestampBounds

function extendTimestampBounds(
  timestamp: Uint8Array<ArrayBufferLike> &
    Brand<"Length16"> &
    Brand<"TimestampBytes">,
  firstTimestamp: Uint8Array<ArrayBufferLike> &
    Brand<"Length16"> &
    Brand<"TimestampBytes">,
  lastTimestamp: Uint8Array<ArrayBufferLike> &
    Brand<"Length16"> &
    Brand<"TimestampBytes">,
): [
  firstTimestamp: Uint8Array<ArrayBufferLike> &
    Brand<"Length16"> &
    Brand<"TimestampBytes">,
  lastTimestamp: Uint8Array<ArrayBufferLike> &
    Brand<"Length16"> &
    Brand<"TimestampBytes">,
];

Defined in: packages/common/src/local-first/Storage.ts:816

Returns an owner's first and last timestamps with timestamp among them, as updateOwnerUsage stores them.

Nothing in this release reads them, but earlier releases choose how to insert a timestamp from them, and a database this release wrote can be opened by an earlier release, such as an old tab after a deploy. Drop them with the next schema migration.