mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Fix jquery.bbq
This commit is contained in:
Vendored
+10
-10
@@ -29,9 +29,9 @@ declare module JQueryBbq {
|
||||
* @name key An optional state key for which to return a value.
|
||||
* @name coerce If true, coerces any numbers or true, false, null, and undefined to their actual value. Defaults to false
|
||||
*/
|
||||
getState(key?: string, coerce?: bool): any;
|
||||
getState(key?: string, coerce?: boolean): any;
|
||||
|
||||
getState(coerce?: bool): any;
|
||||
getState(coerce?: boolean): any;
|
||||
|
||||
/**
|
||||
* Remove one or more keys from the current browser history 'state', creating
|
||||
@@ -65,7 +65,7 @@ declare module JQueryBbq {
|
||||
*
|
||||
* @name state TODO: DESCRIBE
|
||||
*/
|
||||
ajaxCrawlable(state?: bool): bool;
|
||||
ajaxCrawlable(state?: boolean): boolean;
|
||||
}
|
||||
|
||||
interface JQueryDeparam {
|
||||
@@ -77,7 +77,7 @@ declare module JQueryBbq {
|
||||
* @name params A params string to be parsed.
|
||||
* @name coerce If true, coerces any numbers or true, false, null, and undefined to their actual value. Defaults to false if omitted.
|
||||
*/
|
||||
(params: string, coerce?: bool): any;
|
||||
(params: string, coerce?: boolean): any;
|
||||
|
||||
|
||||
/**
|
||||
@@ -88,7 +88,7 @@ declare module JQueryBbq {
|
||||
* @name url An optional params string or URL containing query string params to be parsed. If url is omitted, the current window.location.href is used.
|
||||
* @name coerce If true, coerces any numbers or true, false, null, and undefined to their actual value. Defaults to false if omitted.
|
||||
*/
|
||||
querystring(url?: string, coerce?: bool): any;
|
||||
querystring(url?: string, coerce?: boolean): any;
|
||||
|
||||
/**
|
||||
* Parse the fragment (hash) from a URL or the current window.location.href,
|
||||
@@ -98,13 +98,13 @@ declare module JQueryBbq {
|
||||
* @name url An optional params string or URL containing fragment (hash) params to be parsed. If url is omitted, the current window.location.href is used.
|
||||
* @name coerce If true, coerces any numbers or true, false, null, and undefined to their actual value. Defaults to false if omitted.
|
||||
*/
|
||||
fragment(url?: string, coerce?: bool): any;
|
||||
fragment(url?: string, coerce?: boolean): any;
|
||||
}
|
||||
|
||||
interface EventObject extends JQueryEventObject {
|
||||
interface EventObject extends JQueryEventObject {
|
||||
fragment: string;
|
||||
|
||||
getState( key?: string, coerce? :bool );
|
||||
getState(key?: string, coerce?: boolean);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -118,7 +118,7 @@ interface JQueryParam {
|
||||
* @name coerce (Boolean) If true, coerces any numbers or true, false, null, and undefined to their actual value. Defaults to false if omitted.
|
||||
* @name merge_mode An object representing the deserialized params string.
|
||||
*/
|
||||
querystring(url?: string, coerce?: bool, merge_mode?: number): string;
|
||||
querystring(url?: string, coerce?: boolean, merge_mode?: number): string;
|
||||
|
||||
querystring(url?: string, coerce?: any, merge_mode?: number): string;
|
||||
|
||||
@@ -132,7 +132,7 @@ interface JQueryParam {
|
||||
* @name obj An object to be serialized.
|
||||
* @name traditional Params deep/shallow serialization mode. See the documentation at http://api.jquery.com/jQuery.param/ for more detail.
|
||||
*/
|
||||
sorted(obj: any, traditional?: bool): string;
|
||||
sorted(obj: any, traditional?: boolean): string;
|
||||
}
|
||||
|
||||
interface JQueryStatic {
|
||||
|
||||
Reference in New Issue
Block a user