The expires option can be either a number or a Date object. (https://github.com/carhartl/jquery-cookie#expires)

Since there is no option to define both for a property it should be defined as any.
This commit is contained in:
BreeeZe
2012-11-27 22:12:28 +01:00
parent abab859bb8
commit f0fef408cf

View File

@@ -5,8 +5,9 @@
///<reference path="../jquery/jquery-1.8.d.ts" />
interface JQueryCookieOptions {
expires?: number;
expires?: any;
path?: string;
domain?: string;
secure?: bool;