Merge pull request #792 from theodorejb/master

Update jquery.cookie and spin.js to support TS 0.9
This commit is contained in:
Diullei Gomes
2013-07-21 22:39:17 -07:00
3 changed files with 9 additions and 9 deletions

View File

@@ -15,7 +15,7 @@ class CookieOptions implements JQueryCookieOptions {
expires: number;
path: string;
domain: string;
secure: bool;
secure: boolean;
}
$.cookie("the_cookie", "the_value");

View File

@@ -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;
}

6
spin/spin.d.ts vendored
View File

@@ -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);
}
}