API Reference
hasKvVersioned()
Runtime guard for typed KV tiers that expose D108 versioned read/set-if-match.
Import
import { hasKvVersioned } from "@graphrefly/ts/storage";
Signature
function hasKvVersioned(tier: KvStorageTier<T>): tier is VersionedKvStorageTier<T>
Parameters
| Parameter | Type | Description |
|---|---|---|
tier | KvStorageTier<T> | tier value used by the helper. |
Returns
A tier is VersionedKvStorageTier<T> value.
Example
import { hasKvVersioned } from "@graphrefly/ts/storage";
Source
packages/ts/src/storage/kv.ts