mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-05 14:59:37 +08:00
update(cookie): set method with a third parameter (#9519)
Added to the ‘set’ method a third parameter which is daysToExpiry, which represent the expiration on the cookie in days
This commit is contained in:
@@ -56,6 +56,15 @@ declare namespace angular.local.storage {
|
||||
* @param val
|
||||
*/
|
||||
set(key:string, val:string):boolean;
|
||||
/**
|
||||
* Directly adds a value to cookies with an expiration.
|
||||
* Note: Typically used as a fallback if local storage is not supported.
|
||||
* Returns: Boolean
|
||||
* @param key
|
||||
* @param val
|
||||
* @param daysToExpiry
|
||||
*/
|
||||
set(key:string, val:string, daysToExpiry:number):boolean;
|
||||
/**
|
||||
* Directly get a value from a cookie.
|
||||
* Returns: value from local storage
|
||||
|
||||
Reference in New Issue
Block a user