mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 08:17:05 +00:00
[jquery.pjax] Lock jQuery dependency to v2.
This commit is contained in:
Vendored
+1
-4
@@ -2,9 +2,6 @@
|
||||
// Project: https://github.com/defunkt/jquery-pjax
|
||||
// Definitions by: Junle Li <https://github.com/lijunle>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="jquery" />
|
||||
|
||||
/**
|
||||
* Interface for pjax:popstate event.
|
||||
@@ -33,7 +30,7 @@ interface PjaxSettings extends JQueryAjaxSettings {
|
||||
* Whether to replaceState the URL. Defaults to false.
|
||||
*/
|
||||
replace?: boolean;
|
||||
|
||||
|
||||
/**
|
||||
* How many requests to cache. Defaults to 20.
|
||||
*/
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import * as jQuery from 'jquery';
|
||||
|
||||
function test_fn_pjax() {
|
||||
$(document).pjax("a");
|
||||
$(document).pjax("a", "#pjax-container");
|
||||
@@ -66,4 +68,4 @@ function test_events() {
|
||||
console.log('pjax:popstate is OK');
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,6 +12,11 @@
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"paths": {
|
||||
"jquery": [
|
||||
"jquery/v2"
|
||||
]
|
||||
},
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
@@ -20,4 +25,4 @@
|
||||
"index.d.ts",
|
||||
"jquery.pjax-tests.ts"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user