From 2184103a5ec7d7ae6fcfe2ecb79ad481498f5f8d Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Sat, 15 Apr 2023 10:33:31 +0200 Subject: feat(kv): AtomicOperation#sum (#18704) --- cli/tsc/dts/lib.deno.unstable.d.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cli/tsc') diff --git a/cli/tsc/dts/lib.deno.unstable.d.ts b/cli/tsc/dts/lib.deno.unstable.d.ts index 4bc0fed45..9c4bd5d2c 100644 --- a/cli/tsc/dts/lib.deno.unstable.d.ts +++ b/cli/tsc/dts/lib.deno.unstable.d.ts @@ -1839,6 +1839,10 @@ declare namespace Deno { * for {@linkcode Deno.KvMutation}. */ mutate(...mutations: KvMutation[]): this; + /** + * Shortcut for creating a sum mutation. + */ + sum(key: KvKey, n: bigint): this; /** * Add to the operation a mutation that sets the value of the specified key * to the specified value if all checks pass during the commit. -- cgit v1.2.3