Skip to content
PACKAGES

hasKvVersioned()

Runtime guard for typed KV tiers that expose D108 versioned read/set-if-match.

import { hasKvVersioned } from "@graphrefly/ts/storage";
function hasKvVersioned(tier: KvStorageTier<T>): tier is VersionedKvStorageTier<T>
ParameterTypeDescription
tierKvStorageTier<T>tier value used by the helper.

A tier is VersionedKvStorageTier<T> value.

import { hasKvVersioned } from "@graphrefly/ts/storage";

packages/ts/src/storage/kv.ts