@types/cookiejs update to cookie_js@1.2.2

This commit is contained in:
cronon
2017-04-10 13:20:44 +03:00
parent adf6c7821c
commit f4be347d01
2 changed files with 10 additions and 2 deletions

View File

@@ -27,6 +27,9 @@ cookie.remove('a');
cookie.remove('a', 'b');
cookie.remove(['a', 'b']);
cookie.removeSpecific('a', {path: '/search'});
cookie.removeSpecific(['a', 'b'], {path: '/search'});
cookie.empty();
cookie.all();

View File

@@ -1,5 +1,5 @@
// Type definitions for cookie.js v1.0.0
// Project: https://github.com/js-coder/cookie.js
// Type definitions for cookie.js v1.2.2
// Project: https://github.com/florian/cookie.js
// Definitions by: Boltmade <https://github.com/Boltmade>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/**
@@ -27,6 +27,11 @@ declare namespace cookie {
export function remove(key : string) : void;
export function remove(keys : string[]) : void;
export function remove(...args : string[]) : void;
/**
* Remove cookies that were set with custom options (e.g. specifing domain or path)
*/
export function removeSpecific(key : string, options?: any) : void;
export function removeSpecific(keys : string[], options?: any): void;
/**
* Remove all cookies
*/