Skip to content
PACKAGES

hasStoragePutIfAbsent()

Runtime guard for D85 conditional-create capable byte backends.

import { hasStoragePutIfAbsent } from "@graphrefly/ts/storage";
function hasStoragePutIfAbsent(backend: StorageBackend): backend is PutIfAbsentStorageBackend
ParameterTypeDescription
backendStorageBackendbackend value used by the helper.

A backend is PutIfAbsentStorageBackend value.

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

packages/ts/src/storage/backend.ts