1
0
silverbullet/packages/plugos-silverbullet-syscall/clientStore.ts

14 lines
361 B
TypeScript
Raw Normal View History

import { syscall } from "./syscall";
2022-04-04 13:25:07 +00:00
export async function set(key: string, value: any): Promise<void> {
return syscall("clientStore.set", key, value);
}
export async function get(key: string): Promise<any> {
return syscall("clientStore.get", key);
}
export async function del(key: string): Promise<void> {
return syscall("clientStore.delete", key);
}