mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-24 11:29:30 +08:00
Merge pull request #792 from theodorejb/master
Update jquery.cookie and spin.js to support TS 0.9
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");
|
||||
|
||||
Vendored
+5
-5
@@ -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;
|
||||
}
|
||||
Vendored
+3
-3
@@ -15,8 +15,8 @@ interface SpinnerOptions {
|
||||
color?: string; // #rgb or #rrggbb
|
||||
speed?: number; // Rounds per second
|
||||
trail?: number; // Afterglow percentage
|
||||
shadow?: bool; // Whether to render a shadow
|
||||
hwaccel?: bool; // Whether to use hardware acceleration
|
||||
shadow?: boolean; // Whether to render a shadow
|
||||
hwaccel?: boolean; // Whether to use hardware acceleration
|
||||
className?: string; // The CSS class to assign to the spinner
|
||||
zIndex?: number; // The z-index (defaults to 2000000000)
|
||||
top?: string; // Top position relative to parent in px
|
||||
@@ -30,4 +30,4 @@ declare class Spinner {
|
||||
stop();
|
||||
lines(el, o);
|
||||
opacity(el, i, val);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user