Skip to content
PACKAGES

requireStoragePutIfAbsent()

Require D85 conditional-create support and produce a clear adapter error when absent.

import { requireStoragePutIfAbsent } from "@graphrefly/ts/storage";
function requireStoragePutIfAbsent(
backend: StorageBackend,
label = "storage backend",
): PutIfAbsentStorageBackend
ParameterTypeDescription
backendStorageBackendbackend value used by the helper.
labelunknownlabel value used by the helper.

A PutIfAbsentStorageBackend value.

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

packages/ts/src/storage/backend.ts