UNPKG

vue-cookies3

Version:

A simple Vue.js plugin for handling browser cookies

44 lines (34 loc) 877 B
import './vue'; export declare function install(app): any; export interface VueCookies { /** * Set global config */ config(expireTimes: string | number | Date, path?: string, domain?: string, secure?: boolean, sameSite?: string): void; /** * Set a cookie */ set(keyName: string, value: any, expireTimes?: string | number | Date, path?: string, domain?: string, secure?: boolean, sameSite?: string): this; /** * Get a cookie */ get(keyName: string): any; /** * Remove a cookie */ remove(keyName: string, path?: string, domain?: string): this; /** * Exist a cookie name */ isKey(keyName: string): boolean; /** * Get All cookie name */ keys(): string[]; } declare const _default : { VueCookies: VueCookies; install: typeof install; }; export default _default;