summaryrefslogtreecommitdiff
path: root/cli/tsc/dts/lib.deno.unstable.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tsc/dts/lib.deno.unstable.d.ts')
-rw-r--r--cli/tsc/dts/lib.deno.unstable.d.ts16
1 files changed, 15 insertions, 1 deletions
diff --git a/cli/tsc/dts/lib.deno.unstable.d.ts b/cli/tsc/dts/lib.deno.unstable.d.ts
index 7778870e1..f1c239ed2 100644
--- a/cli/tsc/dts/lib.deno.unstable.d.ts
+++ b/cli/tsc/dts/lib.deno.unstable.d.ts
@@ -1488,7 +1488,13 @@ declare namespace Deno {
*
* @category KV
*/
- export type KvKeyPart = Uint8Array | string | number | bigint | boolean;
+ export type KvKeyPart =
+ | Uint8Array
+ | string
+ | number
+ | bigint
+ | boolean
+ | symbol;
/** **UNSTABLE**: New API, yet to be vetted.
*
@@ -2099,6 +2105,14 @@ declare namespace Deno {
*/
close(): void;
+ /**
+ * Get a symbol that represents the versionstamp of the current atomic
+ * operation. This symbol can be used as the last part of a key in
+ * `.set()`, both directly on the `Kv` object and on an `AtomicOperation`
+ * object created from this `Kv` instance.
+ */
+ commitVersionstamp(): symbol;
+
[Symbol.dispose](): void;
}