diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2023-03-22 15:23:36 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-22 20:23:36 +0100 |
commit | f9c8d98b776083525a41f37ebfd86a4a4a288c43 (patch) | |
tree | fe96f0affd7c923ede54acd2b969e5c2e4089afd /cli/tsc | |
parent | 47aa58c72168055047151927946b81085e4ea4cd (diff) |
Revert "refactor: rename Deno.openKv() to Deno.kv() (#18349)" (#18362)
This reverts commit 50b793c9ed866ee29e8f04b4fa24b485b01a2b74.
Diffstat (limited to 'cli/tsc')
-rw-r--r-- | cli/tsc/dts/lib.deno.unstable.d.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cli/tsc/dts/lib.deno.unstable.d.ts b/cli/tsc/dts/lib.deno.unstable.d.ts index 0ea1f89ba..b042ceabe 100644 --- a/cli/tsc/dts/lib.deno.unstable.d.ts +++ b/cli/tsc/dts/lib.deno.unstable.d.ts @@ -1535,7 +1535,7 @@ declare namespace Deno { * @tags allow-read, allow-write * @category KV */ - export function kv(path?: string): Promise<Deno.Kv>; + export function openKv(path?: string): Promise<Deno.Kv>; /** **UNSTABLE**: New API, yet to be vetted. * @@ -1876,7 +1876,7 @@ declare namespace Deno { * the returned entry will have a `null` value and versionstamp. * * ```ts - * const db = await Deno.kv(); + * const db = await Deno.openKv(); * const result = await db.get(["foo"]); * result.key; // ["foo"] * result.value; // "bar" @@ -1902,7 +1902,7 @@ declare namespace Deno { * entry will have a `null` value and versionstamp. * * ```ts - * const db = await Deno.kv(); + * const db = await Deno.openKv(); * const result = await db.getMany([["foo"], ["baz"]]); * result[0].key; // ["foo"] * result[0].value; // "bar" @@ -1928,7 +1928,7 @@ declare namespace Deno { * exists for the key, it will be overwritten. * * ```ts - * const db = await Deno.kv(); + * const db = await Deno.openKv(); * await db.set(["foo"], "bar"); * ``` */ @@ -1939,7 +1939,7 @@ declare namespace Deno { * for the key, this operation is a no-op. * * ```ts - * const db = await Deno.kv(); + * const db = await Deno.openKv(); * await db.delete(["foo"]); * ``` */ @@ -1971,7 +1971,7 @@ declare namespace Deno { * not `["users", "noa"]` or `["users", "zoe"]`. * * ```ts - * const db = await Deno.kv(); + * const db = await Deno.openKv(); * const entries = db.list({ prefix: ["users"] }); * for await (const entry of entries) { * entry.key; // ["users", "alice"] |