mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-16 11:02:11 +08:00
bool -> boolean in jquery.cookie
This commit is contained in:
@@ -15,7 +15,7 @@ class CookieOptions implements JQueryCookieOptions {
|
||||
expires: number;
|
||||
path: string;
|
||||
domain: string;
|
||||
secure: bool;
|
||||
secure: boolean;
|
||||
}
|
||||
|
||||
$.cookie("the_cookie", "the_value");
|
||||
|
||||
10
jquery.cookie/jquery.cookie.d.ts
vendored
10
jquery.cookie/jquery.cookie.d.ts
vendored
@@ -10,12 +10,12 @@ interface JQueryCookieOptions {
|
||||
expires?: any;
|
||||
path?: string;
|
||||
domain?: string;
|
||||
secure?: bool;
|
||||
secure?: boolean;
|
||||
}
|
||||
|
||||
interface JQueryCookieStatic {
|
||||
raw?: bool;
|
||||
json?: bool;
|
||||
raw?: boolean;
|
||||
json?: boolean;
|
||||
|
||||
(name: string): any;
|
||||
(name: string, value: string): void;
|
||||
@@ -27,6 +27,6 @@ interface JQueryCookieStatic {
|
||||
interface JQueryStatic {
|
||||
cookie?: JQueryCookieStatic;
|
||||
|
||||
removeCookie(name: string): bool;
|
||||
removeCookie(name: string, options: JQueryCookieOptions): bool;
|
||||
removeCookie(name: string): boolean;
|
||||
removeCookie(name: string, options: JQueryCookieOptions): boolean;
|
||||
}
|
||||
Reference in New Issue
Block a user