@deno/kv
Version:
A Deno KV client library optimized for Node.js.
18 lines (17 loc) • 902 B
TypeScript
import { Type as KvValue } from "./KvValue.js";
import { Type as MutationType } from "./MutationType.js";
export declare namespace $.com.deno.kv.datapath {
type Mutation = {
key: Uint8Array;
value?: KvValue;
mutationType: MutationType;
expireAtMs: string;
};
}
export type Type = $.com.deno.kv.datapath.Mutation;
export declare function getDefaultValue(): $.com.deno.kv.datapath.Mutation;
export declare function createValue(partialValue: Partial<$.com.deno.kv.datapath.Mutation>): $.com.deno.kv.datapath.Mutation;
export declare function encodeJson(value: $.com.deno.kv.datapath.Mutation): unknown;
export declare function decodeJson(value: any): $.com.deno.kv.datapath.Mutation;
export declare function encodeBinary(value: $.com.deno.kv.datapath.Mutation): Uint8Array;
export declare function decodeBinary(binary: Uint8Array): $.com.deno.kv.datapath.Mutation;