fix(storage): adapt timestamp guard to current Commonlib

Use the packaged Commonlib type import and add regression coverage for every Obsidian vault and storage write method. Verify that fractional timestamps are floored without mutating caller-owned options.
This commit is contained in:
vorotamoroz
2026-08-09 08:46:21 +00:00
parent 00de35e5d4
commit 21d904cfd6
3 changed files with 64 additions and 2 deletions
@@ -1,4 +1,4 @@
import type { UXDataWriteOptions } from "@lib/common/types";
import type { UXDataWriteOptions } from "@vrtmrz/livesync-commonlib/compat/common/types";
/**
* Coerce the timestamp fields of a write-options object to integer milliseconds.