UNPKG

@deno/kv

Version:

A Deno KV client library optimized for Node.js.

15 lines (14 loc) 844 B
import { Type as KvEntry } from "./KvEntry.js"; export declare namespace $.com.deno.kv.datapath { type WatchKeyOutput = { changed: boolean; entryIfChanged?: KvEntry; }; } export type Type = $.com.deno.kv.datapath.WatchKeyOutput; export declare function getDefaultValue(): $.com.deno.kv.datapath.WatchKeyOutput; export declare function createValue(partialValue: Partial<$.com.deno.kv.datapath.WatchKeyOutput>): $.com.deno.kv.datapath.WatchKeyOutput; export declare function encodeJson(value: $.com.deno.kv.datapath.WatchKeyOutput): unknown; export declare function decodeJson(value: any): $.com.deno.kv.datapath.WatchKeyOutput; export declare function encodeBinary(value: $.com.deno.kv.datapath.WatchKeyOutput): Uint8Array; export declare function decodeBinary(binary: Uint8Array): $.com.deno.kv.datapath.WatchKeyOutput;