@ketch-sdk/ketch-data-layer
Version:
Ketch Data Layer interface
12 lines (11 loc) • 362 B
TypeScript
import { getCookie } from '@ketch-com/ketch-cookie';
/**
* Set the value against the given key
*
* @param w The window object
* @param key The cookie key
* @param value The value to set
* @param ttl The TTL of the cookie value in days
*/
declare function setCookie(w: Window, key: string, value: any, ttl?: number): void;
export { getCookie, setCookie };