configcat-js-ssr
Version:
ConfigCat Feature Flags for Server Side Rendered apps like NuxtJS. Official ConfigCat SDK for Server Side Rendered to easily access feature flags.
12 lines • 614 B
TypeScript
import type { IConfigCatCache, IConfigCatKernel } from "configcat-common";
export declare class LocalStorageCache implements IConfigCatCache {
private readonly storage;
static setup(kernel: IConfigCatKernel, localStorageGetter?: () => Storage | null): IConfigCatKernel;
constructor(storage: Storage);
set(key: string, value: string): void;
get(key: string): string | undefined;
}
export declare function getLocalStorage(): Storage | null;
export declare function toUtf8Base64(str: string): string;
export declare function fromUtf8Base64(str: string): string;
//# sourceMappingURL=Cache.d.ts.map