[jquery.pjax] Lock jQuery dependency to v2.

This commit is contained in:
Leonard Thieu
2017-06-19 15:48:27 -04:00
parent 1f571c4323
commit 08cac77ad3
3 changed files with 10 additions and 6 deletions
+1 -4
View File
@@ -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.
*/
+3 -1
View File
@@ -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');
}
});
}
}
+6 -1
View File
@@ -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"
]
}
}