noodl-loader
Version:
Loader for noodl applications
13 lines (12 loc) • 434 B
TypeScript
import type { LiteralUnion } from 'type-fest';
declare class KeyValueCache<Keys = string> {
#private;
clear(): this;
has(key: string): boolean;
get(key?: LiteralUnion<Keys, string>): any;
get(): Record<string, any>;
set(key: LiteralUnion<Keys, string>, value: any): this;
merge(obj: Record<string, any>): this;
remove(key: LiteralUnion<Keys, string>): this;
}
export default KeyValueCache;