Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deno/cli/tsc/dts/lib.deno.unstable.d.ts>Deno.AtomicCheck

A modern runtime for JavaScript and TypeScript.
Latest
interface Deno.AtomicCheck
import { type Deno } from "https://deno.land/x/deno@v1.41.0/cli/tsc/dts/lib.deno.unstable.d.ts";
const { AtomicCheck } = Deno;

UNSTABLE: New API, yet to be vetted.

A check to perform as part of a Deno.AtomicOperation. The check will fail if the versionstamp for the key-value pair in the KV store does not match the given versionstamp. A check with a null versionstamp checks that the key-value pair does not currently exist in the KV store.

Properties

key: KvKey
versionstamp: string | null