mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-12 10:06:45 +08:00
@types/cookiejs update to cookie_js@1.2.2
This commit is contained in:
@@ -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();
|
||||
|
||||
9
types/cookiejs/index.d.ts
vendored
9
types/cookiejs/index.d.ts
vendored
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user