mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
Added missing properties in 'jquery.pjax'.
This commit is contained in:
@@ -54,7 +54,7 @@ function test_defauluts() {
|
||||
dataType: 'html',
|
||||
container: "#pjax-container",
|
||||
url: "https://jquery.com/",
|
||||
target: "https://jquery.com/",
|
||||
target: <EventTarget>undefined,
|
||||
fragment: "#pjax-response",
|
||||
};
|
||||
}
|
||||
|
||||
23
jquery.pjax/jquery.pjax.d.ts
vendored
23
jquery.pjax/jquery.pjax.d.ts
vendored
@@ -36,7 +36,28 @@ interface PjaxSettings extends JQueryAjaxSettings {
|
||||
/**
|
||||
* How many requests to cache. Defaults to 20.
|
||||
*/
|
||||
maxCacheLength?: number;
|
||||
maxCacheLength?: number;
|
||||
|
||||
/**
|
||||
* A string or function returning the current pjax version
|
||||
*/
|
||||
version?: string | (() => string);
|
||||
|
||||
/**
|
||||
* Vertical position to scroll to after navigation.
|
||||
* To avoid changing scroll position, pass false.
|
||||
*/
|
||||
scrollTo?: number | boolean;
|
||||
|
||||
/**
|
||||
* Eventually the relatedTarget value for pjax events.
|
||||
*/
|
||||
target?: EventTarget;
|
||||
|
||||
/**
|
||||
* CSS selector for the fragment to extract from ajax response.
|
||||
*/
|
||||
fragment?: string;
|
||||
}
|
||||
|
||||
interface JQuery {
|
||||
|
||||
Reference in New Issue
Block a user