Skip to content
PACKAGES

hasKvPutIfAbsent()

Runtime guard for typed KV tiers that expose D85 conditional create.

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

A tier is PutIfAbsentKvStorageTier<T> value.

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

packages/ts/src/storage/kv.ts