@cloud-cli/cli
Version:
CLI for the Cloud CLI project
10 lines (9 loc) • 361 B
TypeScript
export declare function getStorage<T>(prefix: string, computeKey?: (key: string) => string): {
get: (key: string) => T | null;
set: (key: string, value: any) => boolean;
reset: () => boolean;
has: (key: string) => boolean;
update: (key: string, values: Partial<T>) => boolean;
getAll: () => T[];
remove: (key: string) => boolean;
};