bc-node-sdk
Version:
BetterCommerce's NodeJS SDK encapsulates the base framework for all the Next.js applications.
20 lines (19 loc) • 675 B
TypeScript
export default abstract class CookieUtil {
/**
* Sets a cookie with the given key and data
* @param key - The key of the cookie
* @param data - The data to be stored in the cookie
*/
static setCookie(key: string, data: any): void;
/**
* Retrieves the value of a cookie with the given key
* @param key - The key of the cookie
* @returns The value of the cookie, or undefined if it does not exist
*/
static getCookie(key: string): string;
/**
* Removes the cookie with the given key
* @param key - The key of the cookie to be removed
*/
static removeCookie(key: string): void;
}