UNPKG

@kwiz/common

Version:

KWIZ common utilities and helpers for M365 platform

8 lines (7 loc) 529 B
export declare function deleteCookie(cookieName: string, path?: string): void; export declare function getAllCookies(prefix?: string): string[]; /** get a cookie's value by that name, or null */ export declare function getCookie(cookieName: string): string; /** set a cookie by that name and value. if you do not send expireDays, it will be a session cookie (in memory) */ export declare function setCookie(name: string, value: string, expireDays?: number, path?: string): void; export declare function cookieEnabled(): boolean;