From 31aa5b1c6148ebc603266304cd0d4d112b0f9eca Mon Sep 17 00:00:00 2001 From: zaneli Date: Sun, 11 May 2014 22:56:05 +0900 Subject: [PATCH] Add definitions for jquery.tile.js --- CONTRIBUTORS.md | 1 + jquery.tile/jquery.tile-tests.ts | 5 +++++ jquery.tile/jquery.tile.d.ts | 16 ++++++++++++++++ 3 files changed, 22 insertions(+) create mode 100644 jquery.tile/jquery.tile-tests.ts create mode 100644 jquery.tile/jquery.tile.d.ts diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index a9e9e23e1..5e225568d 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -153,6 +153,7 @@ All definitions files include a header with the author and editors, so at some p * [jQuery.scrollTo](https://github.com/flesler/jquery.scrollTo) (by [Neil Stalker](https://github.com/nestalk/)) * [jQuery.simplePagination](https://github.com/flaviusmatis/simplePagination.js) (by [Natan Vivo](https://github.com/nvivo/)) * [jquery.superLink](http://james.padolsey.com/demos/plugins/jQuery/superLink/superlink.jquery.js) (by [Blake Niemyjski](https://github.com/niemyjski)) +* [jQuery.tile](https://github.com/urin/jquery.tile.js) (by [Shunsuke Ohtani](https://github.com/zaneli)) * [jQuery.timeago](http://timeago.yarp.com/) (by [François Guillot](http://fguillot.developpez.com/)) * [jQuery.Timepicker](http://fgelinas.com/code/timepicker/) (by [Anwar Javed](https://github.com/anwarjaved)) * [jQuery.Timer](http://jchavannes.com/jquery-timer/demo) (by [Joshua Strobl](https://github.com/JoshStrobl)) diff --git a/jquery.tile/jquery.tile-tests.ts b/jquery.tile/jquery.tile-tests.ts new file mode 100644 index 000000000..e4f63a0a7 --- /dev/null +++ b/jquery.tile/jquery.tile-tests.ts @@ -0,0 +1,5 @@ +/// + +$('div').tile(); + +$('div').tile(4); diff --git a/jquery.tile/jquery.tile.d.ts b/jquery.tile/jquery.tile.d.ts new file mode 100644 index 000000000..e27acdad8 --- /dev/null +++ b/jquery.tile/jquery.tile.d.ts @@ -0,0 +1,16 @@ +// Type definitions for jquery.tile.js 1.1.0 +// Project: https://github.com/urin/jquery.tile.js +// Definitions by: Shunsuke Ohtani +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +/// + +interface JQuery { + /** + * Align the height of the largest of the elements arranged in the same row. + * if columns is not specified, align the height of the largest of the all elements. + * + * @param columns Number of elements in a row + */ + tile(columns?: number): void; +}