GraphReFlyTS

API Reference

hasStoragePutIfAbsent()

Runtime guard for D85 conditional-create capable byte backends.

Import

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

Signature

function hasStoragePutIfAbsent(backend: StorageBackend): backend is PutIfAbsentStorageBackend

Parameters

ParameterTypeDescription
backendStorageBackendbackend value used by the helper.

Returns

A backend is PutIfAbsentStorageBackend value.

Example

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

Source

packages/ts/src/storage/backend.ts