Skip to main content
Deno 2 is finally here 🎉️
Learn more
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@v2.0.4/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