hasStoragePutIfAbsent()
Runtime guard for D85 conditional-create capable byte backends.
Import
Section titled “Import”import { hasStoragePutIfAbsent } from "@graphrefly/ts/storage";Signature
Section titled “Signature”function hasStoragePutIfAbsent(backend: StorageBackend): backend is PutIfAbsentStorageBackendParameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
backend | StorageBackend | backend value used by the helper. |
Returns
Section titled “Returns”A backend is PutIfAbsentStorageBackend value.
Example
Section titled “Example”import { hasStoragePutIfAbsent } from "@graphrefly/ts/storage";Source
Section titled “Source”packages/ts/src/storage/backend.ts