Skip to content

Commit 3d43392

Browse files
authored
[fix] The default type for kv.get() should be text (#16809)
1 parent 124f228 commit 3d43392

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/docs/kv/api/read-key-value-pairs.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ The `get()` method returns a promise you can `await` on to get the value. If the
5858
* `key`: `string`
5959
* The key of the KV pair.
6060
* `type`: `"text" | "json" | "arrayBuffer" | "stream"`
61-
* Optional. The type of the value to be returned. `string` is the default.
61+
* Optional. The type of the value to be returned. `text` is the default.
6262
* `options`: `{
6363
cacheTtl: number,
6464
type: "text" | "json" | "arrayBuffer" | "stream"
@@ -168,4 +168,4 @@ The effective `cacheTtl` of an already cached item can be reduced by getting it
168168
169169
## Other methods to access KV
170170
171-
You can [read key-value pairs from the command line with Wrangler](/kv/reference/kv-commands/#get) and [from the API](/api/operations/workers-kv-namespace-read-key-value-pair).
171+
You can [read key-value pairs from the command line with Wrangler](/kv/reference/kv-commands/#get) and [from the API](/api/operations/workers-kv-namespace-read-key-value-pair).

0 commit comments

Comments
 (0)