From 8e08af724fe8cb055f6520e7eada9a6d6e07f3f6 Mon Sep 17 00:00:00 2001 From: NN Date: Tue, 13 Jan 2015 12:48:13 +0200 Subject: [PATCH] Support converter option My bad, the pull request https://github.com/borisyankov/DefinitelyTyped/pull/3449 was not correct. When the converter is specified it is used for converting the cookie value. --- jquery.cookie/jquery.cookie.d.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/jquery.cookie/jquery.cookie.d.ts b/jquery.cookie/jquery.cookie.d.ts index 64dcc56a6..06380f999 100644 --- a/jquery.cookie/jquery.cookie.d.ts +++ b/jquery.cookie/jquery.cookie.d.ts @@ -19,10 +19,9 @@ interface JQueryCookieStatic { (): {[key:string]:string}; (name: string): any; + (name: string, converter: (value: string) => any): any; (name: string, value: string): void; (name: string, value: string, options: JQueryCookieOptions): void; - (name: string, converter: (value: string) => any): void; - (name: string, converter: (value: string) => any, options: JQueryCookieOptions): void; (name: string, value: any): void; (name: string, value: any, options: JQueryCookieOptions): void; }