hasKvPutIfAbsent()
Runtime guard for typed KV tiers that expose D85 conditional create.
Import
Section titled “Import”import { hasKvPutIfAbsent } from "@graphrefly/ts/storage";Signature
Section titled “Signature”function hasKvPutIfAbsent(tier: KvStorageTier<T>): tier is PutIfAbsentKvStorageTier<T>Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
tier | KvStorageTier<T> | tier value used by the helper. |
Returns
Section titled “Returns”A tier is PutIfAbsentKvStorageTier<T> value.
Example
Section titled “Example”import { hasKvPutIfAbsent } from "@graphrefly/ts/storage";Source
Section titled “Source”packages/ts/src/storage/kv.ts