@web3r/flowerkit
Version:
A collection of more than 60 often used utility JS functions that simplify frontend development.
12 lines • 494 B
TypeScript
/**
* Sets the Cookie value
* @param name{String} - name of Cookie
* @param value{String} - value of Cookie
* @param options{Object=} - options of Cookie
* @see https://developer.mozilla.org/en-US/docs/Web/API/Document/cookie
* @example
* // How to set Cookie for one day or other time?
* setCookie("myCookie", "value", { expires: 86400 }) // expires in sec
*/
export function setCookie(name: string, value: string, options?: any | undefined): void;
//# sourceMappingURL=index.d.ts.map