Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno/cli/tsc/dts/lib.deno.unstable.d.ts>Deno.KvListSelector

A modern runtime for JavaScript and TypeScript.
Latest
type alias Deno.KvListSelector
import { type Deno } from "https://deno.land/x/deno@v2.0.4/cli/tsc/dts/lib.deno.unstable.d.ts";
const { KvListSelector } = Deno;

UNSTABLE: New API, yet to be vetted.

A selector that selects the range of data returned by a list operation on a Deno.Kv.

The selector can either be a prefix selector or a range selector. A prefix selector selects all keys that start with the given prefix (optionally starting at a given key). A range selector selects all keys that are lexicographically between the given start and end keys.

definition:
| { prefix: KvKey; }
| { prefix: KvKey; start: KvKey; }
| { prefix: KvKey; end: KvKey; }
| { start: KvKey; end: KvKey; }