Comparing version 0.1.77 to 0.1.78
11
kv.d.ts
import { InputClientOptions } from "./clientOpts"; | ||
export type KV = { | ||
id?: string; | ||
userId?: string; | ||
key: string; | ||
value: string; | ||
createdAt?: string; | ||
}; | ||
export declare function set(key: string, value: string, clientOptions?: InputClientOptions): Promise<void>; | ||
export declare function get(key: string, clientOptions?: InputClientOptions): Promise<string>; | ||
export declare function all(clientOptions?: InputClientOptions): Promise<string[]>; | ||
export declare function all(clientOptions?: InputClientOptions): Promise<KV[]>; | ||
export declare function del(key: string, clientOptions?: InputClientOptions): Promise<void>; | ||
@@ -10,4 +17,4 @@ export type KVClient = { | ||
del: (key: string) => Promise<void>; | ||
all: () => Promise<string[]>; | ||
all: () => Promise<KV[]>; | ||
}; | ||
export default function client(clientOptions?: InputClientOptions): KVClient; |
{ | ||
"name": "polyfact", | ||
"version": "0.1.77", | ||
"version": "0.1.78", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "types": "index.d.ts", |
2354979
1954