@withjoy/sdk-js
Version:
Joy Javascript SDK
13 lines (12 loc) • 535 B
TypeScript
import { IStorage } from './index';
/**
* Cookie based key value pair storage.
* When storing the cookies we will prefix "joy" to the key and URICompoenent encode the value
* The key is modified for easy debugging so that all cookies will start with Joy.
* The value is modified because we dont want = and ; get into it otherwise it might mess up our parsing
* @constructor
*/
export declare class CookieStorage implements IStorage {
getItem(key: string): string;
setItem(key: string, value: string): void;
}