diff options
author | Heyang Zhou <zhy20000919@hotmail.com> | 2023-12-14 00:58:20 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-14 00:58:20 +0800 |
commit | 10ab8c1ef1ccc93bd810c5636e2a70bb7c37e91e (patch) | |
tree | 889605d974ed6d06ee74a44c624e7a1d7c986559 /cli/tsc | |
parent | 76a6ea57753be420398d3eba8f313a6c98eab8c3 (diff) |
feat(unstable): append commit versionstamp to key (#21556)
Diffstat (limited to 'cli/tsc')
-rw-r--r-- | cli/tsc/dts/lib.deno.unstable.d.ts | 16 |
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; } |