UNPKG

464 BTypeScriptView Raw
1export interface KeyValueStorageInterface {
2 setItem(key: string, value: string): Promise<void>;
3 getItem(key: string): Promise<string | null>;
4 removeItem(key: string): Promise<void>;
5 clear(): Promise<void>;
6}
7export type SameSite = 'strict' | 'lax' | 'none';
8export interface CookieStorageData {
9 domain?: string;
10 path?: string;
11 /**
12 * Expiration in days
13 */
14 expires?: number;
15 secure?: boolean;
16 sameSite?: SameSite;
17}