Cookie: CookiesStatic<string> & {
    noConflict?(): CookiesStatic<string>;
}

Type declaration

  • noConflict?:function
    • If there is any danger of a conflict with the namespace Cookies, the noConflict method will allow you to define a new namespace and preserve the original one. This is especially useful when running the script on third party sites e.g. as part of a widget or SDK. Note: The noConflict method is not necessary when using AMD or CommonJS, thus it is not exposed in those environments.

      Returns CookiesStatic<string>