Merge pull request #5598 from stpettersens/master

Type definitions and tests for jquery-urlparam
This commit is contained in:
Masahiro Wakame
2015-09-03 01:53:12 +09:00
2 changed files with 14 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
/// <reference path="../jquery/jquery.d.ts" />
/// <reference path="jquery-urlparam.d.ts" />
console.log($.urlParam('variable'));
+10
View File
@@ -0,0 +1,10 @@
// Type definitions for jquery-urlparam
// Project: https://gist.github.com/stpettersens/e1f4478f299b6f4905c1
// Definitions by: Sam Saint-Pettersen <https://github.com/stpettersens>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../jquery/jquery.d.ts" />
interface JQueryStatic {
urlParam(variable: string): string;
}