Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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@v1.41.0/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; }